Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001871/0.001871, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001035/0.001035, allocations: 105.4 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001027, allocations: 47.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2147, allocations: 50.45 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.07759/0.2924, allocations: 103.3 MB / 0.4984 GB, free: 4.094 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2801/0.5725, allocations: 19.95 MB / 0.5179 GB, free: 15.98 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01739/0.5899, allocations: 478.7 kB / 0.5184 GB, free: 15.98 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01022/0.6002, allocations: 5.832 MB / 0.5241 GB, free: 14.88 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007821/0.608, allocations: 3.153 MB / 0.5271 GB, free: 14.2 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003281/0.6113, allocations: 1.457 MB / 0.5286 GB, free: 13.69 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.02031/0.6317, allocations: 17.7 MB / 0.5459 GB, free: 6.531 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01079/0.6425, allocations: 7.489 MB / 0.5532 GB, free: 440 kB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006069/0.6486, allocations: 3.21 MB / 0.5563 GB, free: 13.53 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007218/0.6559, allocations: 5.067 MB / 0.5613 GB, free: 8.727 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002049/0.6579, allocations: 484 kB / 0.5617 GB, free: 8.254 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004008/0.662, allocations: 1.493 MB / 0.5632 GB, free: 6.809 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004847/0.6668, allocations: 4.006 MB / 0.5671 GB, free: 2.812 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006778/0.6736, allocations: 4.221 MB / 0.5712 GB, free: 14.58 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01356/0.6872, allocations: 13.12 MB / 0.584 GB, free: 1.762 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.6872, allocations: 0 / 0.584 GB, free: 1.762 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6872, allocations: 4 kB / 0.584 GB, free: 1.758 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000389/0.6876, allocations: 0 / 0.584 GB, free: 1.758 MB / 426.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.02141/0.7091, allocations: 9.679 MB / 0.5935 GB, free: 8.137 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.7091, allocations: 8.031 kB / 0.5935 GB, free: 8.129 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04412/0.7532, allocations: 5.247 MB / 0.5986 GB, free: 2.867 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01835/0.7716, allocations: 7.717 MB / 0.6061 GB, free: 11.17 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002996/0.772, allocations: 422.3 kB / 0.6065 GB, free: 10.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/0.7735, allocations: 0.5801 MB / 0.6071 GB, free: 10.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02564/0.7991, allocations: 16.56 MB / 0.6233 GB, free: 8.805 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002089/0.7994, allocations: 99.11 kB / 0.6234 GB, free: 8.707 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006062/0.8, allocations: 268.9 kB / 0.6236 GB, free: 8.492 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00406/0.804, allocations: 2.768 MB / 0.6263 GB, free: 5.734 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02605/0.8301, allocations: 13.63 MB / 0.6396 GB, free: 8.094 MB / 490.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.426/1.256, allocations: 68.04 MB / 0.7061 GB, free: 195.9 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01785/1.274, allocations: 7.911 MB / 0.7138 GB, free: 195.2 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004473/1.279, allocations: 4.518 MB / 0.7182 GB, free: 193.6 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01768/1.296, allocations: 12.41 MB / 0.7303 GB, free: 187.7 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/1.296, allocations: 74.64 kB / 0.7304 GB, free: 187.6 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=280): time 5.15e-06/1.296, allocations: 0 / 0.7304 GB, free: 187.6 MB / 0.5262 GB Notification: Performance of matching and sorting (n=339): time 0.1601/1.456, allocations: 50.12 MB / 0.7794 GB, free: 142.1 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/1.457, allocations: 405.6 kB / 0.7797 GB, free: 141.6 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008063/1.465, allocations: 7.115 MB / 0.7867 GB, free: 134.5 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0007194/1.465, allocations: 77.7 kB / 0.7868 GB, free: 134.4 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002071/1.467, allocations: 5.026 MB / 0.7917 GB, free: 129.4 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001027/1.469, allocations: 1.262 MB / 0.7929 GB, free: 128.1 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002146/1.471, allocations: 1.856 MB / 0.7947 GB, free: 126.2 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 3.497e-05/1.471, allocations: 305.1 kB / 0.795 GB, free: 125.9 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004889/1.476, allocations: 4.543 MB / 0.7994 GB, free: 121.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006715/1.482, allocations: 9.265 MB / 0.8085 GB, free: 109.9 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01345/1.496, allocations: 14.55 MB / 0.8227 GB, free: 93.22 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001045/1.496, allocations: 48 kB / 0.8227 GB, free: 93.17 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03428/1.53, allocations: 19.75 MB / 0.842 GB, free: 73.37 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 7.185e-05/1.53, allocations: 76 kB / 0.8421 GB, free: 73.29 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/1.53, allocations: 160 kB / 0.8423 GB, free: 73.14 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01877/1.549, allocations: 7.067 MB / 0.8492 GB, free: 66.05 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005575/1.555, allocations: 1.922 MB / 0.851 GB, free: 64.13 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03773/1.593, allocations: 33.13 MB / 0.8834 GB, free: 30.59 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007722/1.6, allocations: 0.5851 MB / 0.884 GB, free: 30 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/1.602, allocations: 0.4996 MB / 0.8845 GB, free: 29.51 MB / 0.5262 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 {(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.004292/1.606, allocations: 3.467 MB / 0.8878 GB, free: 26.03 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001061/1.607, allocations: 0.6403 MB / 0.8885 GB, free: 25.38 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02573/1.633, allocations: 13.32 MB / 0.9015 GB, free: 11.98 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.567e-05/1.633, allocations: 35.98 kB / 0.9015 GB, free: 11.95 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.948e-05/1.633, allocations: 20 kB / 0.9015 GB, free: 11.93 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-05/1.633, allocations: 15.95 kB / 0.9015 GB, free: 11.91 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2398/1.873, allocations: 26.7 MB / 0.9276 GB, free: 211.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.172e-05/1.873, allocations: 7.938 kB / 0.9276 GB, free: 211.1 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001897/1.875, allocations: 428.4 kB / 0.928 GB, free: 211 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01917/1.894, allocations: 6.662 MB / 0.9345 GB, free: 209.9 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006723/1.895, allocations: 58.75 kB / 0.9346 GB, free: 209.9 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03647/1.931, allocations: 31.91 MB / 0.9657 GB, free: 187.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/1.931, allocations: 8 kB / 0.9658 GB, free: 187.7 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5286/2.46, allocations: 176.7 MB / 1.138 GB, free: 191.7 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/2.461, allocations: 0.685 MB / 1.139 GB, free: 191.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009236/2.462, allocations: 65.66 kB / 1.139 GB, free: 191.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003246/2.466, allocations: 304.8 kB / 1.139 GB, free: 191.6 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008483/2.466, allocations: 244.7 kB / 1.14 GB, free: 191.6 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002783/2.467, allocations: 93.98 kB / 1.14 GB, free: 191.6 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.006018/2.473, allocations: 4.554 MB / 1.144 GB, free: 191.4 MB / 0.5262 GB Notification: Performance of sort global known variables: time 3.2e-07/2.473, allocations: 0 / 1.144 GB, free: 191.4 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01236/2.485, allocations: 3.032 MB / 1.147 GB, free: 191.4 MB / 0.5262 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.000837/2.486, allocations: 212.2 kB / 1.147 GB, free: 191.3 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01636/2.502, allocations: 11.59 MB / 1.159 GB, free: 187.9 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/2.502, allocations: 0 / 1.159 GB, free: 187.9 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.008147/2.511, allocations: 5 MB / 1.163 GB, free: 185.8 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007186/2.518, allocations: 0.9265 MB / 1.164 GB, free: 185.4 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04169/2.56, allocations: 26.8 MB / 1.191 GB, free: 167.5 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00832/2.568, allocations: 5.669 MB / 1.196 GB, free: 163.3 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.006725/2.575, allocations: 2.646 MB / 1.199 GB, free: 161.7 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/2.576, allocations: 398.9 kB / 1.199 GB, free: 161.3 MB / 0.5262 GB Notification: Performance of SimCode: time 1.052e-06/2.576, allocations: 4 kB / 1.199 GB, free: 161.3 MB / 0.5262 GB Notification: Performance of Templates: time 0.1652/2.741, allocations: 135.3 MB / 1.331 GB, free: 29.18 MB / 0.5262 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@2/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