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.0009438/0.0009438, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0008998/0.0008998, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9258/0.9258, allocations: 173.3 MB / 201.5 MB, free: 9.316 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.173e-06/1.173e-06, allocations: 0 / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.547e-05/1.664e-05, allocations: 6.25 kB / 268.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.009578/0.009595, allocations: 11.1 MB / 279.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006752/0.01635, allocations: 3.995 MB / 283.2 MB, free: 7.527 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008605/0.01721, allocations: 83.62 kB / 283.3 MB, free: 7.445 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004357/0.02156, allocations: 3.442 MB / 286.7 MB, free: 3.992 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003832/0.0254, allocations: 2.08 MB / 288.8 MB, free: 1.902 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.02687, allocations: 0.9159 MB / 289.7 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1133/0.1401, allocations: 4.81 MB / 294.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004147/0.1443, allocations: 3.445 MB / 298 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003676/0.148, allocations: 2.507 MB / 300.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002861/0.1508, allocations: 2.327 MB / 302.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008411/0.1517, allocations: 361.6 kB / 303.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.1531, allocations: 1.214 MB / 304.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001258/0.1543, allocations: 2.22 MB / 306.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.1557, allocations: 1.359 MB / 307.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003903/0.1596, allocations: 5.028 MB / 313 MB, free: 10.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1596, allocations: 0.5312 kB / 313 MB, free: 10.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1596, allocations: 3.812 kB / 313 MB, free: 10.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001815/0.1598, allocations: 0 / 313 MB, free: 10.12 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.005496/0.1653, allocations: 5.638 MB / 318.6 MB, free: 4.922 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1653, allocations: 8.922 kB / 318.6 MB, free: 4.914 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00482/0.1701, allocations: 2.683 MB / 321.3 MB, free: 2.266 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002534/0.1727, allocations: 2.521 MB / 323.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.1728, allocations: 247.1 kB / 324.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003607/0.1731, allocations: 336.6 kB / 324.4 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007415/0.1806, allocations: 6.502 MB / 330.9 MB, free: 8.141 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.945e-05/0.1806, allocations: 39.83 kB / 330.9 MB, free: 8.121 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002728/0.1809, allocations: 159.8 kB / 331.1 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002188/0.1831, allocations: 2.154 MB / 333.2 MB, free: 5.883 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00656/0.1897, allocations: 3.629 MB / 336.9 MB, free: 2.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02742/0.2171, allocations: 44.24 MB / 381.1 MB, free: 5.352 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00568/0.2228, allocations: 2.62 MB / 383.7 MB, free: 2.699 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.2239, allocations: 0.7856 MB / 384.5 MB, free: 1.898 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005048/0.2289, allocations: 4.539 MB / 389.1 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.229, allocations: 57.58 kB / 389.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=177): time 3.096e-06/0.229, allocations: 0 / 389.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=198): time 0.02495/0.2539, allocations: 13.82 MB / 402.9 MB, free: 15.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.254, allocations: 178.1 kB / 403.1 MB, free: 15.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003691/0.2577, allocations: 3.632 MB / 406.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.2578, allocations: 52.52 kB / 406.8 MB, free: 11.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.2594, allocations: 3.513 MB / 410.3 MB, free: 8.062 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005305/0.2599, allocations: 0.8221 MB / 411.1 MB, free: 7.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/0.2612, allocations: 1.393 MB / 412.5 MB, free: 5.844 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.354e-05/0.2613, allocations: 484.7 kB / 413 MB, free: 5.367 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/0.2627, allocations: 0.7619 MB / 413.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003728/0.2664, allocations: 6.345 MB / 420.1 MB, free: 11.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005867/0.2723, allocations: 7.817 MB / 427.9 MB, free: 1.582 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.99e-05/0.2723, allocations: 40 kB / 428 MB, free: 1.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.1263/0.3986, allocations: 6.079 MB / 434 MB, free: 101.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.476e-05/0.3987, allocations: 62.03 kB / 434.1 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001472/0.3988, allocations: 131.3 kB / 434.2 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001878/0.4007, allocations: 0.7907 MB / 435 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002889/0.4036, allocations: 1.453 MB / 436.5 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/0.4073, allocations: 3.921 MB / 440.4 MB, free: 99.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002619/0.4099, allocations: 383 kB / 440.8 MB, free: 99.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004169/0.4103, allocations: 386 kB / 441.1 MB, free: 99.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * 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 (772): * Single equations (assignments): 766 * 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.001334/0.4117, allocations: 0.68 MB / 441.8 MB, free: 99.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004596/0.4121, allocations: 406.4 kB / 442.2 MB, free: 99.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002995/0.4151, allocations: 2.067 MB / 444.3 MB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.4151, allocations: 25.69 kB / 444.3 MB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.4151, allocations: 6.562 kB / 444.3 MB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.4152, allocations: 7.406 kB / 444.3 MB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009269/0.4244, allocations: 6.14 MB / 450.5 MB, free: 98.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-05/0.4245, allocations: 3.812 kB / 450.5 MB, free: 98.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.4258, allocations: 324.6 kB / 450.8 MB, free: 98.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00201/0.4278, allocations: 0.6215 MB / 451.4 MB, free: 98.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001884/0.428, allocations: 36.47 kB / 451.4 MB, free: 98.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004386/0.4324, allocations: 3.624 MB / 455.1 MB, free: 96.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.4324, allocations: 11.38 kB / 455.1 MB, free: 96.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004304/0.4367, allocations: 3.347 MB / 458.4 MB, free: 95.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004/0.4371, allocations: 338.8 kB / 458.8 MB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002721/0.4374, allocations: 36.25 kB / 458.8 MB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008167/0.4382, allocations: 151.5 kB / 458.9 MB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.4384, allocations: 126.1 kB / 459.1 MB, free: 95.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-05/0.4385, allocations: 58.28 kB / 459.1 MB, free: 95.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001507/0.44, allocations: 1.556 MB / 460.7 MB, free: 95.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.44, allocations: 0 / 460.7 MB, free: 95.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003135/0.4431, allocations: 1.174 MB / 461.9 MB, free: 94.39 MB / 378.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.0003391/0.4434, allocations: 203.6 kB / 462.1 MB, free: 94.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003688/0.4471, allocations: 3.356 MB / 465.4 MB, free: 91.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4471, allocations: 5.125 kB / 465.4 MB, free: 91.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.4484, allocations: 1.131 MB / 466.5 MB, free: 90.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.4497, allocations: 436.7 kB / 467 MB, free: 90.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007539/0.4572, allocations: 8.304 MB / 475.3 MB, free: 82.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008591/0.4581, allocations: 1.334 MB / 476.6 MB, free: 81.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001942/0.46, allocations: 1.667 MB / 478.3 MB, free: 79.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004722/0.4605, allocations: 240.5 kB / 478.5 MB, free: 79.44 MB / 378.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4605, allocations: 2.406 kB / 478.5 MB, free: 79.44 MB / 378.7 MB Notification: Performance of Templates: time 0.03856/0.4991, allocations: 35.52 MB / 0.502 GB, free: 44.48 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 -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.8485813399311155]