Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001/0.001, allocations: 85.95 kB / 22.99 MB, free: 1.508 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.001058/0.001058, allocations: 172.1 kB / 26.39 MB, free: 8.004 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8568/0.8568, allocations: 158.6 MB / 188.3 MB, free: 2.793 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 252.3 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.242e-05/1.345e-05, allocations: 6.25 kB / 252.3 MB, free: 7.238 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.008874/0.008888, allocations: 11.8 MB / 264.1 MB, free: 11.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006192/0.01508, allocations: 4.077 MB / 268.1 MB, free: 7.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008887/0.01597, allocations: 87.62 kB / 268.2 MB, free: 7.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004057/0.02003, allocations: 3.422 MB / 271.7 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003375/0.0234, allocations: 2.232 MB / 273.9 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.02471, allocations: 0.9043 MB / 274.8 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004542/0.02925, allocations: 4.938 MB / 279.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003384/0.03263, allocations: 3.587 MB / 283.3 MB, free: 8.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003199/0.03583, allocations: 3.017 MB / 286.3 MB, free: 4.996 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.03867, allocations: 2.494 MB / 288.8 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005778/0.03925, allocations: 392 kB / 289.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001622/0.04087, allocations: 1.24 MB / 290.4 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001701/0.04257, allocations: 2.373 MB / 292.8 MB, free: 14.49 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.04406, allocations: 1.464 MB / 294.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004967/0.04903, allocations: 5.398 MB / 299.7 MB, free: 7.602 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.04903, allocations: 0 / 299.7 MB, free: 7.602 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.04903, allocations: 4 kB / 299.7 MB, free: 7.598 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.254e-05/0.04912, allocations: 0 / 299.7 MB, free: 7.598 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.007388/0.0565, allocations: 5.813 MB / 305.5 MB, free: 1.719 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.05654, allocations: 11.98 kB / 305.5 MB, free: 1.707 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005893/0.06243, allocations: 1.816 MB / 307.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003147/0.06558, allocations: 2.321 MB / 309.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.06575, allocations: 270.9 kB / 309.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004965/0.06625, allocations: 347.8 kB / 310.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007715/0.07396, allocations: 6.149 MB / 316.4 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.763e-05/0.07404, allocations: 43.58 kB / 316.4 MB, free: 5.742 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002904/0.07433, allocations: 171.8 kB / 316.6 MB, free: 5.574 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001623/0.07595, allocations: 2.05 MB / 318.7 MB, free: 3.523 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004322/0.08028, allocations: 2.836 MB / 321.5 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.138/0.2183, allocations: 46.38 MB / 367.9 MB, free: 58.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004525/0.2228, allocations: 2.136 MB / 370 MB, free: 58.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005926/0.2234, allocations: 0.5979 MB / 370.6 MB, free: 58.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004306/0.2277, allocations: 4.254 MB / 374.9 MB, free: 57.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.2277, allocations: 57.55 kB / 374.9 MB, free: 57.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 3.216e-06/0.2277, allocations: 0 / 374.9 MB, free: 57.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=189): time 0.01483/0.2426, allocations: 7.151 MB / 382.1 MB, free: 56.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.2426, allocations: 179.1 kB / 382.3 MB, free: 56.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.245, allocations: 3.846 MB / 386.1 MB, free: 54.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.205e-05/0.2451, allocations: 52.58 kB / 386.2 MB, free: 54.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001183/0.2463, allocations: 3.844 MB / 390 MB, free: 51.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003702/0.2467, allocations: 0.7926 MB / 390.8 MB, free: 50.4 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009753/0.2477, allocations: 1.48 MB / 392.3 MB, free: 48.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.628e-05/0.2477, allocations: 480.8 kB / 392.7 MB, free: 48.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008703/0.2486, allocations: 0.6551 MB / 393.4 MB, free: 47.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002403/0.251, allocations: 6.765 MB / 400.2 MB, free: 38.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00409/0.2551, allocations: 8.101 MB / 408.3 MB, free: 28.06 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.135e-05/0.2551, allocations: 40 kB / 408.3 MB, free: 28.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.004944/0.26, allocations: 5.434 MB / 413.7 MB, free: 22.58 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/0.2601, allocations: 68 kB / 413.8 MB, free: 22.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.068e-05/0.2602, allocations: 144 kB / 413.9 MB, free: 22.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006933/0.2609, allocations: 378.8 kB / 414.3 MB, free: 22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002145/0.263, allocations: 1.501 MB / 415.8 MB, free: 20.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.2646, allocations: 2.77 MB / 418.6 MB, free: 17.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.2664, allocations: 291.7 kB / 418.9 MB, free: 17.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002327/0.2667, allocations: 352 kB / 419.2 MB, free: 16.98 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 42 (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 (834): * Single equations (assignments): 828 * 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.0008143/0.2675, allocations: 0.7084 MB / 419.9 MB, free: 16.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/0.2678, allocations: 412.5 kB / 420.3 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.2693, allocations: 1.308 MB / 421.6 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.2693, allocations: 20 kB / 421.6 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.2693, allocations: 4 kB / 421.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.2693, allocations: 7.969 kB / 421.7 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005661/0.275, allocations: 5.45 MB / 427.1 MB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.275, allocations: 8 kB / 427.1 MB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006644/0.2757, allocations: 283.5 kB / 427.4 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005617/0.2762, allocations: 189.8 kB / 427.6 MB, free: 8.438 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-05/0.2763, allocations: 39.98 kB / 427.6 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001359/0.2777, allocations: 2.498 MB / 430.1 MB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.2777, allocations: 12.66 kB / 430.1 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00333/0.281, allocations: 2.534 MB / 432.7 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008057/0.2818, allocations: 0.5012 MB / 433.2 MB, free: 2.605 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003623/0.2822, allocations: 32 kB / 433.2 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.2833, allocations: 39.98 kB / 433.2 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.2835, allocations: 132.5 kB / 433.4 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.2836, allocations: 44 kB / 433.4 MB, free: 2.363 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001706/0.2853, allocations: 1.531 MB / 434.9 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2853, allocations: 0 / 434.9 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.005364/0.2907, allocations: 1.144 MB / 436.1 MB, free: 15.7 MB / 346.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 (161): * Single equations (assignments): 157 * 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.0004189/0.2911, allocations: 198.7 kB / 436.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005104/0.2962, allocations: 3.062 MB / 439.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.2962, allocations: 4 kB / 439.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001314/0.2975, allocations: 0.764 MB / 440.1 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.2998, allocations: 432.1 kB / 440.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01153/0.3113, allocations: 8.556 MB / 449.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/0.3125, allocations: 1.411 MB / 450.5 MB, free: 1.078 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00136/0.3139, allocations: 0.5283 MB / 451 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000824/0.3147, allocations: 0.5997 MB / 451.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3147, allocations: 0 / 451.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of Templates: time 0.04735/0.3621, allocations: 33.88 MB / 485.5 MB, free: 14.07 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 4.039881396107376]