Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 192.4 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008316/0.0008317, allocations: 96.38 kB / 299.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000221/0.0002211, allocations: 8 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1946, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.07678/0.2715, allocations: 94.15 MB / 0.4943 GB, free: 11.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2243/0.4958, allocations: 23 MB / 0.5168 GB, free: 3.617 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02039/0.5162, allocations: 471.6 kB / 0.5173 GB, free: 3.617 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002975/0.5192, allocations: 0.7081 MB / 0.5179 GB, free: 3.613 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007829/0.5271, allocations: 3.158 MB / 0.521 GB, free: 3.441 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003173/0.5303, allocations: 1.454 MB / 0.5225 GB, free: 3.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01914/0.5494, allocations: 17.79 MB / 0.5398 GB, free: 0 / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01643/0.5659, allocations: 12.15 MB / 0.5517 GB, free: 10.6 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007513/0.5735, allocations: 2.991 MB / 0.5546 GB, free: 9.117 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007048/0.5805, allocations: 4.404 MB / 0.5589 GB, free: 5.766 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0019/0.5825, allocations: 276 kB / 0.5592 GB, free: 5.496 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004119/0.5866, allocations: 1.275 MB / 0.5604 GB, free: 4.48 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005181/0.5918, allocations: 3.671 MB / 0.564 GB, free: 1.43 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006823/0.5987, allocations: 3.866 MB / 0.5678 GB, free: 14.61 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01519/0.6139, allocations: 12.72 MB / 0.5802 GB, free: 3.488 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.614, allocations: 0 / 0.5802 GB, free: 3.488 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.614, allocations: 0 / 0.5802 GB, free: 3.488 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004576/0.6144, allocations: 0 / 0.5802 GB, free: 3.488 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.01811/0.6326, allocations: 8.024 MB / 0.588 GB, free: 12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.6326, allocations: 8.031 kB / 0.5881 GB, free: 11.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03887/0.6715, allocations: 5.353 MB / 0.5933 GB, free: 6.828 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01806/0.6896, allocations: 7.718 MB / 0.6008 GB, free: 1.148 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004601/0.6901, allocations: 422.8 kB / 0.6012 GB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002322/0.6924, allocations: 0.5877 MB / 0.6018 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03251/0.725, allocations: 16.58 MB / 0.618 GB, free: 3.527 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005056/0.7255, allocations: 94.73 kB / 0.6181 GB, free: 3.441 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002066/0.7276, allocations: 270.6 kB / 0.6183 GB, free: 3.363 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004703/0.7323, allocations: 2.765 MB / 0.621 GB, free: 1.074 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02865/0.761, allocations: 13.63 MB / 0.6343 GB, free: 7.281 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.4437/1.205, allocations: 68.11 MB / 0.7009 GB, free: 161.9 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01669/1.222, allocations: 7.927 MB / 0.7086 GB, free: 161.1 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004418/1.226, allocations: 4.512 MB / 0.713 GB, free: 160.5 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01612/1.242, allocations: 12.41 MB / 0.7251 GB, free: 154.6 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/1.242, allocations: 56.31 kB / 0.7252 GB, free: 154.5 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=280): time 5.721e-06/1.242, allocations: 3.469 kB / 0.7252 GB, free: 154.5 MB / 0.4949 GB Notification: Performance of matching and sorting (n=339): time 0.1573/1.399, allocations: 50.98 MB / 0.775 GB, free: 107.9 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/1.4, allocations: 401.5 kB / 0.7753 GB, free: 107.5 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008561/1.408, allocations: 7.06 MB / 0.7822 GB, free: 100.4 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009578/1.409, allocations: 82.88 kB / 0.7823 GB, free: 100.3 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002477/1.412, allocations: 5.025 MB / 0.7872 GB, free: 95.3 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001446/1.413, allocations: 1.256 MB / 0.7885 GB, free: 94.06 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004608/1.414, allocations: 180 kB / 0.7886 GB, free: 93.88 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0003248/1.414, allocations: 0.6904 MB / 0.7893 GB, free: 93.18 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005319/1.419, allocations: 4.504 MB / 0.7937 GB, free: 88.67 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007063/1.426, allocations: 9.235 MB / 0.8027 GB, free: 77.21 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01511/1.441, allocations: 14.51 MB / 0.8169 GB, free: 60.56 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/1.442, allocations: 44 kB / 0.8169 GB, free: 60.52 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03877/1.48, allocations: 19.68 MB / 0.8361 GB, free: 40.78 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002036/1.481, allocations: 72 kB / 0.8362 GB, free: 40.71 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002231/1.481, allocations: 164 kB / 0.8364 GB, free: 40.55 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01916/1.5, allocations: 7.027 MB / 0.8432 GB, free: 33.51 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006022/1.506, allocations: 1.922 MB / 0.8451 GB, free: 31.59 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2359/1.742, allocations: 33.21 MB / 0.8775 GB, free: 177.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007367/1.749, allocations: 0.5836 MB / 0.8781 GB, free: 177.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001129/1.751, allocations: 0.4924 MB / 0.8786 GB, free: 177.5 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.005512/1.756, allocations: 3.479 MB / 0.882 GB, free: 177.4 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.757, allocations: 0.6309 MB / 0.8826 GB, free: 177.4 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02357/1.781, allocations: 13.3 MB / 0.8956 GB, free: 173.9 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.516e-05/1.781, allocations: 37.05 kB / 0.8956 GB, free: 173.9 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.691e-05/1.781, allocations: 19.25 kB / 0.8957 GB, free: 173.9 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.153e-05/1.781, allocations: 16.59 kB / 0.8957 GB, free: 173.9 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04164/1.823, allocations: 26.7 MB / 0.9217 GB, free: 161.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-05/1.823, allocations: 4 kB / 0.9217 GB, free: 161.3 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/1.825, allocations: 423.3 kB / 0.9222 GB, free: 160.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01691/1.842, allocations: 6.682 MB / 0.9287 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005094/1.842, allocations: 57.17 kB / 0.9287 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03486/1.877, allocations: 31.94 MB / 0.9599 GB, free: 122.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.877, allocations: 11.94 kB / 0.9599 GB, free: 122.1 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02927/1.907, allocations: 18.75 MB / 0.9782 GB, free: 103.5 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/1.909, allocations: 0.6903 MB / 0.9789 GB, free: 103 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/1.91, allocations: 66.02 kB / 0.979 GB, free: 102.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003008/1.913, allocations: 318.9 kB / 0.9793 GB, free: 102.6 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008809/1.914, allocations: 238.3 kB / 0.9795 GB, free: 102.4 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000277/1.914, allocations: 91.98 kB / 0.9796 GB, free: 102.3 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.005844/1.92, allocations: 4.497 MB / 0.984 GB, free: 97.82 MB / 0.4949 GB Notification: Performance of sort global known variables: time 3e-07/1.92, allocations: 0 / 0.984 GB, free: 97.82 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007874/1.928, allocations: 2.144 MB / 0.9861 GB, free: 95.68 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.0006392/1.928, allocations: 215.4 kB / 0.9863 GB, free: 95.48 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01651/1.945, allocations: 11.52 MB / 0.9975 GB, free: 83.98 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/1.945, allocations: 0 / 0.9975 GB, free: 83.98 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008741/1.954, allocations: 4.991 MB / 1.002 GB, free: 78.95 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01404/1.968, allocations: 0.926 MB / 1.003 GB, free: 78.04 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03926/2.007, allocations: 23.32 MB / 1.026 GB, free: 54.74 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01037/2.017, allocations: 5.523 MB / 1.031 GB, free: 49.18 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.00784/2.025, allocations: 2.605 MB / 1.034 GB, free: 46.56 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001706/2.027, allocations: 387.4 kB / 1.034 GB, free: 46.18 MB / 0.4949 GB Notification: Performance of SimCode: time 1.643e-06/2.027, allocations: 0 / 1.034 GB, free: 46.18 MB / 0.4949 GB Notification: Performance of Templates: time 0.3404/2.368, allocations: 93.07 MB / 1.125 GB, free: 128.6 MB / 0.4949 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches