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.0009668/0.0009668, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.004212/0.004212, allocations: 143.4 kB / 24.89 MB, free: 8.727 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.906/0.906, allocations: 173.4 MB / 201.5 MB, free: 8.773 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.452e-06/1.452e-06, allocations: 0 / 268.5 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.551e-05/2.696e-05, allocations: 6.25 kB / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01235/0.01238, allocations: 10.82 MB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00932/0.02169, allocations: 4.129 MB / 283.4 MB, free: 7.016 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.02355, allocations: 79.62 kB / 283.5 MB, free: 6.938 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003506/0.02706, allocations: 3.438 MB / 286.9 MB, free: 3.488 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003802/0.03086, allocations: 2.088 MB / 289 MB, free: 1.391 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.03226, allocations: 0.916 MB / 289.9 MB, free: 484 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.12/0.1523, allocations: 4.8 MB / 294.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004597/0.1568, allocations: 3.531 MB / 298.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004597/0.1614, allocations: 3.011 MB / 301.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002954/0.1644, allocations: 2.192 MB / 303.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008504/0.1653, allocations: 354.6 kB / 303.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001643/0.1669, allocations: 1.2 MB / 305 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.1682, allocations: 2.215 MB / 307.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001704/0.1699, allocations: 1.356 MB / 308.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004277/0.1741, allocations: 5.015 MB / 313.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1741, allocations: 4 kB / 313.6 MB, free: 9.414 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.1742, allocations: 0 / 313.6 MB, free: 9.414 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002114/0.1744, allocations: 6.531 kB / 313.6 MB, free: 9.41 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.005645/0.18, allocations: 4.828 MB / 318.5 MB, free: 4.941 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.18, allocations: 8.922 kB / 318.5 MB, free: 4.934 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002747/0.1828, allocations: 1.178 MB / 319.6 MB, free: 3.809 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002248/0.185, allocations: 2.054 MB / 321.7 MB, free: 1.879 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-05/0.1851, allocations: 256.1 kB / 321.9 MB, free: 1.668 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/0.1854, allocations: 329.4 kB / 322.3 MB, free: 1.387 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005421/0.1909, allocations: 5.231 MB / 327.5 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.076e-05/0.191, allocations: 40.86 kB / 327.5 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002749/0.1912, allocations: 155.5 kB / 327.7 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001544/0.1928, allocations: 1.865 MB / 329.6 MB, free: 9.969 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004583/0.1974, allocations: 2.673 MB / 332.2 MB, free: 7.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02351/0.2209, allocations: 32.18 MB / 364.4 MB, free: 7.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004087/0.225, allocations: 1.93 MB / 366.3 MB, free: 5.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004822/0.2254, allocations: 431.5 kB / 366.8 MB, free: 4.984 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004379/0.2298, allocations: 3.572 MB / 370.3 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.2299, allocations: 51.03 kB / 370.4 MB, free: 1.391 MB / 314.7 MB Notification: Performance of pre-optimization done (n=145): time 4.618e-06/0.2299, allocations: 3.938 kB / 370.4 MB, free: 1.387 MB / 314.7 MB Notification: Performance of matching and sorting (n=150): time 0.01328/0.2431, allocations: 5.745 MB / 376.1 MB, free: 11.7 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.2432, allocations: 170.4 kB / 376.3 MB, free: 11.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002518/0.2457, allocations: 3.347 MB / 379.6 MB, free: 8.648 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.294e-05/0.2458, allocations: 41.7 kB / 379.7 MB, free: 8.602 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001242/0.247, allocations: 3.239 MB / 382.9 MB, free: 5.328 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000354/0.2474, allocations: 0.6164 MB / 383.5 MB, free: 4.707 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009052/0.2483, allocations: 1.191 MB / 384.7 MB, free: 3.504 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.155e-05/0.2484, allocations: 305.1 kB / 385 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.2495, allocations: 0.7628 MB / 385.8 MB, free: 2.434 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002544/0.252, allocations: 4.542 MB / 390.3 MB, free: 11.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003855/0.2559, allocations: 5.853 MB / 396.2 MB, free: 4.398 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.001e-05/0.2559, allocations: 40 kB / 396.2 MB, free: 4.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.004695/0.2606, allocations: 4.301 MB / 400.5 MB, free: 40 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.493e-05/0.2607, allocations: 67.55 kB / 400.6 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.305e-05/0.2608, allocations: 140 kB / 400.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007322/0.2615, allocations: 375.2 kB / 401.1 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/0.2636, allocations: 1.392 MB / 402.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/0.2654, allocations: 2.193 MB / 404.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.2675, allocations: 267.7 kB / 404.9 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002754/0.2678, allocations: 340 kB / 405.3 MB, free: 11.2 MB / 362.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.00109/0.2689, allocations: 0.6313 MB / 405.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002673/0.2691, allocations: 211.8 kB / 406.1 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.2703, allocations: 0.8787 MB / 407 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.2703, allocations: 20 kB / 407 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2703, allocations: 4 kB / 407 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.2703, allocations: 11.97 kB / 407 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004981/0.2753, allocations: 4.081 MB / 411.1 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.2753, allocations: 8 kB / 411.1 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/0.2758, allocations: 203.7 kB / 411.3 MB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00074/0.2766, allocations: 378.7 kB / 411.7 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.433e-05/0.2766, allocations: 35.94 kB / 411.7 MB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/0.2782, allocations: 1.92 MB / 413.6 MB, free: 2.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.2782, allocations: 8 kB / 413.6 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.2799, allocations: 1.822 MB / 415.5 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003073/0.2802, allocations: 317.5 kB / 415.8 MB, free: 296 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002097/0.2804, allocations: 35.98 kB / 415.8 MB, free: 260 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/0.281, allocations: 31.94 kB / 415.8 MB, free: 228 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.2811, allocations: 100.3 kB / 415.9 MB, free: 128 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.369e-05/0.2811, allocations: 36 kB / 416 MB, free: 92 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000969/0.2821, allocations: 1.211 MB / 417.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2821, allocations: 0 / 417.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002859/0.285, allocations: 1.047 MB / 418.2 MB, free: 13.85 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.0002921/0.2853, allocations: 175.9 kB / 418.4 MB, free: 13.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00254/0.2878, allocations: 2.512 MB / 420.9 MB, free: 11.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001484/0.288, allocations: 104.2 kB / 421 MB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005418/0.2885, allocations: 0.511 MB / 421.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/0.2902, allocations: 0.6393 MB / 422.2 MB, free: 9.891 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008819/0.299, allocations: 7.718 MB / 429.9 MB, free: 2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.3002, allocations: 1.292 MB / 431.2 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001242/0.3014, allocations: 0.4959 MB / 431.7 MB, free: 188 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.116/0.4174, allocations: 0.5173 MB / 432.2 MB, free: 105.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.483e-06/0.4174, allocations: 0 / 432.2 MB, free: 105.3 MB / 378.7 MB Notification: Performance of Templates: time 0.04657/0.464, allocations: 29.84 MB / 462 MB, free: 95.52 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.738215799909085]