Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 112.5 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 241.1 MB, free: 13.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009452/0.0009452, allocations: 51.48 kB / 300 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08541/0.08637, allocations: 49.44 MB / 349.4 MB, free: 4.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2412/0.3276, allocations: 103.3 MB / 452.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04451/0.3721, allocations: 19.94 MB / 472.7 MB, free: 9.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02612/0.3983, allocations: 478.8 kB / 473.1 MB, free: 8.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01144/0.4098, allocations: 5.86 MB / 479 MB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00867/0.4185, allocations: 3.154 MB / 482.1 MB, free: 15.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003485/0.422, allocations: 1.469 MB / 483.6 MB, free: 14.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01998/0.442, allocations: 17.31 MB / 0.4892 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009395/0.4514, allocations: 7.472 MB / 0.4965 GB, free: 5.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005794/0.4572, allocations: 3.196 MB / 0.4996 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007211/0.4645, allocations: 5.067 MB / 0.5046 GB, free: 13.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001998/0.4665, allocations: 484 kB / 0.505 GB, free: 12.67 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003699/0.4702, allocations: 1.51 MB / 0.5065 GB, free: 11.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004524/0.4747, allocations: 4.009 MB / 0.5104 GB, free: 7.137 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004827/0.4796, allocations: 4.218 MB / 0.5145 GB, free: 2.895 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01211/0.4917, allocations: 13.12 MB / 0.5273 GB, free: 5.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.956e-06/0.4918, allocations: 7.984 kB / 0.5273 GB, free: 5.723 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4918, allocations: 0 / 0.5273 GB, free: 5.723 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000273/0.492, allocations: 0 / 0.5273 GB, free: 5.723 MB / 446.1 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.2974/0.7894, allocations: 9.658 MB / 0.5368 GB, free: 153.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.7895, allocations: 9.859 kB / 0.5368 GB, free: 153.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04149/0.831, allocations: 5.237 MB / 0.5419 GB, free: 152.6 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01749/0.8485, allocations: 7.871 MB / 0.5496 GB, free: 148.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003073/0.8489, allocations: 428.6 kB / 0.55 GB, free: 148.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001899/0.8508, allocations: 0.5842 MB / 0.5506 GB, free: 148.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02548/0.8763, allocations: 16.56 MB / 0.5667 GB, free: 133.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002392/0.8765, allocations: 107 kB / 0.5668 GB, free: 133.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006589/0.8772, allocations: 263.8 kB / 0.5671 GB, free: 133.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003379/0.8806, allocations: 2.764 MB / 0.5698 GB, free: 130.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0226/0.9032, allocations: 13.63 MB / 0.5831 GB, free: 116.9 MB / 446.1 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.07114/0.9744, allocations: 68.05 MB / 0.6496 GB, free: 46.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01754/0.9919, allocations: 7.913 MB / 0.6573 GB, free: 38.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004658/0.9966, allocations: 4.506 MB / 0.6617 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0194/1.016, allocations: 12.4 MB / 0.6738 GB, free: 21.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/1.016, allocations: 72.48 kB / 0.6739 GB, free: 21.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 7.284e-06/1.016, allocations: 0 / 0.6739 GB, free: 21.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.3542/1.37, allocations: 50.12 MB / 0.7228 GB, free: 135 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/1.371, allocations: 400.3 kB / 0.7232 GB, free: 134.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01103/1.382, allocations: 7.115 MB / 0.7301 GB, free: 130.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001056/1.383, allocations: 77.45 kB / 0.7302 GB, free: 130.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002952/1.386, allocations: 5.025 MB / 0.7351 GB, free: 125.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00165/1.387, allocations: 1.256 MB / 0.7364 GB, free: 124.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002323/1.39, allocations: 1.871 MB / 0.7382 GB, free: 122.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.913e-05/1.39, allocations: 301.1 kB / 0.7385 GB, free: 122.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00487/1.395, allocations: 4.547 MB / 0.7429 GB, free: 117.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006423/1.401, allocations: 9.258 MB / 0.7519 GB, free: 106.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/1.414, allocations: 14.54 MB / 0.7661 GB, free: 89.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.799e-05/1.414, allocations: 44 kB / 0.7662 GB, free: 89.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03383/1.448, allocations: 19.76 MB / 0.7855 GB, free: 69.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.63e-05/1.448, allocations: 72 kB / 0.7856 GB, free: 69.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001325/1.448, allocations: 160 kB / 0.7857 GB, free: 69.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01857/1.467, allocations: 7.061 MB / 0.7926 GB, free: 62.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005504/1.472, allocations: 1.922 MB / 0.7945 GB, free: 60.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03812/1.511, allocations: 33.16 MB / 0.8269 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009683/1.52, allocations: 0.5812 MB / 0.8274 GB, free: 26.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002176/1.522, allocations: 0.4917 MB / 0.8279 GB, free: 26.02 MB / 446.1 MB 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 {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005393/1.528, allocations: 3.472 MB / 0.8313 GB, free: 22.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001361/1.529, allocations: 0.6325 MB / 0.8319 GB, free: 21.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02455/1.554, allocations: 13.32 MB / 0.8449 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-05/1.554, allocations: 36 kB / 0.8449 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.418e-05/1.554, allocations: 20 kB / 0.845 GB, free: 8.445 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.408e-05/1.554, allocations: 15.94 kB / 0.845 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2522/1.806, allocations: 26.7 MB / 0.8711 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.395e-05/1.806, allocations: 7.469 kB / 0.8711 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002007/1.808, allocations: 421.7 kB / 0.8715 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01953/1.828, allocations: 6.667 MB / 0.878 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009514/1.829, allocations: 69.34 kB / 0.878 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03701/1.866, allocations: 31.89 MB / 0.9092 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/1.866, allocations: 11.94 kB / 0.9092 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03007/1.896, allocations: 18.77 MB / 0.9275 GB, free: 99.93 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002306/1.898, allocations: 0.6891 MB / 0.9282 GB, free: 99.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002265/1.901, allocations: 60 kB / 0.9283 GB, free: 99.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004105/1.905, allocations: 311 kB / 0.9286 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001304/1.906, allocations: 246.1 kB / 0.9288 GB, free: 98.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004763/1.907, allocations: 84 kB / 0.9289 GB, free: 98.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00772/1.914, allocations: 4.559 MB / 0.9333 GB, free: 94.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.61e-07/1.914, allocations: 0 / 0.9333 GB, free: 94.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01066/1.925, allocations: 2.136 MB / 0.9354 GB, free: 92.23 MB / 462.1 MB 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.00106/1.926, allocations: 218.9 kB / 0.9356 GB, free: 92.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01651/1.943, allocations: 11.57 MB / 0.9469 GB, free: 80.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.759e-06/1.943, allocations: 1.062 kB / 0.9469 GB, free: 80.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008313/1.951, allocations: 4.997 MB / 0.9518 GB, free: 75.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007901/1.959, allocations: 0.9369 MB / 0.9527 GB, free: 74.56 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03422/1.993, allocations: 23.28 MB / 0.9755 GB, free: 51.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007689/2.001, allocations: 5.532 MB / 0.9809 GB, free: 45.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006146/2.007, allocations: 2.601 MB / 0.9834 GB, free: 43.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/2.008, allocations: 391.4 kB / 0.9838 GB, free: 42.67 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/2.008, allocations: 0 / 0.9838 GB, free: 42.67 MB / 462.1 MB Notification: Performance of Templates: time 0.3321/2.34, allocations: 95.14 MB / 1.077 GB, free: 108.2 MB / 462.1 MB 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches