Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001165, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001237/0.001237, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 60.03 kB / 306.9 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.0991, allocations: 50.53 MB / 357.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2741/0.3732, allocations: 113.5 MB / 470.9 MB, free: 9.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05126/0.4245, allocations: 22.04 MB / 492.9 MB, free: 3.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02408/0.4486, allocations: 0.5065 MB / 493.5 MB, free: 3.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01447/0.4632, allocations: 7.956 MB / 0.4897 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009902/0.4732, allocations: 3.371 MB / 0.4929 GB, free: 8.008 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004766/0.478, allocations: 1.846 MB / 0.4947 GB, free: 6.164 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02251/0.5005, allocations: 19.11 MB / 0.5134 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01376/0.5143, allocations: 10.13 MB / 0.5233 GB, free: 8.805 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0069/0.5212, allocations: 3.734 MB / 0.527 GB, free: 5.059 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2667/0.788, allocations: 5.974 MB / 0.5328 GB, free: 18.01 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003802/0.7918, allocations: 0.6297 MB / 0.5334 GB, free: 18.01 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006994/0.7988, allocations: 1.861 MB / 0.5352 GB, free: 18.01 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008605/0.8075, allocations: 4.688 MB / 0.5398 GB, free: 18.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01571/0.8232, allocations: 5.016 MB / 0.5447 GB, free: 17.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01803/0.8413, allocations: 13.94 MB / 0.5583 GB, free: 16.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.946e-06/0.8414, allocations: 0 / 0.5583 GB, free: 16.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.8414, allocations: 0 / 0.5583 GB, free: 16.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007127/0.8421, allocations: 0 / 0.5583 GB, free: 16.64 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: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.04029/0.8824, allocations: 11.18 MB / 0.5692 GB, free: 12.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.8825, allocations: 8.188 kB / 0.5692 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04276/0.9252, allocations: 5.42 MB / 0.5745 GB, free: 9.902 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02221/0.9475, allocations: 8.678 MB / 0.583 GB, free: 7.152 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004896/0.948, allocations: 0.5239 MB / 0.5835 GB, free: 7.137 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004887/0.9529, allocations: 0.7341 MB / 0.5842 GB, free: 7.113 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04338/0.9963, allocations: 19.51 MB / 0.6033 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004021/0.9967, allocations: 96.55 kB / 0.6034 GB, free: 14.22 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002189/0.9989, allocations: 326.6 kB / 0.6037 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004242/1.003, allocations: 2.81 MB / 0.6064 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03649/1.04, allocations: 16.25 MB / 0.6223 GB, free: 11.41 MB / 478.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.1087/1.148, allocations: 74.43 MB / 0.695 GB, free: 15.83 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02274/1.171, allocations: 8.474 MB / 0.7033 GB, free: 7.23 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006546/1.178, allocations: 4.771 MB / 0.7079 GB, free: 2.438 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02595/1.204, allocations: 15.48 MB / 0.723 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/1.204, allocations: 79 kB / 0.7231 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=320): time 5.621e-06/1.204, allocations: 0 / 0.7231 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of matching and sorting (n=426): time 0.3685/1.572, allocations: 52.28 MB / 0.7742 GB, free: 237.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.328e-05/1.572, allocations: 402.8 kB / 0.7746 GB, free: 236.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01009/1.583, allocations: 7.553 MB / 0.7819 GB, free: 230.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001212/1.584, allocations: 90.72 kB / 0.782 GB, free: 230.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003052/1.587, allocations: 5.602 MB / 0.7875 GB, free: 225 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001779/1.589, allocations: 1.558 MB / 0.789 GB, free: 223.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002808/1.591, allocations: 2.081 MB / 0.791 GB, free: 221.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.386e-05/1.592, allocations: 301.1 kB / 0.7913 GB, free: 221.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005887/1.597, allocations: 5.217 MB / 0.7964 GB, free: 215.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008054/1.606, allocations: 10.28 MB / 0.8065 GB, free: 203.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01538/1.621, allocations: 16.3 MB / 0.8224 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001118/1.621, allocations: 48 kB / 0.8224 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.04096/1.662, allocations: 21.25 MB / 0.8432 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002264/1.662, allocations: 79.94 kB / 0.8432 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002514/1.663, allocations: 172.9 kB / 0.8434 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01908/1.682, allocations: 6.649 MB / 0.8499 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006837/1.688, allocations: 2.152 MB / 0.852 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04286/1.731, allocations: 32.79 MB / 0.884 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008239/1.74, allocations: 0.6197 MB / 0.8846 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001762/1.741, allocations: 0.5357 MB / 0.8852 GB, free: 120 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1176): * Single equations (assignments): 1171 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006859/1.748, allocations: 4.092 MB / 0.8892 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001529/1.75, allocations: 0.6943 MB / 0.8898 GB, free: 115.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02609/1.776, allocations: 14.3 MB / 0.9038 GB, free: 100.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.078e-05/1.776, allocations: 44 kB / 0.9038 GB, free: 100.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.473e-05/1.776, allocations: 24 kB / 0.9039 GB, free: 100.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-05/1.776, allocations: 23.86 kB / 0.9039 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05125/1.827, allocations: 28.24 MB / 0.9315 GB, free: 72.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.555e-05/1.828, allocations: 8.875 kB / 0.9315 GB, free: 72.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002842/1.83, allocations: 0.6006 MB / 0.9321 GB, free: 71.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01865/1.849, allocations: 6.319 MB / 0.9382 GB, free: 65.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001248/1.85, allocations: 76 kB / 0.9383 GB, free: 65.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03547/1.886, allocations: 29.73 MB / 0.9673 GB, free: 35.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.886, allocations: 15.94 kB / 0.9674 GB, free: 35.38 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2333/2.119, allocations: 20.92 MB / 0.9878 GB, free: 225.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002351/2.122, allocations: 0.7324 MB / 0.9885 GB, free: 225.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002783/2.124, allocations: 77.16 kB / 0.9886 GB, free: 225.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005612/2.13, allocations: 333.3 kB / 0.9889 GB, free: 225.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001891/2.132, allocations: 303.9 kB / 0.9892 GB, free: 225.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005826/2.133, allocations: 111.1 kB / 0.9893 GB, free: 225.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.01054/2.143, allocations: 4.828 MB / 0.994 GB, free: 224.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.02e-07/2.143, allocations: 3.875 kB / 0.994 GB, free: 224.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01254/2.156, allocations: 2.409 MB / 0.9964 GB, free: 224.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (294): * Single equations (assignments): 290 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0014/2.157, allocations: 278.6 kB / 0.9966 GB, free: 224.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01877/2.176, allocations: 12.69 MB / 1.009 GB, free: 219.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/2.176, allocations: 0 / 1.009 GB, free: 219.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007995/2.184, allocations: 5.35 MB / 1.014 GB, free: 217.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008437/2.192, allocations: 1.008 MB / 1.015 GB, free: 216.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04264/2.235, allocations: 27.52 MB / 1.042 GB, free: 202.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008857/2.244, allocations: 6.295 MB / 1.048 GB, free: 197.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002117/2.246, allocations: 497.7 kB / 1.049 GB, free: 197.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.011e-06/2.246, allocations: 0 / 1.049 GB, free: 197.4 MB / 0.5606 GB Notification: Performance of Templates: time 0.1901/2.436, allocations: 163.7 MB / 1.209 GB, free: 37.85 MB / 0.5606 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches