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.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009355/0.0009356, allocations: 175.7 kB / 16.71 MB, free: 5.09 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.242/1.242, allocations: 225.7 MB / 243.2 MB, free: 8.492 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.0007798/0.00078, allocations: 94.84 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.0002729, allocations: 7.938 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1892, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.07252/0.2618, allocations: 94.14 MB / 498.7 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.2085/0.4704, allocations: 22.6 MB / 0.5091 GB, free: 3.508 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01586/0.4863, allocations: 470.2 kB / 0.5095 GB, free: 3.508 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002126/0.4884, allocations: 0.7113 MB / 0.5102 GB, free: 3.504 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006535/0.495, allocations: 3.169 MB / 0.5133 GB, free: 3.348 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002406/0.4974, allocations: 1.451 MB / 0.5148 GB, free: 3.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01684/0.5142, allocations: 17.36 MB / 0.5317 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01267/0.5269, allocations: 12.16 MB / 0.5436 GB, free: 11.11 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004493/0.5315, allocations: 2.987 MB / 0.5465 GB, free: 10.54 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005291/0.5368, allocations: 4.405 MB / 0.5508 GB, free: 8.371 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008621/0.5377, allocations: 283 kB / 0.5511 GB, free: 8.098 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002451/0.5401, allocations: 1.286 MB / 0.5523 GB, free: 7.074 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002926/0.5431, allocations: 3.666 MB / 0.5559 GB, free: 4.027 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003618/0.5467, allocations: 3.868 MB / 0.5597 GB, free: 1.215 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01081/0.5575, allocations: 12.72 MB / 0.5721 GB, free: 6.086 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.5575, allocations: 4 kB / 0.5721 GB, free: 6.082 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5575, allocations: 0 / 0.5721 GB, free: 6.082 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002301/0.5578, allocations: 0 / 0.5721 GB, free: 6.082 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.01458/0.5724, allocations: 7.997 MB / 0.5799 GB, free: 14.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.5724, allocations: 12.03 kB / 0.5799 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04017/0.6126, allocations: 5.356 MB / 0.5852 GB, free: 9.449 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0162/0.6288, allocations: 7.88 MB / 0.5929 GB, free: 3.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003273/0.6292, allocations: 423.8 kB / 0.5933 GB, free: 3.449 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001767/0.631, allocations: 0.5916 MB / 0.5938 GB, free: 3.055 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02501/0.656, allocations: 16.58 MB / 0.61 GB, free: 6.137 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002145/0.6562, allocations: 105.1 kB / 0.6101 GB, free: 6.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005888/0.6568, allocations: 268.1 kB / 0.6104 GB, free: 5.996 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003601/0.6604, allocations: 2.757 MB / 0.6131 GB, free: 3.738 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02333/0.6838, allocations: 13.63 MB / 0.6264 GB, free: 10.29 MB / 458.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4214/1.105, allocations: 68.11 MB / 0.6929 GB, free: 165.7 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01657/1.122, allocations: 7.927 MB / 0.7006 GB, free: 165 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005045/1.127, allocations: 4.512 MB / 0.705 GB, free: 164.9 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/1.142, allocations: 12.41 MB / 0.7172 GB, free: 160.6 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/1.142, allocations: 62.5 kB / 0.7172 GB, free: 160.6 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=280): time 4.859e-06/1.142, allocations: 0 / 0.7172 GB, free: 160.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=339): time 0.1521/1.295, allocations: 50.99 MB / 0.767 GB, free: 114.7 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/1.295, allocations: 401.8 kB / 0.7674 GB, free: 114.2 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007558/1.302, allocations: 7.053 MB / 0.7743 GB, free: 107.2 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0006944/1.303, allocations: 77.7 kB / 0.7744 GB, free: 107.1 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002299/1.305, allocations: 5.028 MB / 0.7793 GB, free: 102.1 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001278/1.307, allocations: 1.254 MB / 0.7805 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005114/1.307, allocations: 188 kB / 0.7807 GB, free: 100.7 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0003149/1.307, allocations: 0.6825 MB / 0.7813 GB, free: 99.97 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005178/1.313, allocations: 4.511 MB / 0.7858 GB, free: 95.45 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007479/1.32, allocations: 9.228 MB / 0.7948 GB, free: 84.02 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01428/1.334, allocations: 14.5 MB / 0.8089 GB, free: 67.75 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.484e-05/1.335, allocations: 48 kB / 0.809 GB, free: 67.71 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03778/1.372, allocations: 19.69 MB / 0.8282 GB, free: 47.96 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 8.329e-05/1.373, allocations: 76 kB / 0.8283 GB, free: 47.89 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/1.373, allocations: 163.9 kB / 0.8284 GB, free: 47.73 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01801/1.391, allocations: 7.019 MB / 0.8353 GB, free: 40.69 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005757/1.396, allocations: 1.922 MB / 0.8372 GB, free: 38.77 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03822/1.435, allocations: 33.23 MB / 0.8696 GB, free: 5.137 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007501/1.442, allocations: 0.5928 MB / 0.8702 GB, free: 4.543 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001568/1.444, allocations: 500 kB / 0.8707 GB, free: 4.055 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[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 (1048): * Single equations (assignments): 1042 * Array equations: 3 * 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 {(7,94,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.00606/1.45, allocations: 3.468 MB / 0.8741 GB, free: 0.5742 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1756/1.626, allocations: 0.6273 MB / 0.8747 GB, free: 188.5 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02602/1.652, allocations: 13.31 MB / 0.8877 GB, free: 186.8 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.392e-05/1.652, allocations: 34.72 kB / 0.8877 GB, free: 186.8 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.918e-05/1.652, allocations: 22.34 kB / 0.8877 GB, free: 186.8 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-05/1.652, allocations: 14.72 kB / 0.8877 GB, free: 186.8 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04242/1.694, allocations: 26.69 MB / 0.9138 GB, free: 174.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.147e-05/1.694, allocations: 8 kB / 0.9138 GB, free: 174.1 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/1.696, allocations: 420.6 kB / 0.9142 GB, free: 173.7 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0177/1.714, allocations: 6.678 MB / 0.9207 GB, free: 167 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007188/1.715, allocations: 63.78 kB / 0.9208 GB, free: 167 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03485/1.75, allocations: 31.93 MB / 0.952 GB, free: 134.9 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/1.75, allocations: 11.25 kB / 0.952 GB, free: 134.9 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02928/1.779, allocations: 18.75 MB / 0.9703 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/1.781, allocations: 0.6953 MB / 0.971 GB, free: 116 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001187/1.782, allocations: 63.94 kB / 0.971 GB, free: 115.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002959/1.785, allocations: 314 kB / 0.9713 GB, free: 115.6 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008125/1.786, allocations: 245.6 kB / 0.9716 GB, free: 115.4 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002568/1.786, allocations: 88 kB / 0.9716 GB, free: 115.3 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.005066/1.791, allocations: 4.497 MB / 0.976 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.92e-07/1.791, allocations: 0 / 0.976 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.006964/1.798, allocations: 2.139 MB / 0.9781 GB, free: 108.7 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (inertia.phi,inertia.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 (214): * Single equations (assignments): 208 * Array equations: 3 * 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 {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005547/1.799, allocations: 226.9 kB / 0.9783 GB, free: 108.5 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01442/1.813, allocations: 11.51 MB / 0.9896 GB, free: 97.03 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.813, allocations: 0 / 0.9896 GB, free: 97.03 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006853/1.82, allocations: 4.991 MB / 0.9945 GB, free: 92.04 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01132/1.831, allocations: 0.9377 MB / 0.9954 GB, free: 91.12 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02761/1.859, allocations: 23.33 MB / 1.018 GB, free: 67.87 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004584/1.864, allocations: 5.519 MB / 1.024 GB, free: 62.31 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.005631/1.869, allocations: 2.608 MB / 1.026 GB, free: 59.69 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009218/1.87, allocations: 387.4 kB / 1.026 GB, free: 59.31 MB / 0.4949 GB Notification: Performance of SimCode: time 5.81e-07/1.87, allocations: 4 kB / 1.026 GB, free: 59.31 MB / 0.4949 GB Notification: Performance of Templates: time 0.3009/2.171, allocations: 93.06 MB / 1.117 GB, free: 145.5 MB / 0.4949 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches