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.00132/0.00132, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001415/0.001415, allocations: 145.1 kB / 25.59 MB, free: 8.941 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.894/0.894, allocations: 173.4 MB / 202.2 MB, free: 8.305 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.663e-06/1.663e-06, allocations: 0 / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.211e-05/2.378e-05, allocations: 2.312 kB / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01037/0.01039, allocations: 10.81 MB / 280 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006162/0.01655, allocations: 3.98 MB / 284 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.01766, allocations: 83.62 kB / 284.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003272/0.02093, allocations: 3.38 MB / 287.4 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003022/0.02395, allocations: 2.092 MB / 289.5 MB, free: 5.375 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.02508, allocations: 0.9081 MB / 290.4 MB, free: 4.465 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004004/0.02909, allocations: 4.825 MB / 295.3 MB, free: 15.63 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003045/0.03213, allocations: 3.451 MB / 298.7 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003083/0.03522, allocations: 3.025 MB / 301.7 MB, free: 9.082 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002007/0.03722, allocations: 2.295 MB / 304 MB, free: 6.781 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004153/0.03764, allocations: 356 kB / 304.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001454/0.03909, allocations: 1.201 MB / 305.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00124/0.04033, allocations: 2.213 MB / 307.8 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.04147, allocations: 1.363 MB / 309.2 MB, free: 1.645 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003613/0.04508, allocations: 5.021 MB / 314.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.04509, allocations: 0 / 314.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.04509, allocations: 0 / 314.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.062e-05/0.04514, allocations: 0 / 314.2 MB, free: 12.61 MB / 298.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.005284/0.05042, allocations: 5.475 MB / 319.7 MB, free: 7.062 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.05046, allocations: 12.03 kB / 319.7 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004173/0.05463, allocations: 1.722 MB / 321.4 MB, free: 5.324 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002352/0.05698, allocations: 2.192 MB / 323.6 MB, free: 3.078 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.0571, allocations: 250.4 kB / 323.8 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003564/0.05746, allocations: 335.7 kB / 324.2 MB, free: 2.504 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005688/0.06314, allocations: 5.774 MB / 329.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.311e-05/0.06322, allocations: 39.64 kB / 330 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002562/0.06347, allocations: 159.8 kB / 330.1 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00152/0.06499, allocations: 1.873 MB / 332 MB, free: 9.719 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00419/0.06918, allocations: 2.613 MB / 334.6 MB, free: 7.082 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1328/0.2019, allocations: 44.17 MB / 378.8 MB, free: 47.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004801/0.2067, allocations: 1.976 MB / 380.8 MB, free: 47.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005282/0.2073, allocations: 0.506 MB / 381.3 MB, free: 47.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004117/0.2114, allocations: 3.876 MB / 385.1 MB, free: 46.69 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.2114, allocations: 55.48 kB / 385.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=145): time 3.096e-06/0.2114, allocations: 1.531 kB / 385.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=150): time 0.01413/0.2255, allocations: 6.487 MB / 391.7 MB, free: 45.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.2256, allocations: 174 kB / 391.9 MB, free: 45.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/0.2281, allocations: 3.739 MB / 395.6 MB, free: 44.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.548e-05/0.2282, allocations: 47.7 kB / 395.6 MB, free: 44.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001149/0.2293, allocations: 3.656 MB / 399.3 MB, free: 41.6 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003658/0.2297, allocations: 0.6477 MB / 400 MB, free: 40.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009024/0.2306, allocations: 1.394 MB / 401.3 MB, free: 39.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.952e-05/0.2306, allocations: 476.8 kB / 401.8 MB, free: 39.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008014/0.2314, allocations: 0.5664 MB / 402.4 MB, free: 38.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002206/0.2336, allocations: 6.446 MB / 408.8 MB, free: 29.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003836/0.2375, allocations: 7.652 MB / 416.5 MB, free: 19.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-05/0.2375, allocations: 40 kB / 416.5 MB, free: 19.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.005007/0.2425, allocations: 5.06 MB / 421.6 MB, free: 14.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.492e-05/0.2426, allocations: 64 kB / 421.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-05/0.2427, allocations: 140 kB / 421.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007338/0.2434, allocations: 363.9 kB / 422.1 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/0.2453, allocations: 1.388 MB / 423.5 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.247, allocations: 2.771 MB / 426.3 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/0.249, allocations: 263.7 kB / 426.5 MB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002262/0.2493, allocations: 340 kB / 426.9 MB, free: 9.098 MB / 330.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.0009236/0.2502, allocations: 0.681 MB / 427.6 MB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003414/0.2505, allocations: 384.2 kB / 427.9 MB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/0.2517, allocations: 0.9939 MB / 428.9 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.2517, allocations: 23.98 kB / 429 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2517, allocations: 0 / 429 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.2518, allocations: 11.97 kB / 429 MB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005358/0.2571, allocations: 4.811 MB / 433.8 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.2571, allocations: 8 kB / 433.8 MB, free: 2.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004741/0.2576, allocations: 203.7 kB / 434 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005766/0.2582, allocations: 187.7 kB / 434.2 MB, free: 1.629 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.2582, allocations: 35.98 kB / 434.2 MB, free: 1.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/0.2598, allocations: 2.506 MB / 436.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.2598, allocations: 11.94 kB / 436.7 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.262, allocations: 2.17 MB / 438.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004634/0.2625, allocations: 325.5 kB / 439.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.2627, allocations: 31.98 kB / 439.2 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006046/0.2633, allocations: 32 kB / 439.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.2635, allocations: 104.3 kB / 439.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-05/0.2635, allocations: 39.98 kB / 439.4 MB, free: 12.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001345/0.2649, allocations: 1.489 MB / 440.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2649, allocations: 0 / 440.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00342/0.2683, allocations: 1.043 MB / 441.9 MB, free: 9.621 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 (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.0003378/0.2686, allocations: 190.8 kB / 442.1 MB, free: 9.422 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003823/0.2725, allocations: 2.761 MB / 444.9 MB, free: 6.668 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.2725, allocations: 5.312 kB / 444.9 MB, free: 6.664 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006918/0.2732, allocations: 0.6248 MB / 445.5 MB, free: 6.016 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001718/0.2749, allocations: 432.3 kB / 445.9 MB, free: 5.621 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009542/0.2844, allocations: 7.859 MB / 453.8 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.2855, allocations: 1.308 MB / 455.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001197/0.2867, allocations: 0.4966 MB / 455.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007217/0.2875, allocations: 0.5606 MB / 456.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.714e-06/0.2875, allocations: 8 kB / 456.2 MB, free: 11.19 MB / 362.7 MB Notification: Performance of Templates: time 0.04633/0.3338, allocations: 30.54 MB / 486.7 MB, free: 13.13 MB / 394.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.9824457918293774]