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.001421/0.001421, allocations: 119 kB / 17.78 MB, free: 5.23 MB / 14.72 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.001521/0.001521, allocations: 189.2 kB / 20.73 MB, free: 2.297 MB / 14.72 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 1.486/1.486, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001591/0.001591, allocations: 51.92 kB / 366.1 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1123, allocations: 52.14 MB / 418.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01419/0.1265, allocations: 11.46 MB / 429.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008154/0.1346, allocations: 4.088 MB / 433.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1357, allocations: 71.81 kB / 433.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005774/0.1415, allocations: 3.24 MB / 437.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005394/0.1469, allocations: 1.999 MB / 439.1 MB, free: 7.164 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002144/0.149, allocations: 0.8344 MB / 440 MB, free: 6.328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006598/0.1556, allocations: 4.448 MB / 444.4 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2045/0.3601, allocations: 3.385 MB / 447.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002187/0.3623, allocations: 1.656 MB / 449.5 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00352/0.3658, allocations: 2.333 MB / 451.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00124/0.367, allocations: 353.8 kB / 452.1 MB, free: 9.145 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00292/0.37, allocations: 1.289 MB / 453.4 MB, free: 9.145 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002711/0.3727, allocations: 2.121 MB / 455.5 MB, free: 8.891 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002817/0.3755, allocations: 2.359 MB / 457.9 MB, free: 8.047 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01179/0.3873, allocations: 7.654 MB / 465.6 MB, free: 6.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3873, allocations: 1.125 kB / 465.6 MB, free: 6.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3873, allocations: 0 / 465.6 MB, free: 6.867 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000265/0.3876, allocations: 5.281 kB / 465.6 MB, free: 6.863 MB / 366.1 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.01282/0.4004, allocations: 5.319 MB / 470.9 MB, free: 3.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.4004, allocations: 9 kB / 470.9 MB, free: 3.992 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008965/0.4094, allocations: 2.207 MB / 473.1 MB, free: 3.043 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006092/0.4155, allocations: 2.855 MB / 476 MB, free: 1.402 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.4156, allocations: 251.9 kB / 476.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001057/0.4167, allocations: 337.2 kB / 476.5 MB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01993/0.4366, allocations: 10.82 MB / 487.4 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.4367, allocations: 45.22 kB / 487.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004443/0.4372, allocations: 155 kB / 487.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0035/0.4407, allocations: 2.148 MB / 489.7 MB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01994/0.4606, allocations: 9.225 MB / 498.9 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05762/0.5182, allocations: 41.77 MB / 0.528 GB, free: 6.707 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01293/0.5312, allocations: 4.312 MB / 0.5322 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003612/0.5348, allocations: 2.289 MB / 0.5345 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01304/0.5478, allocations: 7.386 MB / 0.5417 GB, free: 8.438 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.872e-05/0.5479, allocations: 55.59 kB / 0.5417 GB, free: 8.379 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.889e-06/0.5479, allocations: 0 / 0.5417 GB, free: 8.379 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.05112/0.599, allocations: 19 MB / 0.5603 GB, free: 5.32 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.5991, allocations: 174.4 kB / 0.5605 GB, free: 5.113 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008256/0.6074, allocations: 4.631 MB / 0.565 GB, free: 476 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007712/0.6082, allocations: 57.64 kB / 0.565 GB, free: 412 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003435/0.6116, allocations: 3.334 MB / 0.5683 GB, free: 13.09 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001412/0.613, allocations: 0.7952 MB / 0.5691 GB, free: 12.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00246/0.6155, allocations: 1.309 MB / 0.5703 GB, free: 10.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.6156, allocations: 301.1 kB / 0.5706 GB, free: 10.69 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004317/0.6199, allocations: 2.394 MB / 0.573 GB, free: 8.289 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008961/0.6289, allocations: 6.147 MB / 0.579 GB, free: 364 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01359/0.6425, allocations: 9.244 MB / 0.588 GB, free: 5.738 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.67e-05/0.6426, allocations: 40 kB / 0.588 GB, free: 5.699 MB / 494.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01787/0.6604, allocations: 9.357 MB / 0.5972 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.465e-05/0.6605, allocations: 60 kB / 0.5972 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001463/0.6607, allocations: 132.9 kB / 0.5974 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003156/0.6638, allocations: 1.195 MB / 0.5985 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004632/0.6685, allocations: 1.454 MB / 0.6 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.6787, allocations: 7.288 MB / 0.6071 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004667/0.6834, allocations: 354.4 kB / 0.6074 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007164/0.6841, allocations: 384 kB / 0.6078 GB, free: 1.34 MB / 0.4981 GB 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.003908/0.688, allocations: 2.246 MB / 0.61 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007315/0.6887, allocations: 409.2 kB / 0.6104 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007796/0.6965, allocations: 4.05 MB / 0.6143 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/0.6965, allocations: 27.59 kB / 0.6143 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.6966, allocations: 4 kB / 0.6143 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-05/0.6966, allocations: 7.969 kB / 0.6143 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01902/0.7156, allocations: 9.507 MB / 0.6236 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.7156, allocations: 11.88 kB / 0.6236 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/0.7172, allocations: 323.5 kB / 0.624 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002856/0.72, allocations: 1.017 MB / 0.6249 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/0.7202, allocations: 43.98 kB / 0.625 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009967/0.7302, allocations: 6.879 MB / 0.6317 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.7302, allocations: 4 kB / 0.6317 GB, free: 8.57 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01138/0.7416, allocations: 7.063 MB / 0.6386 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.7427, allocations: 482.2 kB / 0.6391 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000499/0.7432, allocations: 43.98 kB / 0.6391 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/0.7448, allocations: 119.8 kB / 0.6392 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003588/0.7452, allocations: 133.8 kB / 0.6394 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001627/0.7454, allocations: 56 kB / 0.6394 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2171/0.9625, allocations: 2.953 MB / 0.6423 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9625, allocations: 0 / 0.6423 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006199/0.9687, allocations: 1.086 MB / 0.6433 GB, free: 181.3 MB / 0.5294 GB 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.000515/0.9692, allocations: 185.1 kB / 0.6435 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008759/0.978, allocations: 5.508 MB / 0.6489 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.978, allocations: 0.9062 kB / 0.6489 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003584/0.9816, allocations: 1.923 MB / 0.6508 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003147/0.9847, allocations: 0.5137 MB / 0.6513 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/1, allocations: 10.42 MB / 0.6615 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003062/1.003, allocations: 3.463 MB / 0.6648 GB, free: 174.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003786/1.007, allocations: 2.044 MB / 0.6668 GB, free: 174.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000766/1.008, allocations: 266.5 kB / 0.6671 GB, free: 174.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.91e-07/1.008, allocations: 0 / 0.6671 GB, free: 174.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.06342/1.071, allocations: 40.14 MB / 0.7063 GB, free: 142.5 MB / 0.5294 GB " [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: 6.6497517339885235]