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.001033/0.001033, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001073/0.001073, allocations: 163 kB / 24.99 MB, free: 8.758 MB / 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.9497/0.9497, allocations: 177.1 MB / 205.3 MB, free: 5.578 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.984e-06/1.984e-06, allocations: 0 / 273.1 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.287e-05/2.486e-05, allocations: 2.312 kB / 273.1 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.02346/0.02349, allocations: 10.89 MB / 284 MB, free: 6.863 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01313/0.03662, allocations: 3.964 MB / 287.9 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003987/0.04061, allocations: 79.62 kB / 288 MB, free: 2.809 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1206/0.1612, allocations: 3.405 MB / 291.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004792/0.166, allocations: 2 MB / 293.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.1675, allocations: 0.9042 MB / 294.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004794/0.1723, allocations: 4.804 MB / 299.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002849/0.1751, allocations: 3.393 MB / 302.5 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002323/0.1774, allocations: 2.437 MB / 304.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001991/0.1794, allocations: 2.286 MB / 307.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004577/0.1799, allocations: 351.2 kB / 307.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001193/0.1811, allocations: 1.195 MB / 308.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.1821, allocations: 2.148 MB / 310.9 MB, free: 9.199 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.1831, allocations: 1.315 MB / 312.2 MB, free: 8.504 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003072/0.1862, allocations: 4.864 MB / 317.1 MB, free: 3.992 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1862, allocations: 0 / 317.1 MB, free: 3.992 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1862, allocations: 0 / 317.1 MB, free: 3.992 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001008/0.1863, allocations: 0 / 317.1 MB, free: 3.992 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.005665/0.192, allocations: 5.5 MB / 322.6 MB, free: 14.53 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.192, allocations: 8.031 kB / 322.6 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005311/0.1973, allocations: 2.609 MB / 325.2 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002788/0.2001, allocations: 2.484 MB / 327.7 MB, free: 9.578 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.2002, allocations: 249.3 kB / 327.9 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003472/0.2006, allocations: 322.9 kB / 328.2 MB, free: 9.094 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007229/0.2078, allocations: 6.354 MB / 334.6 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.818e-05/0.2079, allocations: 43.08 kB / 334.6 MB, free: 1.973 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002897/0.2082, allocations: 159.5 kB / 334.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00193/0.2101, allocations: 2.03 MB / 336.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006625/0.2167, allocations: 3.533 MB / 340.4 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0267/0.2434, allocations: 43.45 MB / 383.8 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005526/0.249, allocations: 2.614 MB / 386.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009326/0.2499, allocations: 0.786 MB / 387.2 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004866/0.2548, allocations: 4.534 MB / 391.7 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.2548, allocations: 54.33 kB / 391.8 MB, free: 8.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=177): time 3.717e-06/0.2548, allocations: 0 / 391.8 MB, free: 8.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=198): time 0.02471/0.2795, allocations: 13.71 MB / 405.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.2797, allocations: 179.5 kB / 405.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00334/0.283, allocations: 3.579 MB / 409.3 MB, free: 6.488 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.2831, allocations: 61.45 kB / 409.3 MB, free: 6.426 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001543/0.2846, allocations: 3.412 MB / 412.7 MB, free: 3.027 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007475/0.2854, allocations: 0.8256 MB / 413.6 MB, free: 2.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001199/0.2866, allocations: 1.372 MB / 414.9 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.2867, allocations: 476.8 kB / 415.4 MB, free: 368 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.288, allocations: 0.7625 MB / 416.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003624/0.2917, allocations: 6.258 MB / 422.4 MB, free: 6.832 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005713/0.2974, allocations: 7.728 MB / 430.1 MB, free: 12.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-05/0.2974, allocations: 44 kB / 430.2 MB, free: 12.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.007698/0.3051, allocations: 6.009 MB / 436.2 MB, free: 6.566 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.783e-05/0.3052, allocations: 64 kB / 436.3 MB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.937e-05/0.3053, allocations: 128 kB / 436.4 MB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001866/0.3071, allocations: 0.7903 MB / 437.2 MB, free: 5.586 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002462/0.3096, allocations: 1.443 MB / 438.6 MB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004008/0.3136, allocations: 3.917 MB / 442.5 MB, free: 108 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1226/0.4362, allocations: 372.2 kB / 442.9 MB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006817/0.4368, allocations: 379.5 kB / 443.3 MB, free: 126.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * 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 (763): * Single equations (assignments): 757 * 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,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001433/0.4383, allocations: 0.6682 MB / 443.9 MB, free: 126 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004792/0.4388, allocations: 399.7 kB / 444.3 MB, free: 126 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003546/0.4423, allocations: 2.06 MB / 446.4 MB, free: 125.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/0.4423, allocations: 20.75 kB / 446.4 MB, free: 125.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.4423, allocations: 6.266 kB / 446.4 MB, free: 125.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.797e-05/0.4424, allocations: 13.48 kB / 446.4 MB, free: 125.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009122/0.4515, allocations: 6.042 MB / 452.5 MB, free: 125.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.4515, allocations: 5.5 kB / 452.5 MB, free: 125.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008338/0.4523, allocations: 322.2 kB / 452.8 MB, free: 125.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.4538, allocations: 0.6268 MB / 453.4 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.4539, allocations: 39.19 kB / 453.5 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003419/0.4573, allocations: 3.623 MB / 457.1 MB, free: 123.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.4573, allocations: 14.16 kB / 457.1 MB, free: 123.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003914/0.4612, allocations: 3.34 MB / 460.4 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000346/0.4616, allocations: 334.5 kB / 460.8 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/0.4618, allocations: 32.84 kB / 460.8 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008199/0.4626, allocations: 150.8 kB / 460.9 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.4629, allocations: 129.5 kB / 461.1 MB, free: 122.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.663e-05/0.4629, allocations: 56.31 kB / 461.1 MB, free: 122.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001487/0.4644, allocations: 1.537 MB / 462.7 MB, free: 121.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4644, allocations: 0 / 462.7 MB, free: 121.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003093/0.4675, allocations: 1.135 MB / 463.8 MB, free: 121.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (157): * Single equations (assignments): 153 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003637/0.4679, allocations: 192.8 kB / 464 MB, free: 121.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003832/0.4717, allocations: 3.33 MB / 467.3 MB, free: 120.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4717, allocations: 3.906 kB / 467.3 MB, free: 120.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.473, allocations: 1.143 MB / 468.5 MB, free: 120 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.4743, allocations: 417.6 kB / 468.9 MB, free: 119.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007481/0.4818, allocations: 8.082 MB / 476.9 MB, free: 112.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008477/0.4827, allocations: 1.299 MB / 478.2 MB, free: 111.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001947/0.4846, allocations: 1.656 MB / 479.9 MB, free: 110.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004568/0.4851, allocations: 236.5 kB / 480.1 MB, free: 110.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4851, allocations: 0 / 480.1 MB, free: 110.1 MB / 394.7 MB Notification: Performance of Templates: time 0.03827/0.5233, allocations: 35.06 MB / 0.5031 GB, free: 75.54 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.8749048430472612]