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.0008712/0.0008712, allocations: 84 kB / 21.43 MB, free: 3.129 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.005457/0.005457, allocations: 145.3 kB / 24.68 MB, free: 9.426 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.8474/0.8474, allocations: 173.4 MB / 201.2 MB, free: 9.434 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.453e-06/1.453e-06, allocations: 0 / 319.7 MB, free: 5.715 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.618e-05/1.763e-05, allocations: 6.219 kB / 319.7 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.007691/0.007708, allocations: 10.03 MB / 329.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004792/0.0125, allocations: 3.889 MB / 333.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005556/0.01306, allocations: 83.62 kB / 333.7 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002904/0.01596, allocations: 3.274 MB / 337 MB, free: 4.355 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002262/0.01822, allocations: 2.084 MB / 339.1 MB, free: 2.266 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009354/0.01916, allocations: 0.8926 MB / 340 MB, free: 1.371 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003125/0.02228, allocations: 4.829 MB / 344.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002159/0.02444, allocations: 3.34 MB / 348.1 MB, free: 9.121 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00171/0.02615, allocations: 2.487 MB / 350.6 MB, free: 6.629 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001793/0.02795, allocations: 2.268 MB / 352.9 MB, free: 4.355 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000288/0.02823, allocations: 360 kB / 353.2 MB, free: 4.004 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.02942, allocations: 1.213 MB / 354.4 MB, free: 2.789 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.03054, allocations: 2.209 MB / 356.7 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008466/0.03139, allocations: 1.355 MB / 358 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00493/0.03632, allocations: 7.702 MB / 365.7 MB, free: 7.488 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.03633, allocations: 0 / 365.7 MB, free: 7.488 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.03633, allocations: 0 / 365.7 MB, free: 7.488 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.857e-05/0.03638, allocations: 0 / 365.7 MB, free: 7.488 MB / 330.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.006284/0.04266, allocations: 5.239 MB / 370.9 MB, free: 2.188 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.14e-05/0.04273, allocations: 16.92 kB / 371 MB, free: 2.172 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004833/0.04756, allocations: 2.26 MB / 373.2 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003361/0.05092, allocations: 2.763 MB / 376 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.05105, allocations: 250.4 kB / 376.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003849/0.05143, allocations: 327.8 kB / 376.6 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/0.06275, allocations: 10.86 MB / 387.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.772e-05/0.06282, allocations: 43.64 kB / 387.5 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002814/0.0631, allocations: 159.8 kB / 387.6 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00207/0.06517, allocations: 2.143 MB / 389.8 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01138/0.07655, allocations: 9.218 MB / 399 MB, free: 5.387 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03534/0.1119, allocations: 39.29 MB / 438.3 MB, free: 12.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006303/0.1182, allocations: 4.022 MB / 442.3 MB, free: 8.906 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002119/0.1203, allocations: 2.295 MB / 444.6 MB, free: 6.605 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006231/0.1266, allocations: 6.343 MB / 450.9 MB, free: 232 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.1266, allocations: 51.56 kB / 451 MB, free: 172 kB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 3.407e-06/0.1266, allocations: 0 / 451 MB, free: 172 kB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.1881/0.3147, allocations: 19.35 MB / 470.3 MB, free: 110.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.3148, allocations: 175.5 kB / 470.5 MB, free: 110.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002584/0.3173, allocations: 4.042 MB / 474.5 MB, free: 106.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.576e-05/0.3174, allocations: 56.59 kB / 474.6 MB, free: 106.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007637/0.3182, allocations: 3.342 MB / 477.9 MB, free: 103.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002911/0.3185, allocations: 0.7827 MB / 478.7 MB, free: 102.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008048/0.3193, allocations: 1.278 MB / 480 MB, free: 101.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.597e-05/0.3193, allocations: 305.1 kB / 480.3 MB, free: 101.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/0.321, allocations: 2.402 MB / 482.7 MB, free: 98.83 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002451/0.3235, allocations: 6.167 MB / 488.9 MB, free: 90.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004713/0.3282, allocations: 9.236 MB / 498.1 MB, free: 79.76 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-05/0.3282, allocations: 43.56 kB / 498.1 MB, free: 79.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.007059/0.3353, allocations: 9.303 MB / 0.4955 GB, free: 70.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.3353, allocations: 60 kB / 0.4956 GB, free: 70.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-05/0.3354, allocations: 136.8 kB / 0.4957 GB, free: 70.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/0.3367, allocations: 1.195 MB / 0.4969 GB, free: 69.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/0.3387, allocations: 1.447 MB / 0.4983 GB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004526/0.3432, allocations: 7.133 MB / 0.5053 GB, free: 60.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/0.3451, allocations: 387.5 kB / 0.5056 GB, free: 59.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002374/0.3453, allocations: 387.5 kB / 0.506 GB, free: 59.58 MB / 410.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.001737/0.3471, allocations: 2.237 MB / 0.5082 GB, free: 57.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.3473, allocations: 345.7 kB / 0.5085 GB, free: 56.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003387/0.3507, allocations: 3.981 MB / 0.5124 GB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.3507, allocations: 24 kB / 0.5124 GB, free: 52.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.3507, allocations: 4 kB / 0.5124 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.3507, allocations: 7.969 kB / 0.5125 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007064/0.3578, allocations: 8.417 MB / 0.5207 GB, free: 44.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.3578, allocations: 5.531 kB / 0.5207 GB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006519/0.3584, allocations: 319.5 kB / 0.521 GB, free: 44.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/0.3597, allocations: 1.03 MB / 0.522 GB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-05/0.3598, allocations: 36 kB / 0.522 GB, free: 43.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004359/0.3641, allocations: 6.735 MB / 0.5286 GB, free: 36.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.3641, allocations: 4 kB / 0.5286 GB, free: 36.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004949/0.3691, allocations: 6.979 MB / 0.5354 GB, free: 29.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.3693, allocations: 337.6 kB / 0.5357 GB, free: 28.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.3695, allocations: 51.45 kB / 0.5358 GB, free: 28.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007463/0.3703, allocations: 147.8 kB / 0.5359 GB, free: 28.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.3704, allocations: 133 kB / 0.5361 GB, free: 28.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-05/0.3705, allocations: 56 kB / 0.5361 GB, free: 28.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001528/0.372, allocations: 2.354 MB / 0.5384 GB, free: 26.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.372, allocations: 0 / 0.5384 GB, free: 26.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002362/0.3744, allocations: 1.18 MB / 0.5396 GB, free: 24.98 MB / 410.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.0003066/0.3747, allocations: 192.3 kB / 0.5397 GB, free: 24.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003865/0.3785, allocations: 5.531 MB / 0.5451 GB, free: 19.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3786, allocations: 0 / 0.5451 GB, free: 19.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.38, allocations: 1.924 MB / 0.547 GB, free: 17.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/0.3813, allocations: 444.6 kB / 0.5474 GB, free: 16.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007719/0.389, allocations: 10.74 MB / 0.5579 GB, free: 6.074 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002099/0.3911, allocations: 2.913 MB / 0.5608 GB, free: 3.121 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005292/0.3917, allocations: 292.4 kB / 0.5611 GB, free: 2.836 MB / 410.7 MB Notification: Performance of SimCode: time 7.32e-07/0.3917, allocations: 0 / 0.5611 GB, free: 2.836 MB / 410.7 MB Notification: Performance of Templates: time 0.2085/0.6002, allocations: 82.01 MB / 0.6411 GB, free: 121.2 MB / 458.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.857978761196136]