Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 211.8 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 230.3 MB / 258 MB, free: 8.223 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.238/0.238, allocations: 46.94 MB / 361.4 MB, free: 4.387 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002684/0.002684, allocations: 79.88 kB / 0.4972 GB, free: 7.488 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.379, allocations: 66.04 MB / 0.5617 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02128/0.4003, allocations: 18.26 MB / 0.5795 GB, free: 2.164 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01353/0.4138, allocations: 5.327 MB / 0.5847 GB, free: 12.82 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00474/0.4186, allocations: 127.4 kB / 0.5848 GB, free: 12.7 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008026/0.4266, allocations: 3.106 MB / 0.5879 GB, free: 9.578 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007774/0.4344, allocations: 2.634 MB / 0.5904 GB, free: 6.938 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002488/0.4369, allocations: 1.022 MB / 0.5914 GB, free: 5.914 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.4483, allocations: 7.676 MB / 0.5989 GB, free: 14.22 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005017/0.4533, allocations: 3.274 MB / 0.6021 GB, free: 10.9 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004647/0.4579, allocations: 2.297 MB / 0.6044 GB, free: 8.598 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006118/0.4641, allocations: 3.513 MB / 0.6078 GB, free: 5.074 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001717/0.4658, allocations: 455.9 kB / 0.6082 GB, free: 4.629 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00371/0.4695, allocations: 1.342 MB / 0.6095 GB, free: 3.285 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003948/0.4734, allocations: 2.863 MB / 0.6123 GB, free: 424 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005619/0.479, allocations: 3.18 MB / 0.6154 GB, free: 13.21 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01595/0.495, allocations: 9.978 MB / 0.6252 GB, free: 3.191 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.512e-05/0.495, allocations: 0 / 0.6252 GB, free: 3.191 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.495, allocations: 0 / 0.6252 GB, free: 3.191 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004474/0.4955, allocations: 0 / 0.6252 GB, free: 3.191 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01857/0.514, allocations: 7.319 MB / 0.6323 GB, free: 11.8 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.5141, allocations: 12.03 kB / 0.6323 GB, free: 11.79 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0151/0.5292, allocations: 3.881 MB / 0.6361 GB, free: 7.902 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/0.5394, allocations: 3.932 MB / 0.64 GB, free: 3.914 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004862/0.5399, allocations: 324.4 kB / 0.6403 GB, free: 3.594 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002754/0.5427, allocations: 434.3 kB / 0.6407 GB, free: 3.172 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03979/0.5824, allocations: 15.59 MB / 0.6559 GB, free: 2.852 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003916/0.5828, allocations: 59.58 kB / 0.656 GB, free: 2.793 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002103/0.5849, allocations: 199.7 kB / 0.6562 GB, free: 2.598 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007106/0.592, allocations: 3.38 MB / 0.6595 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03431/0.6264, allocations: 14.81 MB / 0.6739 GB, free: 392 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1027/0.729, allocations: 54.91 MB / 0.7276 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02013/0.7491, allocations: 6.965 MB / 0.7344 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3452/1.094, allocations: 4.474 MB / 0.7387 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001776/1.096, allocations: 0.6599 MB / 0.7394 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.731e-05/1.096, allocations: 61.59 kB / 0.7394 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 7.384e-06/1.096, allocations: 0 / 0.7394 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.1039/1.2, allocations: 39.94 MB / 0.7784 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.186e-05/1.2, allocations: 119.7 kB / 0.7785 GB, free: 126.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006724/1.207, allocations: 4.292 MB / 0.7827 GB, free: 121.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009601/1.208, allocations: 85.7 kB / 0.7828 GB, free: 121.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00213/1.21, allocations: 3.935 MB / 0.7867 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00193/1.212, allocations: 1.564 MB / 0.7882 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003816/1.216, allocations: 1.577 MB / 0.7897 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.244e-05/1.216, allocations: 309.1 kB / 0.79 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005412/1.221, allocations: 4.076 MB / 0.794 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007159/1.228, allocations: 7.844 MB / 0.8017 GB, free: 101.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01458/1.243, allocations: 12.88 MB / 0.8142 GB, free: 86.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001337/1.243, allocations: 36 kB / 0.8143 GB, free: 86.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02792/1.271, allocations: 14.72 MB / 0.8287 GB, free: 71.59 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.00015/1.271, allocations: 63.5 kB / 0.8287 GB, free: 71.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002247/1.271, allocations: 128 kB / 0.8288 GB, free: 71.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007671/1.279, allocations: 2.931 MB / 0.8317 GB, free: 68.47 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006424/1.285, allocations: 1.805 MB / 0.8335 GB, free: 66.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01811/1.304, allocations: 15.76 MB / 0.8489 GB, free: 50.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006544/1.31, allocations: 0.4957 MB / 0.8493 GB, free: 50.17 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001731/1.312, allocations: 427.4 kB / 0.8497 GB, free: 49.76 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (942): * Single equations (assignments): 934 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006247/1.318, allocations: 2.875 MB / 0.8526 GB, free: 46.87 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001485/1.32, allocations: 472.9 kB / 0.853 GB, free: 46.41 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01831/1.338, allocations: 10.9 MB / 0.8636 GB, free: 35.45 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-05/1.338, allocations: 63.98 kB / 0.8637 GB, free: 35.39 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.1e-05/1.338, allocations: 11.94 kB / 0.8637 GB, free: 35.38 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.705e-05/1.338, allocations: 15.94 kB / 0.8637 GB, free: 35.36 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03496/1.373, allocations: 21.54 MB / 0.8848 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.108e-05/1.373, allocations: 15.94 kB / 0.8848 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003029/1.376, allocations: 0.6748 MB / 0.8854 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007048/1.383, allocations: 2.742 MB / 0.8881 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006382/1.384, allocations: 80 kB / 0.8882 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01739/1.401, allocations: 14.34 MB / 0.9022 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.397e-05/1.401, allocations: 15.94 kB / 0.9022 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03127/1.432, allocations: 15.56 MB / 0.9174 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002101/1.435, allocations: 452.7 kB / 0.9178 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002205/1.437, allocations: 75.98 kB / 0.9179 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003918/1.441, allocations: 319.1 kB / 0.9182 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001347/1.442, allocations: 273.9 kB / 0.9185 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007656/1.443, allocations: 120 kB / 0.9186 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005585/1.448, allocations: 2.685 MB / 0.9212 GB, free: 7.812 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/1.448, allocations: 0 / 0.9212 GB, free: 7.812 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008868/1.457, allocations: 1.648 MB / 0.9228 GB, free: 6.164 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001272/1.459, allocations: 237.6 kB / 0.9231 GB, free: 5.93 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02047/1.479, allocations: 9.658 MB / 0.9325 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.835e-05/1.479, allocations: 4 kB / 0.9325 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.008392/1.487, allocations: 4.066 MB / 0.9365 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007232/1.495, allocations: 0.7135 MB / 0.9372 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03522/1.53, allocations: 16.01 MB / 0.9528 GB, free: 7.246 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009417/1.539, allocations: 4.547 MB / 0.9572 GB, free: 2.652 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.008208/1.547, allocations: 2.723 MB / 0.9599 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00236/1.55, allocations: 351.3 kB / 0.9602 GB, free: 15.58 MB / 0.6387 GB Notification: Performance of SimCode: time 1.683e-06/1.55, allocations: 0 / 0.9602 GB, free: 15.58 MB / 0.6387 GB Notification: Performance of Templates: time 0.4446/1.994, allocations: 74.96 MB / 1.033 GB, free: 173.7 MB / 0.6387 GB " [Timeout remaining time 658] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.216169913299382]