Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 91.22 kB / 20.43 MB, free: 4.141 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 169 kB / 23.8 MB, free: 0.7734 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9196/0.9196, allocations: 158.6 MB / 185.7 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1919/0.1919, allocations: 32.38 MB / 270.4 MB, free: 14.7 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 347.7 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.3e-05/3.485e-05, allocations: 17.28 kB / 347.7 MB, free: 9.426 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01487/0.01491, allocations: 17.9 MB / 365.6 MB, free: 7.445 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01281/0.02772, allocations: 5.269 MB / 370.9 MB, free: 2.156 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004787/0.03251, allocations: 127.4 kB / 371 MB, free: 2.031 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006321/0.03883, allocations: 3.293 MB / 374.3 MB, free: 14.73 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006907/0.04574, allocations: 2.799 MB / 377.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002442/0.04818, allocations: 1.154 MB / 378.2 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009663/0.05784, allocations: 8.65 MB / 386.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00712/0.06496, allocations: 4.846 MB / 391.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01028/0.07524, allocations: 3.672 MB / 395.4 MB, free: 9.512 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006647/0.08189, allocations: 3.967 MB / 399.4 MB, free: 5.535 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002521/0.08441, allocations: 476 kB / 399.8 MB, free: 5.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004502/0.08891, allocations: 1.299 MB / 401.1 MB, free: 3.77 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003958/0.09287, allocations: 3.117 MB / 404.2 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003798/0.09667, allocations: 1.931 MB / 406.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01152/0.1082, allocations: 6.857 MB / 413 MB, free: 7.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.1082, allocations: 0 / 413 MB, free: 7.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1082, allocations: 0 / 413 MB, free: 7.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.00061/0.1088, allocations: 0 / 413 MB, free: 7.824 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.01661/0.1254, allocations: 8.077 MB / 421.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.1255, allocations: 12.03 kB / 421.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01127/0.1367, allocations: 4.685 MB / 425.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007552/0.1443, allocations: 3.638 MB / 429.4 MB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000436/0.1447, allocations: 324.5 kB / 429.8 MB, free: 6.938 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001656/0.1464, allocations: 440 kB / 430.2 MB, free: 6.508 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2127/0.3591, allocations: 8.696 MB / 438.9 MB, free: 57.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003714/0.3595, allocations: 58.36 kB / 438.9 MB, free: 57.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/0.3606, allocations: 202.5 kB / 439.1 MB, free: 57.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004657/0.3652, allocations: 3.458 MB / 442.6 MB, free: 57.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0191/0.3843, allocations: 5.553 MB / 448.2 MB, free: 57.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06088/0.4452, allocations: 54.77 MB / 0.4911 GB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009852/0.4551, allocations: 4.271 MB / 0.4953 GB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002935/0.458, allocations: 1.418 MB / 0.4967 GB, free: 8.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009192/0.4589, allocations: 0.6178 MB / 0.4973 GB, free: 7.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.459, allocations: 71.19 kB / 0.4974 GB, free: 7.332 MB / 362.7 MB Notification: Performance of pre-optimization done (n=367): time 8.015e-06/0.459, allocations: 0 / 0.4974 GB, free: 7.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=419): time 0.09649/0.5555, allocations: 25.15 MB / 0.5219 GB, free: 14.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.5556, allocations: 120 kB / 0.522 GB, free: 14.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007322/0.5629, allocations: 3.955 MB / 0.5259 GB, free: 10.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001072/0.564, allocations: 81.7 kB / 0.526 GB, free: 10.64 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003242/0.5672, allocations: 4.183 MB / 0.5301 GB, free: 6.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002421/0.5696, allocations: 1.622 MB / 0.5316 GB, free: 4.988 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002732/0.5724, allocations: 1.644 MB / 0.5333 GB, free: 3.336 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.5725, allocations: 492.7 kB / 0.5337 GB, free: 2.852 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003231/0.5758, allocations: 1.237 MB / 0.5349 GB, free: 1.609 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006773/0.5825, allocations: 6.88 MB / 0.5416 GB, free: 8.273 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008713/0.5912, allocations: 9 MB / 0.5504 GB, free: 13.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.823e-05/0.5913, allocations: 36 kB / 0.5505 GB, free: 13.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.01368/0.605, allocations: 8.757 MB / 0.559 GB, free: 4.613 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.321e-05/0.605, allocations: 68.05 kB / 0.5591 GB, free: 4.547 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.756e-05/0.6051, allocations: 137.6 kB / 0.5592 GB, free: 4.414 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004249/0.6094, allocations: 1.951 MB / 0.5611 GB, free: 2.453 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003425/0.6128, allocations: 1.829 MB / 0.5629 GB, free: 0.6211 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008499/0.6213, allocations: 7.79 MB / 0.5705 GB, free: 8.594 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004045/0.6254, allocations: 0.6334 MB / 0.5711 GB, free: 7.957 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005032/0.6259, allocations: 435.9 kB / 0.5716 GB, free: 7.531 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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 (951): * Single equations (assignments): 943 * 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.00189/0.6278, allocations: 0.747 MB / 0.5723 GB, free: 6.773 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008077/0.6286, allocations: 0.5596 MB / 0.5728 GB, free: 6.211 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008494/0.6371, allocations: 5.762 MB / 0.5785 GB, free: 392 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.004e-05/0.6371, allocations: 65.7 kB / 0.5785 GB, free: 328 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.6371, allocations: 16.05 kB / 0.5785 GB, free: 312 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/0.6371, allocations: 15.94 kB / 0.5785 GB, free: 296 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01825/0.6554, allocations: 12.46 MB / 0.5907 GB, free: 3.645 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/0.6554, allocations: 12 kB / 0.5907 GB, free: 3.633 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/0.6572, allocations: 0.6795 MB / 0.5914 GB, free: 2.953 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004086/0.6612, allocations: 1.762 MB / 0.5931 GB, free: 1.18 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002249/0.6615, allocations: 86.17 kB / 0.5932 GB, free: 1.098 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2115/0.8729, allocations: 6.594 MB / 0.5996 GB, free: 129.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.8729, allocations: 15.31 kB / 0.5996 GB, free: 129.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01197/0.8849, allocations: 6.628 MB / 0.6061 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002339/0.8872, allocations: 1.09 MB / 0.6072 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005066/0.8877, allocations: 77.08 kB / 0.6073 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001864/0.8896, allocations: 452.5 kB / 0.6077 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005923/0.8902, allocations: 280.3 kB / 0.608 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002232/0.8904, allocations: 118.8 kB / 0.6081 GB, free: 128.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002271/0.8927, allocations: 1.802 MB / 0.6098 GB, free: 128.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8927, allocations: 0 / 0.6098 GB, free: 128.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004903/0.8976, allocations: 1.912 MB / 0.6117 GB, free: 128.3 MB / 458.7 MB 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.0005404/0.8981, allocations: 257.4 kB / 0.6119 GB, free: 128.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007289/0.9054, allocations: 5.17 MB / 0.617 GB, free: 127.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.9054, allocations: 0 / 0.617 GB, free: 127.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00245/0.9079, allocations: 2.164 MB / 0.6191 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.91, allocations: 0.6222 MB / 0.6197 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01333/0.9233, allocations: 12.77 MB / 0.6322 GB, free: 120.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001375/0.9247, allocations: 1.882 MB / 0.634 GB, free: 119.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002988/0.9277, allocations: 2.159 MB / 0.6361 GB, free: 118.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009797/0.9287, allocations: 345.8 kB / 0.6365 GB, free: 118.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.313e-06/0.9287, allocations: 4 kB / 0.6365 GB, free: 118.4 MB / 458.7 MB Notification: Performance of Templates: time 0.07733/1.006, allocations: 69.18 MB / 0.704 GB, free: 51.56 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.198661734350026]