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.001149/0.001149, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001542/0.002692, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0009819/0.0009819, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00137/0.002352, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.8999/0.8999, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07564/0.9756, allocations: 52.49 MB / 238.3 MB, free: 4.426 MB / 234.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.703e-06/1.703e-06, allocations: 0 / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.516e-05/1.686e-05, allocations: 6.812 kB / 239.6 MB, free: 3.148 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.009131/0.009148, allocations: 10.92 MB / 250.5 MB, free: 8.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006774/0.01592, allocations: 4.165 MB / 254.7 MB, free: 4 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.01694, allocations: 83.69 kB / 254.7 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003326/0.02026, allocations: 3.251 MB / 258 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002916/0.02318, allocations: 2.049 MB / 260 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.02433, allocations: 0.8458 MB / 260.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003872/0.02821, allocations: 4.525 MB / 265.4 MB, free: 9.219 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00234/0.03055, allocations: 3.241 MB / 268.6 MB, free: 5.891 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002711/0.03326, allocations: 2.954 MB / 271.6 MB, free: 2.934 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002043/0.0353, allocations: 2.17 MB / 273.8 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006049/0.0359, allocations: 356 kB / 274.1 MB, free: 420 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1223/0.1582, allocations: 1.233 MB / 275.3 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002546/0.1607, allocations: 1.985 MB / 277.3 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002694/0.1634, allocations: 1.115 MB / 278.4 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00709/0.1705, allocations: 4.658 MB / 283.1 MB, free: 7.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.4e-05/0.1705, allocations: 3.5 kB / 283.1 MB, free: 7.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1705, allocations: 3.938 kB / 283.1 MB, free: 7.906 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002703/0.1708, allocations: 0 / 283.1 MB, free: 7.906 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.008852/0.1796, allocations: 5.828 MB / 288.9 MB, free: 5.738 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.1797, allocations: 11.12 kB / 289 MB, free: 5.738 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003115/0.1828, allocations: 1.164 MB / 290.1 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002795/0.1856, allocations: 2.056 MB / 292.2 MB, free: 5.125 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.1857, allocations: 254.6 kB / 292.4 MB, free: 5.117 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003581/0.186, allocations: 330.8 kB / 292.7 MB, free: 5.113 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005836/0.1919, allocations: 5.221 MB / 298 MB, free: 3.184 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.29e-05/0.192, allocations: 39.73 kB / 298 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002758/0.1922, allocations: 157.8 kB / 298.2 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001417/0.1937, allocations: 1.884 MB / 300 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004776/0.1984, allocations: 2.658 MB / 302.7 MB, free: 1.566 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02755/0.226, allocations: 32.17 MB / 334.9 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004216/0.2302, allocations: 1.884 MB / 336.8 MB, free: 108 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.2308, allocations: 422.7 kB / 337.2 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005072/0.2359, allocations: 3.524 MB / 340.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.2359, allocations: 51.56 kB / 340.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=145): time 3.978e-06/0.2359, allocations: 2.438 kB / 340.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=150): time 0.01294/0.2488, allocations: 5.651 MB / 346.4 MB, free: 6.551 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.2489, allocations: 141.5 kB / 346.5 MB, free: 6.383 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002979/0.2519, allocations: 3.336 MB / 349.9 MB, free: 3.664 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.861e-05/0.2519, allocations: 45.7 kB / 349.9 MB, free: 3.613 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/0.2534, allocations: 3.241 MB / 353.2 MB, free: 0.543 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003853/0.2538, allocations: 0.619 MB / 353.8 MB, free: 15.96 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001291/0.2551, allocations: 1.197 MB / 355 MB, free: 14.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.547e-05/0.2552, allocations: 305.1 kB / 355.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.2564, allocations: 0.7589 MB / 356 MB, free: 13.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002963/0.2593, allocations: 4.551 MB / 360.6 MB, free: 7.551 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004353/0.2637, allocations: 5.845 MB / 366.4 MB, free: 216 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.393e-05/0.2637, allocations: 40 kB / 366.5 MB, free: 176 kB / 330.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.004965/0.2687, allocations: 4.301 MB / 370.8 MB, free: 11.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.103e-05/0.2688, allocations: 64.97 kB / 370.8 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.623e-05/0.2689, allocations: 142.7 kB / 371 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007125/0.2696, allocations: 369.9 kB / 371.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003003/0.2726, allocations: 1.544 MB / 372.9 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.2747, allocations: 2.194 MB / 375.1 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002426/0.2771, allocations: 267.7 kB / 375.3 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002942/0.2774, allocations: 331.3 kB / 375.7 MB, free: 6.898 MB / 346.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.001507/0.2789, allocations: 0.6507 MB / 376.3 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00035/0.2793, allocations: 211.8 kB / 376.5 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.2805, allocations: 0.8823 MB / 377.4 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/0.2805, allocations: 20 kB / 377.4 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2805, allocations: 4 kB / 377.4 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.2805, allocations: 11.91 kB / 377.4 MB, free: 5.098 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005442/0.286, allocations: 4.064 MB / 381.5 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/0.286, allocations: 8.844 kB / 381.5 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007627/0.2867, allocations: 243.6 kB / 381.7 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004731/0.2872, allocations: 317.5 kB / 382 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.2882, allocations: 374.9 kB / 382.4 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-05/0.2883, allocations: 28.7 kB / 382.4 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.2902, allocations: 1.938 MB / 384.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.2902, allocations: 15.88 kB / 384.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002274/0.2925, allocations: 1.816 MB / 386.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003496/0.2929, allocations: 35.98 kB / 386.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000808/0.2937, allocations: 31.94 kB / 386.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.2939, allocations: 96.38 kB / 386.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.373e-05/0.2939, allocations: 39.98 kB / 386.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00172/0.2957, allocations: 1.207 MB / 387.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2957, allocations: 4 kB / 387.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004542/0.3002, allocations: 1.043 MB / 388.7 MB, free: 10.14 MB / 362.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.0004039/0.3006, allocations: 175.9 kB / 388.8 MB, free: 9.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003721/0.3043, allocations: 2.526 MB / 391.4 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002403/0.3046, allocations: 110.8 kB / 391.5 MB, free: 7.328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007656/0.3053, allocations: 0.5202 MB / 392 MB, free: 6.793 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003093/0.3084, allocations: 0.8723 MB / 392.9 MB, free: 5.926 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04537/0.3538, allocations: 7.915 MB / 400.8 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00773/0.3615, allocations: 1.305 MB / 402.1 MB, free: 12.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001696/0.3632, allocations: 495.7 kB / 402.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009095/0.3641, allocations: 0.5246 MB / 403.1 MB, free: 11.49 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/0.3641, allocations: 0 / 403.1 MB, free: 11.49 MB / 378.7 MB Notification: Performance of Templates: time 0.1717/0.5359, allocations: 30.38 MB / 433.5 MB, free: 112.1 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 -ignoreHideResult -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.744068912230432]