Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009528/0.0009528, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009598/0.0009598, allocations: 148.2 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9026/0.9026, allocations: 173.3 MB / 201.4 MB, free: 9.23 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.908e-05/2.029e-05, allocations: 6.25 kB / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.00849/0.00851, allocations: 10.8 MB / 279.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005754/0.01426, allocations: 3.971 MB / 283.2 MB, free: 7.355 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009303/0.01519, allocations: 79.62 kB / 283.3 MB, free: 7.277 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003231/0.01843, allocations: 3.384 MB / 286.7 MB, free: 3.883 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003184/0.02161, allocations: 2.088 MB / 288.7 MB, free: 1.785 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.02284, allocations: 0.912 MB / 289.7 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1143/0.1372, allocations: 4.822 MB / 294.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003927/0.1411, allocations: 3.454 MB / 297.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004059/0.1451, allocations: 3.03 MB / 301 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002698/0.1478, allocations: 2.292 MB / 303.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007315/0.1486, allocations: 356.5 kB / 303.6 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.1501, allocations: 1.201 MB / 304.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001156/0.1512, allocations: 2.215 MB / 307 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001367/0.1526, allocations: 1.357 MB / 308.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003753/0.1564, allocations: 5.022 MB / 313.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1564, allocations: 0 / 313.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1564, allocations: 0 / 313.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002098/0.1566, allocations: 0 / 313.4 MB, free: 9.805 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.006197/0.1628, allocations: 5.48 MB / 318.9 MB, free: 4.672 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.996e-05/0.1628, allocations: 12.92 kB / 318.9 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003699/0.1665, allocations: 1.718 MB / 320.6 MB, free: 2.977 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/0.1689, allocations: 2.194 MB / 322.8 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.188e-05/0.169, allocations: 251.8 kB / 323 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003187/0.1693, allocations: 331.2 kB / 323.4 MB, free: 428 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006774/0.1761, allocations: 5.78 MB / 329.2 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.367e-05/0.1761, allocations: 41.78 kB / 329.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002653/0.1764, allocations: 159.1 kB / 329.3 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001632/0.178, allocations: 1.863 MB / 331.2 MB, free: 8.195 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005291/0.1833, allocations: 2.621 MB / 333.8 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03117/0.2145, allocations: 44.17 MB / 378 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004665/0.2192, allocations: 1.969 MB / 380 MB, free: 7.523 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005662/0.2197, allocations: 0.5134 MB / 380.5 MB, free: 7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004228/0.224, allocations: 3.872 MB / 384.4 MB, free: 3.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.224, allocations: 57.86 kB / 384.4 MB, free: 3.094 MB / 330.7 MB Notification: Performance of pre-optimization done (n=145): time 2.665e-06/0.224, allocations: 0 / 384.4 MB, free: 3.094 MB / 330.7 MB Notification: Performance of matching and sorting (n=150): time 0.01482/0.2388, allocations: 6.488 MB / 390.9 MB, free: 12.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.2389, allocations: 171.2 kB / 391.1 MB, free: 12.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/0.2423, allocations: 3.741 MB / 394.8 MB, free: 9.094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.953e-05/0.2424, allocations: 49.7 kB / 394.9 MB, free: 9.039 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001636/0.244, allocations: 3.654 MB / 398.5 MB, free: 5.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004598/0.2445, allocations: 0.6554 MB / 399.2 MB, free: 4.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001117/0.2456, allocations: 1.386 MB / 400.6 MB, free: 3.289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.892e-05/0.2457, allocations: 488.7 kB / 401 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.2469, allocations: 0.5664 MB / 401.6 MB, free: 2.238 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003861/0.2507, allocations: 6.439 MB / 408 MB, free: 9.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005721/0.2565, allocations: 7.66 MB / 415.7 MB, free: 15.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001016/0.2566, allocations: 40 kB / 415.7 MB, free: 14.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.006623/0.2632, allocations: 5.052 MB / 420.8 MB, free: 9.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.566e-05/0.2633, allocations: 64 kB / 420.9 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001106/0.2634, allocations: 136 kB / 421 MB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007826/0.2641, allocations: 379.7 kB / 421.4 MB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002191/0.2663, allocations: 1.38 MB / 422.7 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002387/0.2687, allocations: 2.767 MB / 425.5 MB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/0.2712, allocations: 271.8 kB / 425.8 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003553/0.2715, allocations: 340 kB / 426.1 MB, free: 4.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 633 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.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.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (771): * Single equations (assignments): 765 * 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.001267/0.2728, allocations: 0.6741 MB / 426.8 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004663/0.2733, allocations: 377.7 kB / 427.1 MB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.2747, allocations: 1.002 MB / 428.1 MB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.2747, allocations: 20 kB / 428.2 MB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.2747, allocations: 0 / 428.2 MB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.2747, allocations: 23.89 kB / 428.2 MB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1246/0.3993, allocations: 4.794 MB / 433 MB, free: 110.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/0.3994, allocations: 6.688 kB / 433 MB, free: 110.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006123/0.4, allocations: 207.6 kB / 433.2 MB, free: 110.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006675/0.4006, allocations: 185.8 kB / 433.4 MB, free: 110.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.532e-05/0.4007, allocations: 34.52 kB / 433.4 MB, free: 110.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001599/0.4023, allocations: 2.493 MB / 435.9 MB, free: 108.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.4023, allocations: 12.19 kB / 435.9 MB, free: 108.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002481/0.4048, allocations: 2.172 MB / 438.1 MB, free: 108 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005634/0.4054, allocations: 321.4 kB / 438.4 MB, free: 108 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.4056, allocations: 32.41 kB / 438.4 MB, free: 108 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006082/0.4062, allocations: 27.3 kB / 438.5 MB, free: 108 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.4064, allocations: 112.7 kB / 438.6 MB, free: 108 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.556e-05/0.4064, allocations: 41.22 kB / 438.6 MB, free: 108 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001803/0.4082, allocations: 1.483 MB / 440.1 MB, free: 107.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4082, allocations: 0 / 440.1 MB, free: 107.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003626/0.4119, allocations: 1.043 MB / 441.1 MB, free: 107.8 MB / 378.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.000348/0.4122, allocations: 192.7 kB / 441.3 MB, free: 107.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003301/0.4155, allocations: 2.771 MB / 444.1 MB, free: 107.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.4155, allocations: 2.656 kB / 444.1 MB, free: 107.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006462/0.4162, allocations: 0.6308 MB / 444.7 MB, free: 107.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001791/0.4179, allocations: 435.3 kB / 445.1 MB, free: 107.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.4286, allocations: 7.857 MB / 453 MB, free: 103.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001304/0.4299, allocations: 1.304 MB / 454.3 MB, free: 103.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001415/0.4313, allocations: 497.5 kB / 454.8 MB, free: 103.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007529/0.432, allocations: 0.563 MB / 455.4 MB, free: 103.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.834e-06/0.432, allocations: 2.094 kB / 455.4 MB, free: 103.3 MB / 378.7 MB Notification: Performance of Templates: time 0.04412/0.4761, allocations: 29.9 MB / 485.3 MB, free: 79.07 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.6848518420010805]