Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009329/0.0009327, allocations: 177.3 kB / 16.71 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.229/1.229, allocations: 225.7 MB / 243.2 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007319/0.0007319, allocations: 92.28 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000244/0.0002441, allocations: 11.94 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2122, allocations: 50.42 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.05518/0.2674, allocations: 73.79 MB / 478.4 MB, free: 5.332 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03409/0.3016, allocations: 19.41 MB / 497.8 MB, free: 1.152 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01256/0.3142, allocations: 367.1 kB / 498.1 MB, free: 0.793 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00254/0.3168, allocations: 0.6723 MB / 498.8 MB, free: 120 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006622/0.3234, allocations: 2.698 MB / 0.4897 GB, free: 13.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003018/0.3265, allocations: 1.35 MB / 0.4911 GB, free: 12.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2182/0.5446, allocations: 13.65 MB / 0.5044 GB, free: 9.324 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01619/0.5609, allocations: 14.56 MB / 0.5186 GB, free: 4.707 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004951/0.5659, allocations: 2.451 MB / 0.521 GB, free: 4.703 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005841/0.5717, allocations: 3.631 MB / 0.5246 GB, free: 4.691 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001148/0.5729, allocations: 247.2 kB / 0.5248 GB, free: 4.691 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003169/0.5761, allocations: 1.505 MB / 0.5263 GB, free: 4.68 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003188/0.5793, allocations: 3.211 MB / 0.5294 GB, free: 4.441 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003812/0.5831, allocations: 3.475 MB / 0.5328 GB, free: 3.086 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01192/0.5951, allocations: 12.32 MB / 0.5448 GB, free: 12.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.5951, allocations: 0 / 0.5448 GB, free: 12.77 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.5951, allocations: 0 / 0.5448 GB, free: 12.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004869/0.5956, allocations: 0 / 0.5448 GB, free: 12.77 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01717/0.6128, allocations: 7.299 MB / 0.552 GB, free: 8.449 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.6128, allocations: 10.59 kB / 0.552 GB, free: 8.449 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03993/0.6528, allocations: 4.966 MB / 0.5568 GB, free: 5.199 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01501/0.6678, allocations: 6.371 MB / 0.563 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002951/0.6681, allocations: 433.2 kB / 0.5635 GB, free: 424 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002013/0.6702, allocations: 0.5845 MB / 0.564 GB, free: 28 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03032/0.7005, allocations: 17.06 MB / 0.5807 GB, free: 2.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002214/0.7008, allocations: 77.73 kB / 0.5808 GB, free: 2.883 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007811/0.7015, allocations: 270.4 kB / 0.581 GB, free: 2.809 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004299/0.7058, allocations: 2.658 MB / 0.5836 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02868/0.7346, allocations: 14.77 MB / 0.598 GB, free: 6.363 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07755/0.8121, allocations: 64.51 MB / 0.661 GB, free: 10.72 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02159/0.8338, allocations: 8.817 MB / 0.6696 GB, free: 1.758 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006199/0.84, allocations: 5.06 MB / 0.6746 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2215/1.062, allocations: 18.62 MB / 0.6928 GB, free: 203.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/1.062, allocations: 69.38 kB / 0.6928 GB, free: 203 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=281): time 5.651e-06/1.062, allocations: 0 / 0.6928 GB, free: 203 MB / 0.4948 GB Notification: Performance of matching and sorting (n=374): time 0.2188/1.28, allocations: 75.03 MB / 0.7661 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/1.281, allocations: 372.6 kB / 0.7665 GB, free: 146.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006786/1.287, allocations: 6.321 MB / 0.7726 GB, free: 140 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009184/1.288, allocations: 82.72 kB / 0.7727 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002161/1.291, allocations: 4.746 MB / 0.7773 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001437/1.292, allocations: 1.38 MB / 0.7787 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005339/1.292, allocations: 192 kB / 0.7789 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003119/1.293, allocations: 0.7122 MB / 0.7796 GB, free: 132.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006178/1.299, allocations: 5.953 MB / 0.7854 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007968/1.307, allocations: 10.99 MB / 0.7961 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01707/1.324, allocations: 17.91 MB / 0.8136 GB, free: 93.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001049/1.324, allocations: 48 kB / 0.8136 GB, free: 93.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.03927/1.364, allocations: 23.28 MB / 0.8364 GB, free: 69.76 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001426/1.364, allocations: 76 kB / 0.8365 GB, free: 69.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001994/1.364, allocations: 172 kB / 0.8366 GB, free: 69.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01958/1.383, allocations: 7.506 MB / 0.844 GB, free: 62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00681/1.39, allocations: 2.187 MB / 0.8461 GB, free: 59.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2109/1.601, allocations: 35.57 MB / 0.8808 GB, free: 181.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009257/1.611, allocations: 0.7418 MB / 0.8815 GB, free: 181.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002078/1.613, allocations: 0.5288 MB / 0.8821 GB, free: 181.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,67,77.8%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.007237/1.62, allocations: 3.431 MB / 0.8854 GB, free: 181.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001524/1.621, allocations: 0.5715 MB / 0.886 GB, free: 181.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02982/1.651, allocations: 16.96 MB / 0.9025 GB, free: 177 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.408e-05/1.651, allocations: 47.91 kB / 0.9026 GB, free: 177 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.573e-05/1.651, allocations: 18.16 kB / 0.9026 GB, free: 177 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.94e-05/1.652, allocations: 15.94 kB / 0.9026 GB, free: 177 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05222/1.704, allocations: 32.15 MB / 0.934 GB, free: 161.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-05/1.704, allocations: 7.672 kB / 0.934 GB, free: 161.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00292/1.707, allocations: 0.6006 MB / 0.9346 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01883/1.726, allocations: 7.146 MB / 0.9416 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009099/1.727, allocations: 67.92 kB / 0.9416 GB, free: 153.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03713/1.764, allocations: 33.88 MB / 0.9747 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.764, allocations: 4 kB / 0.9747 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03727/1.801, allocations: 24.58 MB / 0.9987 GB, free: 95.08 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001842/1.803, allocations: 0.6381 MB / 0.9994 GB, free: 94.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002318/1.805, allocations: 64.47 kB / 0.9994 GB, free: 94.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004934/1.81, allocations: 448.1 kB / 0.9998 GB, free: 93.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001547/1.812, allocations: 250.6 kB / 1 GB, free: 93.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003926/1.812, allocations: 92.42 kB / 1 GB, free: 93.65 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005915/1.818, allocations: 4.002 MB / 1.004 GB, free: 89.66 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.81e-07/1.818, allocations: 0 / 1.004 GB, free: 89.66 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01209/1.83, allocations: 2.289 MB / 1.006 GB, free: 87.38 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001582/1.832, allocations: 283.5 kB / 1.007 GB, free: 87.11 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02096/1.853, allocations: 14.83 MB / 1.021 GB, free: 72.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/1.853, allocations: 0 / 1.021 GB, free: 72.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009553/1.862, allocations: 6.69 MB / 1.028 GB, free: 65.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007257/1.87, allocations: 0.8266 MB / 1.028 GB, free: 64.76 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03007/1.9, allocations: 23.56 MB / 1.051 GB, free: 41.19 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00497/1.905, allocations: 5.267 MB / 1.057 GB, free: 35.88 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006728/1.912, allocations: 3.023 MB / 1.06 GB, free: 32.86 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/1.913, allocations: 387.4 kB / 1.06 GB, free: 32.48 MB / 0.4948 GB Notification: Performance of SimCode: time 6.82e-07/1.913, allocations: 0 / 1.06 GB, free: 32.48 MB / 0.4948 GB Notification: Performance of Templates: time 0.3023/2.216, allocations: 106 MB / 1.163 GB, free: 111 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches