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.0013/0.0013, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001453/0.001453, allocations: 162.2 kB / 25.6 MB, free: 8.59 MB / 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.912/0.912, allocations: 177.1 MB / 206 MB, free: 4.512 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 2.114e-06/2.114e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.218e-05/3.43e-05, allocations: 7.094 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01514/0.01517, allocations: 10.59 MB / 284.8 MB, free: 9.789 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00918/0.02435, allocations: 3.945 MB / 288.7 MB, free: 5.836 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001855/0.02621, allocations: 83.62 kB / 288.8 MB, free: 5.754 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004117/0.03032, allocations: 3.356 MB / 292.2 MB, free: 2.387 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004249/0.03457, allocations: 2.014 MB / 294.2 MB, free: 372 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001492/0.03607, allocations: 0.9003 MB / 295.1 MB, free: 15.46 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00546/0.04153, allocations: 4.817 MB / 299.9 MB, free: 10.63 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003915/0.04544, allocations: 3.407 MB / 303.3 MB, free: 7.16 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004047/0.04949, allocations: 2.959 MB / 306.3 MB, free: 4.195 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002257/0.05174, allocations: 2.241 MB / 308.5 MB, free: 1.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003751/0.05212, allocations: 348 kB / 308.8 MB, free: 1.609 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.05381, allocations: 1.186 MB / 310 MB, free: 432 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001353/0.05517, allocations: 2.131 MB / 312.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001593/0.05676, allocations: 1.308 MB / 313.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004102/0.06086, allocations: 4.862 MB / 318.3 MB, free: 8.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.06087, allocations: 0 / 318.3 MB, free: 8.094 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.06087, allocations: 0 / 318.3 MB, free: 8.094 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.818e-05/0.06093, allocations: 0 / 318.3 MB, free: 8.094 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.006725/0.06765, allocations: 5.33 MB / 323.7 MB, free: 2.695 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.0677, allocations: 8.031 kB / 323.7 MB, free: 2.688 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004144/0.07184, allocations: 1.664 MB / 325.3 MB, free: 1.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/0.07463, allocations: 2.161 MB / 327.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005106/0.07514, allocations: 250.3 kB / 327.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003577/0.0755, allocations: 319.8 kB / 328.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006235/0.08173, allocations: 5.652 MB / 333.7 MB, free: 7.652 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.446e-05/0.08181, allocations: 39.64 kB / 333.7 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002592/0.08207, allocations: 151.9 kB / 333.9 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002404/0.08447, allocations: 1.764 MB / 335.7 MB, free: 5.699 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007178/0.09165, allocations: 2.551 MB / 338.2 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2315/0.3232, allocations: 43.35 MB / 381.6 MB, free: 43.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005749/0.3289, allocations: 1.974 MB / 383.5 MB, free: 43.37 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009665/0.3299, allocations: 0.5084 MB / 384 MB, free: 43.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006807/0.3367, allocations: 3.867 MB / 387.9 MB, free: 42.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.473e-05/0.3368, allocations: 52.83 kB / 388 MB, free: 42.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=145): time 7.073e-06/0.3368, allocations: 3.781 kB / 388 MB, free: 42.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=150): time 0.01979/0.3566, allocations: 6.459 MB / 394.4 MB, free: 41.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.3566, allocations: 177.5 kB / 394.6 MB, free: 41.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/0.3599, allocations: 3.688 MB / 398.3 MB, free: 40.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.3601, allocations: 45.7 kB / 398.3 MB, free: 40.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001474/0.3616, allocations: 3.561 MB / 401.9 MB, free: 36.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000722/0.3623, allocations: 0.659 MB / 402.5 MB, free: 36.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001168/0.3635, allocations: 1.374 MB / 403.9 MB, free: 34.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.119e-05/0.3636, allocations: 476.8 kB / 404.4 MB, free: 34.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009243/0.3645, allocations: 0.5652 MB / 405 MB, free: 33.67 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002356/0.3668, allocations: 6.352 MB / 411.3 MB, free: 24.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004654/0.3715, allocations: 7.56 MB / 418.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/0.3716, allocations: 44 kB / 418.9 MB, free: 14.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.007782/0.3794, allocations: 4.994 MB / 423.9 MB, free: 9.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.011e-05/0.3795, allocations: 64 kB / 424 MB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/0.3796, allocations: 143.9 kB / 424.1 MB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000907/0.3805, allocations: 362.8 kB / 424.5 MB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002521/0.383, allocations: 1.372 MB / 425.8 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002265/0.3853, allocations: 2.769 MB / 428.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004249/0.3895, allocations: 263.7 kB / 428.9 MB, free: 4.902 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001076/0.3906, allocations: 332 kB / 429.2 MB, free: 4.578 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 (762): * Single equations (assignments): 756 * 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.00204/0.3926, allocations: 0.6732 MB / 429.9 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008775/0.3935, allocations: 373.8 kB / 430.2 MB, free: 3.531 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.395, allocations: 0.9974 MB / 431.2 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.395, allocations: 16 kB / 431.2 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.395, allocations: 4 kB / 431.2 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.395, allocations: 3.984 kB / 431.2 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006663/0.4017, allocations: 4.722 MB / 436 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.4017, allocations: 8 kB / 436 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005674/0.4022, allocations: 203.7 kB / 436.2 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000632/0.4029, allocations: 195.7 kB / 436.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.232e-05/0.403, allocations: 32 kB / 436.4 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001992/0.4049, allocations: 2.483 MB / 438.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.4049, allocations: 11.94 kB / 438.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.4076, allocations: 2.174 MB / 441.1 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007509/0.4083, allocations: 321.5 kB / 441.4 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000269/0.4086, allocations: 32 kB / 441.4 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006285/0.4092, allocations: 32 kB / 441.4 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.4094, allocations: 112.2 kB / 441.5 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.384e-05/0.4094, allocations: 36 kB / 441.6 MB, free: 7.742 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001756/0.4112, allocations: 1.465 MB / 443 MB, free: 6.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4112, allocations: 0 / 443 MB, free: 6.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004327/0.4155, allocations: 1.004 MB / 444 MB, free: 5.289 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.0003798/0.4159, allocations: 190.8 kB / 444.2 MB, free: 5.094 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003574/0.4195, allocations: 2.744 MB / 447 MB, free: 2.352 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4195, allocations: 4 kB / 447 MB, free: 2.348 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006972/0.4202, allocations: 0.6226 MB / 447.6 MB, free: 1.707 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/0.422, allocations: 413.5 kB / 448 MB, free: 1.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009457/0.4315, allocations: 7.637 MB / 455.6 MB, free: 9.496 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.4327, allocations: 1.269 MB / 456.9 MB, free: 8.203 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001285/0.4339, allocations: 494.6 kB / 457.4 MB, free: 7.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007524/0.4347, allocations: 0.5528 MB / 458 MB, free: 7.176 MB / 362.7 MB Notification: Performance of SimCode: time 1.763e-06/0.4347, allocations: 0 / 458 MB, free: 7.176 MB / 362.7 MB Notification: Performance of Templates: time 0.04517/0.4799, allocations: 30.03 MB / 488 MB, free: 9.617 MB / 394.7 MB " [Timeout remaining time 660] 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.102488256059587]