Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.001476/0.001476, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001529/0.001529, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9883/0.9883, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.031e-05/2.204e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.008679/0.008701, allocations: 10.93 MB / 283.9 MB, free: 6.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006/0.0147, allocations: 3.987 MB / 287.9 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.01577, allocations: 79.62 kB / 288 MB, free: 2.492 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1192/0.135, allocations: 3.405 MB / 291.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00471/0.1397, allocations: 1.999 MB / 293.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.1412, allocations: 0.913 MB / 294.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005826/0.147, allocations: 4.806 MB / 299.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003579/0.1506, allocations: 3.399 MB / 302.5 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003401/0.154, allocations: 2.952 MB / 305.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002303/0.1563, allocations: 2.251 MB / 307.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006945/0.157, allocations: 350 kB / 308 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.1583, allocations: 1.18 MB / 309.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009756/0.1593, allocations: 2.148 MB / 311.4 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001365/0.1607, allocations: 1.309 MB / 312.7 MB, free: 7.996 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003612/0.1643, allocations: 4.866 MB / 317.6 MB, free: 3.441 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1643, allocations: 0 / 317.6 MB, free: 3.441 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1643, allocations: 0 / 317.6 MB, free: 3.441 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001214/0.1644, allocations: 0 / 317.6 MB, free: 3.441 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.006873/0.1713, allocations: 5.527 MB / 323.1 MB, free: 13.95 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.1713, allocations: 16.03 kB / 323.1 MB, free: 13.94 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006784/0.1781, allocations: 2.572 MB / 325.7 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003829/0.1819, allocations: 2.424 MB / 328.1 MB, free: 9.094 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.1821, allocations: 243.9 kB / 328.3 MB, free: 8.891 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004675/0.1826, allocations: 322.8 kB / 328.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/0.1929, allocations: 6.345 MB / 335 MB, free: 1.523 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.193, allocations: 44.67 kB / 335 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003617/0.1933, allocations: 148.7 kB / 335.2 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002584/0.1959, allocations: 1.917 MB / 337.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008707/0.2046, allocations: 3.34 MB / 340.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03535/0.24, allocations: 43.7 MB / 384.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00514/0.2451, allocations: 2.469 MB / 386.6 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007905/0.2459, allocations: 0.6101 MB / 387.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005239/0.2511, allocations: 4.157 MB / 391.4 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.2512, allocations: 50.39 kB / 391.4 MB, free: 8.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=145): time 3.346e-06/0.2512, allocations: 0 / 391.4 MB, free: 8.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=150): time 0.01878/0.27, allocations: 10.7 MB / 402.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.27, allocations: 183.1 kB / 402.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003307/0.2733, allocations: 3.718 MB / 406 MB, free: 9.539 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.487e-05/0.2734, allocations: 49.22 kB / 406.1 MB, free: 9.488 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001865/0.2753, allocations: 3.533 MB / 409.6 MB, free: 5.973 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004268/0.2757, allocations: 0.6463 MB / 410.3 MB, free: 5.332 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/0.2767, allocations: 1.347 MB / 411.6 MB, free: 3.973 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.96e-05/0.2768, allocations: 480.8 kB / 412.1 MB, free: 3.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009789/0.2778, allocations: 0.6327 MB / 412.7 MB, free: 2.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003416/0.2812, allocations: 6.386 MB / 419.1 MB, free: 9.828 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005872/0.2871, allocations: 7.719 MB / 426.8 MB, free: 15.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.743e-05/0.2872, allocations: 40 kB / 426.8 MB, free: 15.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.007272/0.2945, allocations: 5.493 MB / 432.3 MB, free: 9.949 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.551e-05/0.2945, allocations: 67.94 kB / 432.4 MB, free: 9.883 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001139/0.2946, allocations: 136 kB / 432.5 MB, free: 9.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.2956, allocations: 471.2 kB / 433 MB, free: 9.285 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002543/0.2982, allocations: 1.419 MB / 434.4 MB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/0.3005, allocations: 2.895 MB / 437.3 MB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002152/0.3027, allocations: 358.6 kB / 437.7 MB, free: 4.504 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003056/0.303, allocations: 380 kB / 438 MB, free: 4.133 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (762): * Single equations (assignments): 756 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001011/0.304, allocations: 0.6664 MB / 438.7 MB, free: 3.453 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000357/0.3043, allocations: 377.5 kB / 439.1 MB, free: 3.086 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.3059, allocations: 1.204 MB / 440.3 MB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/0.306, allocations: 23.98 kB / 440.3 MB, free: 1.844 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.306, allocations: 0 / 440.3 MB, free: 1.844 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.306, allocations: 7.984 kB / 440.3 MB, free: 1.836 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1274/0.4334, allocations: 4.967 MB / 445.3 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/0.4334, allocations: 7.594 kB / 445.3 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007224/0.4342, allocations: 237.4 kB / 445.5 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008871/0.4351, allocations: 276.7 kB / 445.8 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.4352, allocations: 31.5 kB / 445.8 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002031/0.4372, allocations: 2.62 MB / 448.4 MB, free: 120.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.4372, allocations: 11.72 kB / 448.4 MB, free: 120.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003213/0.4404, allocations: 2.411 MB / 450.9 MB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005686/0.441, allocations: 326.5 kB / 451.2 MB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002949/0.4413, allocations: 33.16 kB / 451.2 MB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007525/0.442, allocations: 96.05 kB / 451.3 MB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.4422, allocations: 110.1 kB / 451.4 MB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.673e-05/0.4423, allocations: 47.86 kB / 451.5 MB, free: 119.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002243/0.4445, allocations: 1.574 MB / 453 MB, free: 119.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4445, allocations: 0.875 kB / 453 MB, free: 119.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003551/0.4481, allocations: 1.003 MB / 454 MB, free: 119.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (120): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004258/0.4485, allocations: 187.7 kB / 454.2 MB, free: 119.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004112/0.4526, allocations: 2.941 MB / 457.2 MB, free: 118.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/0.4526, allocations: 2.75 kB / 457.2 MB, free: 118.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007385/0.4534, allocations: 0.6844 MB / 457.8 MB, free: 118.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.4548, allocations: 418 kB / 458.2 MB, free: 118.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008318/0.4631, allocations: 7.677 MB / 465.9 MB, free: 115.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008422/0.464, allocations: 1.266 MB / 467.2 MB, free: 115 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002118/0.4661, allocations: 1.61 MB / 468.8 MB, free: 114.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003908/0.4665, allocations: 221.8 kB / 469 MB, free: 114.9 MB / 394.7 MB Notification: Performance of SimCode: time 2.074e-06/0.4665, allocations: 3.719 kB / 469 MB, free: 114.9 MB / 394.7 MB Notification: Performance of Templates: time 0.03793/0.5044, allocations: 27.57 MB / 496.6 MB, free: 90.8 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.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: 3.8833394958637655]