Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00101/0.00101, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.0009314/0.0009314, allocations: 161 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9604/0.9604, allocations: 177.1 MB / 205 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.151e-05, allocations: 2.312 kB / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01187/0.01189, allocations: 10.92 MB / 283.9 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007091/0.01898, allocations: 3.983 MB / 287.9 MB, free: 2.543 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.0201, allocations: 75.69 kB / 288 MB, free: 2.469 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1425/0.1626, allocations: 3.416 MB / 291.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004641/0.1672, allocations: 1.994 MB / 293.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001638/0.1688, allocations: 0.914 MB / 294.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0059/0.1747, allocations: 4.808 MB / 299.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003737/0.1785, allocations: 3.394 MB / 302.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002928/0.1814, allocations: 2.442 MB / 304.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002428/0.1838, allocations: 2.287 MB / 307.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006771/0.1845, allocations: 352 kB / 307.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.1859, allocations: 1.187 MB / 308.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.187, allocations: 2.151 MB / 310.9 MB, free: 9.207 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.1883, allocations: 1.313 MB / 312.2 MB, free: 8.391 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003495/0.1918, allocations: 4.86 MB / 317.1 MB, free: 3.836 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1918, allocations: 0 / 317.1 MB, free: 3.836 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1918, allocations: 4 kB / 317.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001277/0.1919, allocations: 0 / 317.1 MB, free: 3.832 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.005611/0.1976, allocations: 5.498 MB / 322.6 MB, free: 14.37 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1976, allocations: 8.031 kB / 322.6 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004802/0.2024, allocations: 2.612 MB / 325.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003026/0.2054, allocations: 2.481 MB / 327.7 MB, free: 9.422 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.2055, allocations: 253.7 kB / 327.9 MB, free: 9.211 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003587/0.2059, allocations: 319 kB / 328.2 MB, free: 8.938 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007735/0.2136, allocations: 6.359 MB / 334.6 MB, free: 1.836 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.633e-05/0.2137, allocations: 43.17 kB / 334.6 MB, free: 1.812 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/0.214, allocations: 153.3 kB / 334.8 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00193/0.2159, allocations: 2.032 MB / 336.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006748/0.2227, allocations: 3.537 MB / 340.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02661/0.2493, allocations: 43.44 MB / 383.8 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005364/0.2546, allocations: 2.611 MB / 386.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.2556, allocations: 0.7885 MB / 387.2 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005221/0.2609, allocations: 4.524 MB / 391.7 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001291/0.261, allocations: 54.39 kB / 391.8 MB, free: 7.871 MB / 346.7 MB Notification: Performance of pre-optimization done (n=177): time 3.146e-06/0.261, allocations: 4 kB / 391.8 MB, free: 7.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=198): time 0.02309/0.2841, allocations: 13.72 MB / 405.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/0.2842, allocations: 179.5 kB / 405.7 MB, free: 9.883 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003385/0.2875, allocations: 3.587 MB / 409.3 MB, free: 6.293 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.457e-05/0.2876, allocations: 53.69 kB / 409.3 MB, free: 6.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001585/0.2892, allocations: 3.425 MB / 412.7 MB, free: 2.828 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006138/0.2898, allocations: 0.8154 MB / 413.5 MB, free: 2.023 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/0.291, allocations: 1.376 MB / 414.9 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.458e-05/0.2911, allocations: 476.8 kB / 415.4 MB, free: 168 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.2923, allocations: 0.7617 MB / 416.2 MB, free: 15.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003739/0.2961, allocations: 6.256 MB / 422.4 MB, free: 6.633 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005771/0.3018, allocations: 7.719 MB / 430.1 MB, free: 12.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.444e-05/0.3019, allocations: 40 kB / 430.2 MB, free: 12.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.007788/0.3097, allocations: 6.021 MB / 436.2 MB, free: 6.367 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.508e-05/0.3097, allocations: 63.94 kB / 436.2 MB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.3098, allocations: 128 kB / 436.4 MB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001654/0.3115, allocations: 0.7939 MB / 437.2 MB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002481/0.314, allocations: 1.435 MB / 438.6 MB, free: 3.945 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1455/0.4594, allocations: 3.923 MB / 442.5 MB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/0.4629, allocations: 370.3 kB / 442.9 MB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005099/0.4635, allocations: 381.2 kB / 443.3 MB, free: 119.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (763): * Single equations (assignments): 757 * 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,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001347/0.4648, allocations: 0.6643 MB / 443.9 MB, free: 119.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004788/0.4653, allocations: 397.8 kB / 444.3 MB, free: 119.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003405/0.4687, allocations: 2.068 MB / 446.4 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.643e-05/0.4687, allocations: 26.36 kB / 446.4 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.4687, allocations: 5.656 kB / 446.4 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.4687, allocations: 9.891 kB / 446.4 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008675/0.4774, allocations: 6.035 MB / 452.5 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.4774, allocations: 5.312 kB / 452.5 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007956/0.4782, allocations: 322.7 kB / 452.8 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001432/0.4797, allocations: 0.6235 MB / 453.4 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.4798, allocations: 44.91 kB / 453.4 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/0.4831, allocations: 3.611 MB / 457.1 MB, free: 116.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4831, allocations: 9.406 kB / 457.1 MB, free: 116.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00399/0.4871, allocations: 3.342 MB / 460.4 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003445/0.4874, allocations: 332.8 kB / 460.7 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.4876, allocations: 36.3 kB / 460.8 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007956/0.4884, allocations: 150.9 kB / 460.9 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.4886, allocations: 138.5 kB / 461 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.607e-05/0.4887, allocations: 55.56 kB / 461.1 MB, free: 115.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001576/0.4903, allocations: 1.535 MB / 462.6 MB, free: 115.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4903, allocations: 0 / 462.6 MB, free: 115.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003169/0.4934, allocations: 1.137 MB / 463.8 MB, free: 115.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (157): * Single equations (assignments): 153 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003454/0.4938, allocations: 189.3 kB / 464 MB, free: 115.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003888/0.4977, allocations: 3.34 MB / 467.3 MB, free: 114.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.4977, allocations: 2.125 kB / 467.3 MB, free: 114.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001273/0.4989, allocations: 1.132 MB / 468.4 MB, free: 114.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.5003, allocations: 419.1 kB / 468.8 MB, free: 114.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007664/0.5079, allocations: 8.085 MB / 476.9 MB, free: 108.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008956/0.5088, allocations: 1.301 MB / 478.2 MB, free: 107.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001945/0.5108, allocations: 1.654 MB / 479.9 MB, free: 106.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004764/0.5112, allocations: 235.6 kB / 480.1 MB, free: 106.7 MB / 394.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5112, allocations: 0 / 480.1 MB, free: 106.7 MB / 394.7 MB Notification: Performance of Templates: time 0.03841/0.5496, allocations: 35.05 MB / 0.5031 GB, free: 72.31 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 4.081679314840585]