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.Fourbar1.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009262/0.0009263, 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.246/1.246, allocations: 225.7 MB / 243.2 MB, free: 8.465 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.0007198/0.0007199, allocations: 93.41 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000243/0.000243, allocations: 11.94 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.211, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.05088/0.2619, allocations: 68.57 MB / 473.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03075/0.2927, allocations: 17.53 MB / 490.7 MB, free: 8.332 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01368/0.3064, allocations: 335.1 kB / 491 MB, free: 8.004 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00201/0.3085, allocations: 0.5983 MB / 491.6 MB, free: 7.402 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006076/0.3146, allocations: 2.39 MB / 494 MB, free: 5.004 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002541/0.3171, allocations: 1.057 MB / 495.1 MB, free: 3.945 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01237/0.3295, allocations: 11.21 MB / 0.4944 GB, free: 8.715 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2214/0.5509, allocations: 8.92 MB / 0.5031 GB, free: 11.46 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004616/0.5556, allocations: 2.047 MB / 0.5051 GB, free: 11.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004886/0.5605, allocations: 3.154 MB / 0.5082 GB, free: 11.46 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001047/0.5616, allocations: 215.5 kB / 0.5084 GB, free: 11.46 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002632/0.5642, allocations: 1.256 MB / 0.5096 GB, free: 11.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003026/0.5673, allocations: 2.603 MB / 0.5122 GB, free: 11.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004477/0.5718, allocations: 2.974 MB / 0.5151 GB, free: 10.16 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0103/0.5821, allocations: 9.638 MB / 0.5245 GB, free: 8.023 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.5821, allocations: 0 / 0.5245 GB, free: 8.023 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5821, allocations: 0 / 0.5245 GB, free: 8.023 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00033/0.5825, allocations: 2.25 kB / 0.5245 GB, free: 8.023 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.01363/0.5961, allocations: 6.295 MB / 0.5306 GB, free: 4.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.5962, allocations: 10.91 kB / 0.5306 GB, free: 4.277 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01279/0.609, allocations: 3.243 MB / 0.5338 GB, free: 2.805 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009143/0.6181, allocations: 4.724 MB / 0.5384 GB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002523/0.6184, allocations: 334.3 kB / 0.5387 GB, free: 1.168 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001676/0.6201, allocations: 468.3 kB / 0.5392 GB, free: 1.152 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02779/0.6479, allocations: 14.7 MB / 0.5535 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002853/0.6483, allocations: 73.86 kB / 0.5536 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008382/0.6491, allocations: 211.2 kB / 0.5538 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004991/0.6541, allocations: 2.83 MB / 0.5566 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02576/0.6799, allocations: 13.19 MB / 0.5695 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07422/0.7541, allocations: 58.51 MB / 0.6266 GB, free: 15.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01734/0.7715, allocations: 7.729 MB / 0.6341 GB, free: 7.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007174/0.7787, allocations: 5.039 MB / 0.6391 GB, free: 2.129 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02324/0.802, allocations: 12.8 MB / 0.6516 GB, free: 5.277 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.55e-05/0.8021, allocations: 64.7 kB / 0.6516 GB, free: 5.203 MB / 474.7 MB Notification: Performance of pre-optimization done (n=326): time 7.134e-06/0.8021, allocations: 0 / 0.6516 GB, free: 5.203 MB / 474.7 MB Notification: Performance of matching and sorting (n=572): time 1.79/2.593, allocations: 407.2 MB / 1.049 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.405e-05/2.593, allocations: 261.7 kB / 1.049 GB, free: 63.77 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00614/2.599, allocations: 5.413 MB / 1.055 GB, free: 58.38 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001485/2.6, allocations: 115.3 kB / 1.055 GB, free: 58.26 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001846/2.602, allocations: 3.931 MB / 1.059 GB, free: 54.33 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002639/2.605, allocations: 2.009 MB / 1.061 GB, free: 52.34 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001385/2.606, allocations: 197.5 kB / 1.061 GB, free: 52.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003956/2.607, allocations: 0.7151 MB / 1.062 GB, free: 51.42 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01309/2.62, allocations: 11.03 MB / 1.072 GB, free: 40.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2057/2.825, allocations: 15.2 MB / 1.087 GB, free: 184.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0326/2.858, allocations: 27.4 MB / 1.114 GB, free: 170.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001428/2.858, allocations: 40.44 kB / 1.114 GB, free: 170.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.292/3.15, allocations: 141 MB / 1.252 GB, free: 50.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.334e-05/3.15, allocations: 64.94 kB / 1.252 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.475e-05/3.15, allocations: 144 kB / 1.252 GB, free: 49.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2504/3.401, allocations: 34.78 MB / 1.286 GB, free: 175.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004611/3.406, allocations: 1.575 MB / 1.287 GB, free: 175.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4105/3.816, allocations: 190.5 MB / 1.473 GB, free: 163.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01312/3.829, allocations: 1.721 MB / 1.475 GB, free: 163.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003994/3.833, allocations: 0.5395 MB / 1.476 GB, free: 163.8 MB / 0.4948 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%), (17,101,42.9%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.01222/3.846, allocations: 3.098 MB / 1.479 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001814/3.847, allocations: 0.5726 MB / 1.479 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2814/4.129, allocations: 136.6 MB / 1.613 GB, free: 74.27 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.117e-05/4.129, allocations: 56 kB / 1.613 GB, free: 74.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001246/4.129, allocations: 60.98 kB / 1.613 GB, free: 74.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.514e-05/4.129, allocations: 27.89 kB / 1.613 GB, free: 74.13 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.526/4.655, allocations: 206.1 MB / 1.814 GB, free: 77.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-05/4.655, allocations: 4.875 kB / 1.814 GB, free: 77.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/4.657, allocations: 332.7 kB / 1.814 GB, free: 76.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0677/4.724, allocations: 33.91 MB / 1.847 GB, free: 43.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00165/4.726, allocations: 100 kB / 1.848 GB, free: 42.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3859/5.112, allocations: 173.4 MB / 2.017 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.565e-06/5.112, allocations: 11.94 kB / 2.017 GB, free: 50.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4966/5.609, allocations: 152.5 MB / 2.166 GB, free: 79.65 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00215/5.611, allocations: 0.6317 MB / 2.166 GB, free: 79.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002827/5.614, allocations: 95.98 kB / 2.167 GB, free: 79.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008663/5.622, allocations: 1.492 MB / 2.168 GB, free: 77.73 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003851/5.626, allocations: 0.4899 MB / 2.168 GB, free: 77.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009918/5.627, allocations: 145.7 kB / 2.169 GB, free: 77.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005173/5.632, allocations: 3.42 MB / 2.172 GB, free: 73.71 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/5.632, allocations: 5.094 kB / 2.172 GB, free: 73.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01288/5.645, allocations: 3.855 MB / 2.176 GB, free: 69.86 MB / 0.4948 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.001387/5.647, allocations: 252.2 kB / 2.176 GB, free: 69.61 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2324/5.879, allocations: 33.66 MB / 2.209 GB, free: 168.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/5.879, allocations: 1.062 kB / 2.209 GB, free: 168.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.03758/5.917, allocations: 20.49 MB / 2.229 GB, free: 168.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01053/5.927, allocations: 0.7529 MB / 2.23 GB, free: 168.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03991/5.967, allocations: 30.42 MB / 2.259 GB, free: 158.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007447/5.975, allocations: 5.107 MB / 2.264 GB, free: 154.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005574/5.98, allocations: 2.052 MB / 2.266 GB, free: 153.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/5.981, allocations: 309.1 kB / 2.267 GB, free: 152.8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.154e-06/5.981, allocations: 0 / 2.267 GB, free: 152.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.4815/6.463, allocations: 262 MB / 2.522 GB, free: 54.08 MB / 0.4948 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/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