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.001934/0.001934, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.002628/0.002628, allocations: 215.8 kB / 23.73 MB, free: 4.156 MB / 14.72 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 1.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002657/0.002657, allocations: 51.91 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2758, allocations: 53.38 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01307/0.2889, allocations: 9.828 MB / 441.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008308/0.2972, allocations: 3.851 MB / 445.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.2983, allocations: 79.69 kB / 445.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005938/0.3043, allocations: 3.088 MB / 448.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004994/0.3093, allocations: 1.946 MB / 450.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001773/0.311, allocations: 0.8227 MB / 451.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006092/0.3171, allocations: 4.401 MB / 455.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003803/0.3209, allocations: 3.023 MB / 458.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002564/0.3235, allocations: 1.639 MB / 460.3 MB, free: 9.895 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003321/0.3268, allocations: 2.141 MB / 462.4 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008076/0.3276, allocations: 348 kB / 462.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002209/0.3298, allocations: 1.135 MB / 463.9 MB, free: 6.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002094/0.3319, allocations: 2.053 MB / 465.9 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002115/0.334, allocations: 1.689 MB / 467.6 MB, free: 2.512 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009287/0.3433, allocations: 7.412 MB / 475 MB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3433, allocations: 0 / 475 MB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3433, allocations: 4 kB / 475 MB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000185/0.3435, allocations: 0 / 475 MB, free: 11.07 MB / 382.1 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.01077/0.3543, allocations: 5.126 MB / 480.2 MB, free: 5.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.3543, allocations: 8.031 kB / 480.2 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008248/0.3626, allocations: 2.154 MB / 482.3 MB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006681/0.3693, allocations: 2.728 MB / 485.1 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/0.3695, allocations: 242.2 kB / 485.3 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006734/0.3701, allocations: 319.8 kB / 485.6 MB, free: 388 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/0.3872, allocations: 10.47 MB / 496.1 MB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001066/0.3873, allocations: 39.69 kB / 496.1 MB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003845/0.3877, allocations: 155.9 kB / 496.3 MB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003429/0.3911, allocations: 2.025 MB / 498.3 MB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01899/0.4101, allocations: 8.889 MB / 0.4953 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08289/0.493, allocations: 38.29 MB / 0.5327 GB, free: 2.707 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2251/0.7181, allocations: 3.853 MB / 0.5365 GB, free: 100.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002814/0.7209, allocations: 2.308 MB / 0.5387 GB, free: 99.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009834/0.7308, allocations: 6.13 MB / 0.5447 GB, free: 97.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.7308, allocations: 58.19 kB / 0.5448 GB, free: 97.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.348e-06/0.7308, allocations: 0 / 0.5448 GB, free: 97.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.03968/0.7705, allocations: 18.71 MB / 0.563 GB, free: 84.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.7705, allocations: 179.3 kB / 0.5632 GB, free: 84.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003473/0.774, allocations: 3.896 MB / 0.567 GB, free: 80.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000152/0.7742, allocations: 57.64 kB / 0.5671 GB, free: 80.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.7752, allocations: 3.284 MB / 0.5703 GB, free: 77.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004622/0.7757, allocations: 0.7861 MB / 0.571 GB, free: 76.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001178/0.7769, allocations: 1.286 MB / 0.5723 GB, free: 75.46 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.686e-05/0.7769, allocations: 305.1 kB / 0.5726 GB, free: 75.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002461/0.7794, allocations: 2.39 MB / 0.5749 GB, free: 72.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00344/0.7828, allocations: 6.096 MB / 0.5809 GB, free: 64.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006549/0.7894, allocations: 9.153 MB / 0.5898 GB, free: 53.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-05/0.7894, allocations: 36 kB / 0.5898 GB, free: 53.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01126/0.8007, allocations: 9.229 MB / 0.5988 GB, free: 44.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.977e-05/0.8007, allocations: 62.66 kB / 0.5989 GB, free: 44.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-05/0.8008, allocations: 136.5 kB / 0.599 GB, free: 44.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002409/0.8032, allocations: 1.187 MB / 0.6002 GB, free: 43.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003539/0.8068, allocations: 1.427 MB / 0.6016 GB, free: 41.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007119/0.8139, allocations: 7.092 MB / 0.6085 GB, free: 34.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003687/0.8176, allocations: 355.6 kB / 0.6089 GB, free: 34.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000392/0.818, allocations: 376 kB / 0.6092 GB, free: 33.89 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * 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 (763): * Single equations (assignments): 757 * 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.002338/0.8203, allocations: 2.17 MB / 0.6113 GB, free: 31.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004557/0.8208, allocations: 341.7 kB / 0.6117 GB, free: 31.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005654/0.8264, allocations: 3.981 MB / 0.6155 GB, free: 27.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.118e-05/0.8264, allocations: 27.77 kB / 0.6156 GB, free: 27.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.8264, allocations: 11.09 kB / 0.6156 GB, free: 27.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.8265, allocations: 7.969 kB / 0.6156 GB, free: 27.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.8385, allocations: 8.257 MB / 0.6237 GB, free: 19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.8386, allocations: 7.984 kB / 0.6237 GB, free: 19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.8399, allocations: 315.5 kB / 0.624 GB, free: 18.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/0.8422, allocations: 1.026 MB / 0.625 GB, free: 17.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/0.8423, allocations: 47.92 kB / 0.625 GB, free: 17.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007137/0.8495, allocations: 6.669 MB / 0.6315 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/0.8495, allocations: 11.94 kB / 0.6315 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008289/0.8578, allocations: 6.986 MB / 0.6384 GB, free: 3.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007008/0.8585, allocations: 317.6 kB / 0.6387 GB, free: 3.457 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003708/0.8589, allocations: 43.94 kB / 0.6387 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/0.8603, allocations: 123.7 kB / 0.6388 GB, free: 3.297 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/0.8605, allocations: 129 kB / 0.6389 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.8607, allocations: 56 kB / 0.639 GB, free: 3.113 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002453/0.8631, allocations: 2.255 MB / 0.6412 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8631, allocations: 0 / 0.6412 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003964/0.8671, allocations: 1.043 MB / 0.6422 GB, free: 15.82 MB / 462.1 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.0004001/0.8675, allocations: 182.5 kB / 0.6424 GB, free: 15.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008851/0.8763, allocations: 5.482 MB / 0.6477 GB, free: 10.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/0.8763, allocations: 4 kB / 0.6478 GB, free: 10.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003552/0.8799, allocations: 1.928 MB / 0.6496 GB, free: 8.223 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.8825, allocations: 421.7 kB / 0.65 GB, free: 7.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01658/0.8991, allocations: 10.17 MB / 0.66 GB, free: 13.53 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00386/0.9029, allocations: 2.841 MB / 0.6627 GB, free: 10.65 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004483/0.9074, allocations: 1.948 MB / 0.6646 GB, free: 8.691 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007541/0.9082, allocations: 235.4 kB / 0.6649 GB, free: 8.461 MB / 478.1 MB Notification: Performance of SimCode: time 1.272e-06/0.9082, allocations: 0 / 0.6649 GB, free: 8.461 MB / 478.1 MB Notification: Performance of Templates: time 0.07686/0.985, allocations: 38.16 MB / 0.7021 GB, free: 2.785 MB / 0.4981 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.559416849166155]