Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009876/0.0009876, allocations: 99.92 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008836/0.0008839, allocations: 35.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2734, allocations: 49.45 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.09588/0.3693, allocations: 75.33 MB / 474.8 MB, free: 5.742 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04447/0.4138, allocations: 14.94 MB / 489.7 MB, free: 6.758 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01946/0.4334, allocations: 343.1 kB / 490.1 MB, free: 6.422 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01208/0.4455, allocations: 4.426 MB / 494.5 MB, free: 1.984 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00784/0.4534, allocations: 2.378 MB / 496.9 MB, free: 15.6 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00286/0.4563, allocations: 1.057 MB / 497.9 MB, free: 14.54 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01406/0.4704, allocations: 11.23 MB / 0.4972 GB, free: 3.285 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2763/0.7468, allocations: 5.187 MB / 0.5023 GB, free: 6.129 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004344/0.7511, allocations: 2.202 MB / 0.5045 GB, free: 6.129 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005314/0.7565, allocations: 3.586 MB / 0.508 GB, free: 6.129 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001325/0.7578, allocations: 355.3 kB / 0.5083 GB, free: 6.129 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003235/0.7611, allocations: 1.407 MB / 0.5097 GB, free: 6.129 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003505/0.7646, allocations: 2.84 MB / 0.5124 GB, free: 5.844 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004958/0.7696, allocations: 3.2 MB / 0.5156 GB, free: 4.691 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.7827, allocations: 9.919 MB / 0.5253 GB, free: 3.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.7828, allocations: 0 / 0.5253 GB, free: 3.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.7828, allocations: 0.8438 kB / 0.5253 GB, free: 3.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005681/0.7834, allocations: 0 / 0.5253 GB, free: 3.32 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02792/0.8113, allocations: 7.609 MB / 0.5327 GB, free: 15.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.8114, allocations: 12.69 kB / 0.5327 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01629/0.8277, allocations: 3.183 MB / 0.5358 GB, free: 13.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0157/0.8434, allocations: 4.717 MB / 0.5404 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003515/0.8438, allocations: 339.4 kB / 0.5407 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/0.8464, allocations: 462.8 kB / 0.5412 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03081/0.8772, allocations: 14.57 MB / 0.5554 GB, free: 2.984 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002663/0.8775, allocations: 79.11 kB / 0.5555 GB, free: 2.938 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008629/0.8784, allocations: 218.1 kB / 0.5557 GB, free: 2.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00567/0.884, allocations: 2.835 MB / 0.5585 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03038/0.9144, allocations: 13.22 MB / 0.5714 GB, free: 2.961 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0886/1.003, allocations: 58.51 MB / 0.6285 GB, free: 7.668 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01862/1.022, allocations: 7.744 MB / 0.6361 GB, free: 15.79 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00681/1.029, allocations: 5.045 MB / 0.641 GB, free: 10.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02523/1.054, allocations: 12.8 MB / 0.6535 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.705e-05/1.054, allocations: 68.7 kB / 0.6535 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=326): time 5.27e-06/1.054, allocations: 0 / 0.6535 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of matching and sorting (n=572): time 2.081/3.135, allocations: 411.4 MB / 1.055 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/3.135, allocations: 265.6 kB / 1.056 GB, free: 87.67 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007896/3.143, allocations: 5.45 MB / 1.061 GB, free: 82.24 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002043/3.145, allocations: 109.7 kB / 1.061 GB, free: 82.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002368/3.147, allocations: 3.938 MB / 1.065 GB, free: 78.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003259/3.15, allocations: 2.011 MB / 1.067 GB, free: 76.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006254/3.157, allocations: 2.178 MB / 1.069 GB, free: 74.02 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.19e-05/3.157, allocations: 309.1 kB / 1.069 GB, free: 73.71 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01388/3.171, allocations: 11.06 MB / 1.08 GB, free: 62.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0171/3.188, allocations: 15.24 MB / 1.095 GB, free: 45.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2601/3.448, allocations: 27.45 MB / 1.122 GB, free: 197.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002202/3.448, allocations: 37.31 kB / 1.122 GB, free: 197.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3479/3.796, allocations: 141.1 MB / 1.26 GB, free: 89.26 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.28e-05/3.796, allocations: 66.66 kB / 1.26 GB, free: 89.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/3.796, allocations: 140 kB / 1.26 GB, free: 89.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0794/3.876, allocations: 34.69 MB / 1.294 GB, free: 54.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005273/3.881, allocations: 1.569 MB / 1.295 GB, free: 52.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4562/4.337, allocations: 190.6 MB / 1.481 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01316/4.351, allocations: 1.716 MB / 1.483 GB, free: 73.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002265/4.353, allocations: 0.5324 MB / 1.483 GB, free: 72.99 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.006899/4.36, allocations: 3.099 MB / 1.486 GB, free: 70.08 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001817/4.362, allocations: 0.5788 MB / 1.487 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5661/4.928, allocations: 136.7 MB / 1.621 GB, free: 142.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.98e-05/4.928, allocations: 56 kB / 1.621 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001686/4.928, allocations: 56 kB / 1.621 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001221/4.928, allocations: 31.89 kB / 1.621 GB, free: 142.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6422/5.57, allocations: 206.2 MB / 1.822 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.075e-05/5.571, allocations: 7.594 kB / 1.822 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/5.572, allocations: 330.3 kB / 1.822 GB, free: 160.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0749/5.647, allocations: 33.85 MB / 1.855 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001869/5.649, allocations: 98.34 kB / 1.855 GB, free: 132 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4376/6.086, allocations: 173.4 MB / 2.025 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/6.086, allocations: 15.31 kB / 2.025 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.089/15.18, allocations: 2.485 GB / 4.51 GB, free: 43.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002346/15.18, allocations: 0.6306 MB / 4.511 GB, free: 42.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003838/15.18, allocations: 96.56 kB / 4.511 GB, free: 42.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01153/15.19, allocations: 1.488 MB / 4.512 GB, free: 41.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005431/15.2, allocations: 0.4905 MB / 4.513 GB, free: 40.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001766/15.2, allocations: 142.2 kB / 4.513 GB, free: 40.79 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006117/15.21, allocations: 3.47 MB / 4.516 GB, free: 37.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.91e-07/15.21, allocations: 0 / 4.516 GB, free: 37.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.313/15.52, allocations: 7.016 MB / 4.523 GB, free: 154.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002381/15.52, allocations: 241.4 kB / 4.523 GB, free: 154.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.06631/15.59, allocations: 33.72 MB / 4.556 GB, free: 153 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.667e-05/15.59, allocations: 0 / 4.556 GB, free: 153 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.04384/15.63, allocations: 20.51 MB / 4.576 GB, free: 152 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008571/15.64, allocations: 0.7411 MB / 4.577 GB, free: 152 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1744/15.82, allocations: 70.35 MB / 4.646 GB, free: 97.28 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009497/15.83, allocations: 5.474 MB / 4.651 GB, free: 91.77 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005182/15.83, allocations: 2.068 MB / 4.653 GB, free: 89.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009182/15.83, allocations: 311.4 kB / 4.653 GB, free: 89.39 MB / 0.5105 GB Notification: Performance of SimCode: time 1.633e-06/15.83, allocations: 0 / 4.653 GB, free: 89.39 MB / 0.5105 GB Notification: Performance of Templates: time 1.404/17.24, allocations: 0.5118 GB / 5.165 GB, free: 71.89 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches