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.001323/0.001323, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0008568/0.0008568, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.8852/0.8852, allocations: 173.3 MB / 201.1 MB, free: 9.348 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.463e-06/1.463e-06, allocations: 0 / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.388e-05/1.534e-05, allocations: 6.25 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.009085/0.0091, allocations: 11.15 MB / 279.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00604/0.01514, allocations: 4.002 MB / 283.2 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008162/0.01596, allocations: 79.62 kB / 283.2 MB, free: 7.137 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003162/0.01912, allocations: 3.45 MB / 286.7 MB, free: 3.676 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002986/0.0221, allocations: 2.092 MB / 288.8 MB, free: 1.574 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.02323, allocations: 0.9082 MB / 289.7 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1156/0.1389, allocations: 4.814 MB / 294.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004313/0.1432, allocations: 3.443 MB / 297.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004976/0.1482, allocations: 3.024 MB / 301 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00294/0.1511, allocations: 2.299 MB / 303.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006747/0.1518, allocations: 357.2 kB / 303.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001609/0.1534, allocations: 1.203 MB / 304.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001312/0.1547, allocations: 2.224 MB / 307 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001277/0.156, allocations: 1.356 MB / 308.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004289/0.1603, allocations: 5.022 MB / 313.4 MB, free: 9.902 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1603, allocations: 0 / 313.4 MB, free: 9.902 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1603, allocations: 7.188 kB / 313.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001384/0.1604, allocations: 0 / 313.4 MB, free: 9.898 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.006391/0.1668, allocations: 5.666 MB / 319.1 MB, free: 4.312 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.1668, allocations: 8.922 kB / 319.1 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004776/0.1716, allocations: 2.644 MB / 321.7 MB, free: 1.695 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003067/0.1747, allocations: 2.464 MB / 324.2 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.1748, allocations: 252.8 kB / 324.5 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004205/0.1752, allocations: 333.6 kB / 324.8 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009109/0.1843, allocations: 6.49 MB / 331.3 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.546e-05/0.1844, allocations: 37.39 kB / 331.3 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003039/0.1847, allocations: 162.8 kB / 331.5 MB, free: 7.504 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002057/0.1868, allocations: 2.039 MB / 333.5 MB, free: 5.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00747/0.1943, allocations: 3.439 MB / 336.9 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03215/0.2264, allocations: 44.52 MB / 381.5 MB, free: 4.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005144/0.2316, allocations: 2.458 MB / 383.9 MB, free: 2.301 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000771/0.2323, allocations: 0.598 MB / 384.5 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005032/0.2374, allocations: 4.174 MB / 388.7 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.2374, allocations: 53.02 kB / 388.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=145): time 3.577e-06/0.2374, allocations: 0 / 388.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=150): time 0.01833/0.2557, allocations: 10.83 MB / 399.6 MB, free: 2.59 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/0.2558, allocations: 174.7 kB / 399.8 MB, free: 2.383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003762/0.2596, allocations: 3.756 MB / 403.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.709e-05/0.2597, allocations: 45.7 kB / 403.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001888/0.2615, allocations: 3.621 MB / 407.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004701/0.262, allocations: 0.6515 MB / 407.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001111/0.2631, allocations: 1.369 MB / 409.2 MB, free: 8.953 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.2632, allocations: 484.7 kB / 409.7 MB, free: 8.477 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00099/0.2642, allocations: 0.6328 MB / 410.3 MB, free: 7.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003596/0.2678, allocations: 6.47 MB / 416.8 MB, free: 14.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007203/0.275, allocations: 7.832 MB / 424.6 MB, free: 4.422 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.849e-05/0.2751, allocations: 44 kB / 424.7 MB, free: 4.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.1244/0.3995, allocations: 5.531 MB / 430.2 MB, free: 100.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.818e-05/0.3996, allocations: 69.47 kB / 430.2 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/0.3998, allocations: 138.6 kB / 430.4 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.401, allocations: 478.3 kB / 430.9 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/0.4039, allocations: 1.437 MB / 432.3 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/0.4061, allocations: 2.881 MB / 435.2 MB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/0.4086, allocations: 368.1 kB / 435.5 MB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003949/0.409, allocations: 385.2 kB / 435.9 MB, free: 98.38 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.001216/0.4103, allocations: 0.6785 MB / 436.6 MB, free: 98.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003879/0.4106, allocations: 390 kB / 437 MB, free: 98.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001712/0.4124, allocations: 1.201 MB / 438.2 MB, free: 98.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.227e-05/0.4124, allocations: 18.05 kB / 438.2 MB, free: 98.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.4124, allocations: 3.016 kB / 438.2 MB, free: 98.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.4124, allocations: 12.89 kB / 438.2 MB, free: 98.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006214/0.4186, allocations: 5.061 MB / 443.3 MB, free: 97.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4186, allocations: 7.875 kB / 443.3 MB, free: 97.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005402/0.4192, allocations: 242.5 kB / 443.5 MB, free: 97.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006742/0.4198, allocations: 282 kB / 443.8 MB, free: 97.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.869e-05/0.4199, allocations: 36.69 kB / 443.8 MB, free: 97.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/0.4215, allocations: 2.6 MB / 446.4 MB, free: 95.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.4215, allocations: 15.78 kB / 446.4 MB, free: 95.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.4238, allocations: 2.412 MB / 448.8 MB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003406/0.4242, allocations: 334.2 kB / 449.2 MB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.4244, allocations: 36.12 kB / 449.2 MB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006071/0.425, allocations: 92.27 kB / 449.3 MB, free: 94.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.4251, allocations: 103.4 kB / 449.4 MB, free: 94.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-05/0.4252, allocations: 57.42 kB / 449.5 MB, free: 94.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001467/0.4266, allocations: 1.59 MB / 451 MB, free: 94.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4266, allocations: 0 / 451 MB, free: 94.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002931/0.4296, allocations: 1.046 MB / 452.1 MB, free: 94.25 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.0003111/0.4299, allocations: 197.4 kB / 452.3 MB, free: 94.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003094/0.433, allocations: 2.961 MB / 455.2 MB, free: 93.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.433, allocations: 0 / 455.2 MB, free: 93.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006119/0.4336, allocations: 0.6965 MB / 455.9 MB, free: 93.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.4348, allocations: 427.8 kB / 456.4 MB, free: 93.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007542/0.4424, allocations: 7.902 MB / 464.3 MB, free: 89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008364/0.4432, allocations: 1.301 MB / 465.6 MB, free: 88.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001919/0.4451, allocations: 1.627 MB / 467.2 MB, free: 87.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/0.4455, allocations: 223.2 kB / 467.4 MB, free: 87.17 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.4455, allocations: 0 / 467.4 MB, free: 87.17 MB / 378.7 MB Notification: Performance of Templates: time 0.04717/0.4927, allocations: 28.07 MB / 495.5 MB, free: 61.02 MB / 378.7 MB " [Timeout remaining time 659] 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.761647704988718]