Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009647/0.0009647, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001166/0.001166, allocations: 171.6 kB / 25.33 MB, free: 8.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9073/0.9073, allocations: 158.6 MB / 187.2 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 251.1 MB, free: 7.508 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.037e-05/3.24e-05, allocations: 2.312 kB / 251.1 MB, free: 7.504 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01268/0.01271, allocations: 12.18 MB / 263.2 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007961/0.02067, allocations: 4.116 MB / 267.3 MB, free: 7.141 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001916/0.02259, allocations: 87.62 kB / 267.4 MB, free: 7.055 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005068/0.02766, allocations: 3.485 MB / 270.9 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004789/0.03245, allocations: 2.216 MB / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.0342, allocations: 0.916 MB / 274.1 MB, free: 424 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006038/0.04024, allocations: 4.933 MB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004779/0.04502, allocations: 3.591 MB / 282.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004289/0.04931, allocations: 2.662 MB / 285.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003735/0.05305, allocations: 2.537 MB / 287.8 MB, free: 2.602 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009412/0.05399, allocations: 392 kB / 288.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002097/0.05608, allocations: 1.248 MB / 289.4 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002104/0.05819, allocations: 2.388 MB / 291.8 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002198/0.06039, allocations: 1.472 MB / 293.3 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00683/0.06722, allocations: 5.391 MB / 298.7 MB, free: 7.688 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.06722, allocations: 0 / 298.7 MB, free: 7.688 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.06722, allocations: 0 / 298.7 MB, free: 7.688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001415/0.06736, allocations: 0 / 298.7 MB, free: 7.688 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.009797/0.07716, allocations: 5.998 MB / 304.7 MB, free: 1.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.07721, allocations: 11.98 kB / 304.7 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007861/0.08507, allocations: 2.783 MB / 307.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005112/0.09018, allocations: 2.649 MB / 310.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.09035, allocations: 266.9 kB / 310.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005323/0.09088, allocations: 351.8 kB / 310.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/0.1014, allocations: 6.907 MB / 317.6 MB, free: 3.637 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.1016, allocations: 43.64 kB / 317.7 MB, free: 3.594 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003227/0.1019, allocations: 163.8 kB / 317.8 MB, free: 3.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002317/0.1042, allocations: 2.346 MB / 320.2 MB, free: 1.086 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009002/0.1132, allocations: 3.894 MB / 324.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.18/0.2932, allocations: 46.55 MB / 370.6 MB, free: 57.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006316/0.2995, allocations: 2.857 MB / 373.5 MB, free: 57.04 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001295/0.3008, allocations: 0.8939 MB / 374.4 MB, free: 56.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006449/0.3073, allocations: 4.968 MB / 379.3 MB, free: 56.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.3073, allocations: 64.89 kB / 379.4 MB, free: 56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=216): time 5.37e-06/0.3073, allocations: 0 / 379.4 MB, free: 56 MB / 330.7 MB Notification: Performance of matching and sorting (n=237): time 0.0306/0.3379, allocations: 14.93 MB / 394.3 MB, free: 47.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.338, allocations: 183.3 kB / 394.5 MB, free: 47.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003781/0.3418, allocations: 3.743 MB / 398.2 MB, free: 43.64 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002009/0.342, allocations: 60.77 kB / 398.3 MB, free: 43.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.3432, allocations: 3.708 MB / 402 MB, free: 40.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006338/0.3439, allocations: 0.9494 MB / 403 MB, free: 39.19 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00121/0.3451, allocations: 1.485 MB / 404.4 MB, free: 37.69 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.61e-05/0.3451, allocations: 478.5 kB / 404.9 MB, free: 37.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.3465, allocations: 0.8643 MB / 405.8 MB, free: 36.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002835/0.3493, allocations: 6.686 MB / 412.5 MB, free: 27.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005544/0.3549, allocations: 8.322 MB / 420.8 MB, free: 16.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-05/0.355, allocations: 40 kB / 420.8 MB, free: 16.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.009454/0.3644, allocations: 6.517 MB / 427.3 MB, free: 10.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.401e-05/0.3645, allocations: 65 kB / 427.4 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001127/0.3646, allocations: 136 kB / 427.5 MB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.3664, allocations: 0.8033 MB / 428.3 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003247/0.3696, allocations: 1.606 MB / 429.9 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003721/0.3733, allocations: 3.916 MB / 433.9 MB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003488/0.3768, allocations: 423.5 kB / 434.3 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005538/0.3774, allocations: 407.1 kB / 434.7 MB, free: 2.629 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: 42 (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 (835): * Single equations (assignments): 829 * 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.001724/0.3791, allocations: 0.7108 MB / 435.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006466/0.3797, allocations: 433.6 kB / 435.8 MB, free: 1.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003454/0.3832, allocations: 2.425 MB / 438.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.709e-05/0.3832, allocations: 27.94 kB / 438.3 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.3832, allocations: 8 kB / 438.3 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.3833, allocations: 11.95 kB / 438.3 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.395, allocations: 6.84 MB / 445.1 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-05/0.395, allocations: 8.984 kB / 445.1 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.3961, allocations: 431.2 kB / 445.5 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.3977, allocations: 0.6239 MB / 446.2 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001833/0.3978, allocations: 44 kB / 446.2 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004247/0.4021, allocations: 3.622 MB / 449.8 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.4021, allocations: 11.94 kB / 449.8 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005791/0.4079, allocations: 3.767 MB / 453.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/0.4095, allocations: 0.669 MB / 454.3 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003748/0.4098, allocations: 47.98 kB / 454.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.4109, allocations: 179.7 kB / 454.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/0.4111, allocations: 149.6 kB / 454.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.4112, allocations: 68 kB / 454.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002465/0.4137, allocations: 1.603 MB / 456.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4137, allocations: 0 / 456.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004691/0.4184, allocations: 1.268 MB / 457.6 MB, free: 11.41 MB / 362.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 (198): * Single equations (assignments): 194 * 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.0005683/0.419, allocations: 213.3 kB / 457.8 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007019/0.426, allocations: 3.746 MB / 461.5 MB, free: 7.453 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.426, allocations: 1.969 kB / 461.5 MB, free: 7.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002291/0.4283, allocations: 1.288 MB / 462.8 MB, free: 6.148 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002415/0.4307, allocations: 433.3 kB / 463.2 MB, free: 5.742 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01602/0.4467, allocations: 9.07 MB / 472.3 MB, free: 12.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001768/0.4485, allocations: 1.448 MB / 473.8 MB, free: 11.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.007019/0.4555, allocations: 1.782 MB / 475.5 MB, free: 9.242 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003967/0.4595, allocations: 264.4 kB / 475.8 MB, free: 8.984 MB / 378.7 MB Notification: Performance of SimCode: time 2.043e-06/0.4595, allocations: 4 kB / 475.8 MB, free: 8.98 MB / 378.7 MB Notification: Performance of Templates: time 0.1986/0.6581, allocations: 38.08 MB / 0.5018 GB, free: 140.7 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.479023234918714]