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.0008875/0.0008875, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001083/0.001083, allocations: 147 kB / 24.9 MB, free: 8.777 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.9306/0.9306, allocations: 173.4 MB / 201.5 MB, free: 8.762 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.152e-06/1.152e-06, allocations: 0 / 268.5 MB, free: 5.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.787e-05/1.903e-05, allocations: 5.828 kB / 268.5 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.008996/0.009015, allocations: 10.87 MB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007374/0.01639, allocations: 4.122 MB / 283.5 MB, free: 6.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001541/0.01793, allocations: 75.69 kB / 283.6 MB, free: 6.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003691/0.02162, allocations: 3.387 MB / 287 MB, free: 3.441 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003987/0.02561, allocations: 2.064 MB / 289 MB, free: 1.367 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.02711, allocations: 0.9003 MB / 289.9 MB, free: 476 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1259/0.153, allocations: 4.799 MB / 294.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005362/0.1584, allocations: 3.424 MB / 298.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004809/0.1632, allocations: 2.974 MB / 301.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003184/0.1664, allocations: 2.184 MB / 303.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008703/0.1672, allocations: 355.6 kB / 303.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.169, allocations: 1.247 MB / 304.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001364/0.1704, allocations: 2.214 MB / 307.1 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0015/0.1719, allocations: 1.356 MB / 308.5 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004275/0.1762, allocations: 5.026 MB / 313.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1762, allocations: 0 / 313.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1762, allocations: 0 / 313.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.924e-05/0.1763, allocations: 4 kB / 313.5 MB, free: 9.609 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.005056/0.1813, allocations: 4.827 MB / 318.3 MB, free: 5.141 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1813, allocations: 12.92 kB / 318.4 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003647/0.185, allocations: 1.176 MB / 319.5 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002495/0.1875, allocations: 2.055 MB / 321.6 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.1876, allocations: 250.8 kB / 321.8 MB, free: 1.867 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003907/0.188, allocations: 326.3 kB / 322.2 MB, free: 1.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006626/0.1946, allocations: 5.222 MB / 327.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.225e-05/0.1947, allocations: 39.92 kB / 327.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.1949, allocations: 160 kB / 327.6 MB, free: 12.01 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001427/0.1964, allocations: 1.867 MB / 329.4 MB, free: 10.17 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004534/0.2009, allocations: 2.669 MB / 332.1 MB, free: 7.68 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02433/0.2252, allocations: 32.19 MB / 364.3 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004651/0.2299, allocations: 1.929 MB / 366.2 MB, free: 5.602 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005848/0.2304, allocations: 429.3 kB / 366.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004595/0.235, allocations: 3.566 MB / 370.2 MB, free: 1.645 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.2351, allocations: 55.55 kB / 370.3 MB, free: 1.582 MB / 314.7 MB Notification: Performance of pre-optimization done (n=145): time 3.486e-06/0.2351, allocations: 0 / 370.3 MB, free: 1.582 MB / 314.7 MB Notification: Performance of matching and sorting (n=150): time 0.01275/0.2478, allocations: 5.772 MB / 376 MB, free: 11.87 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.2479, allocations: 170.7 kB / 376.2 MB, free: 11.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002338/0.2502, allocations: 3.343 MB / 379.5 MB, free: 8.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.441e-05/0.2503, allocations: 45.7 kB / 379.6 MB, free: 8.789 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.2515, allocations: 3.236 MB / 382.8 MB, free: 5.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003217/0.2518, allocations: 0.6238 MB / 383.4 MB, free: 4.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008693/0.2527, allocations: 1.191 MB / 384.6 MB, free: 3.691 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.985e-05/0.2527, allocations: 309.1 kB / 384.9 MB, free: 3.387 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.2538, allocations: 0.755 MB / 385.7 MB, free: 2.625 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002513/0.2563, allocations: 4.55 MB / 390.2 MB, free: 12.17 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003618/0.2599, allocations: 5.854 MB / 396.1 MB, free: 4.559 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.429e-05/0.2599, allocations: 40 kB / 396.1 MB, free: 4.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.004236/0.2642, allocations: 4.299 MB / 400.4 MB, free: 204 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.436e-05/0.2642, allocations: 64 kB / 400.5 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.852e-05/0.2643, allocations: 140 kB / 400.6 MB, free: 0 / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000729/0.265, allocations: 363.5 kB / 401 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002215/0.2672, allocations: 1.454 MB / 402.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002018/0.2693, allocations: 2.192 MB / 404.6 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/0.271, allocations: 279.7 kB / 404.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/0.2713, allocations: 336 kB / 405.2 MB, free: 11.3 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.001014/0.2723, allocations: 0.6391 MB / 405.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.2725, allocations: 203.8 kB / 406.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.2737, allocations: 0.8904 MB / 407 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.2737, allocations: 16 kB / 407 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2737, allocations: 4 kB / 407 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.2737, allocations: 7.969 kB / 407 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004659/0.2784, allocations: 4.086 MB / 411.1 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.2784, allocations: 4 kB / 411.1 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/0.2789, allocations: 227.7 kB / 411.3 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007049/0.2796, allocations: 374.1 kB / 411.7 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.813e-05/0.2797, allocations: 32 kB / 411.7 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.2812, allocations: 1.924 MB / 413.6 MB, free: 2.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.2812, allocations: 8 kB / 413.6 MB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.2829, allocations: 1.824 MB / 415.5 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.2831, allocations: 317.5 kB / 415.8 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.2833, allocations: 31.98 kB / 415.8 MB, free: 344 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005176/0.2838, allocations: 32 kB / 415.8 MB, free: 312 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.284, allocations: 104.3 kB / 415.9 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.508e-05/0.284, allocations: 39.98 kB / 416 MB, free: 168 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009105/0.2849, allocations: 1.215 MB / 417.2 MB, free: 14.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2849, allocations: 0 / 417.2 MB, free: 14.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002473/0.2874, allocations: 1.039 MB / 418.2 MB, free: 13.93 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.0002806/0.2877, allocations: 179.9 kB / 418.4 MB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007425/0.2951, allocations: 2.515 MB / 420.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0004786/0.2956, allocations: 101.6 kB / 421 MB, free: 11.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.2968, allocations: 0.5123 MB / 421.5 MB, free: 10.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003487/0.3003, allocations: 0.6459 MB / 422.2 MB, free: 9.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/0.3164, allocations: 7.715 MB / 429.9 MB, free: 2.074 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002136/0.3185, allocations: 1.3 MB / 431.2 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002357/0.3209, allocations: 495.8 kB / 431.7 MB, free: 268 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1016/0.4225, allocations: 0.5218 MB / 432.2 MB, free: 105.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.4225, allocations: 0 / 432.2 MB, free: 105.2 MB / 378.7 MB Notification: Performance of Templates: time 0.0413/0.4638, 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 -s gbode -gbm=radauIIA3 -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.600393569096923]