Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001492/0.001492, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001931/0.001931, 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.323/1.323, allocations: 227.4 MB / 247 MB, free: 9.023 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.8 kB / 306.9 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09824, allocations: 50.53 MB / 357.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.269/0.3673, allocations: 110.7 MB / 468.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05269/0.4201, allocations: 20.94 MB / 489 MB, free: 7.711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02641/0.4465, allocations: 0.5065 MB / 489.5 MB, free: 7.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01199/0.4586, allocations: 6.332 MB / 495.9 MB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009462/0.4681, allocations: 3.231 MB / 499.1 MB, free: 13.62 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004024/0.4721, allocations: 1.529 MB / 0.4889 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02131/0.4935, allocations: 18.07 MB / 0.5065 GB, free: 9.988 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0115/0.505, allocations: 7.887 MB / 0.5142 GB, free: 2.027 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007026/0.5121, allocations: 3.376 MB / 0.5175 GB, free: 14.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008115/0.5202, allocations: 5.282 MB / 0.5227 GB, free: 9.344 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002618/0.5229, allocations: 0.5 MB / 0.5232 GB, free: 8.844 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00436/0.5272, allocations: 1.522 MB / 0.5247 GB, free: 7.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005809/0.5331, allocations: 4.146 MB / 0.5287 GB, free: 3.164 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2481/0.7812, allocations: 4.381 MB / 0.533 GB, free: 27.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01535/0.7966, allocations: 11.18 MB / 0.5439 GB, free: 26.83 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.193e-05/0.7967, allocations: 2.938 kB / 0.5439 GB, free: 26.83 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.7967, allocations: 0 / 0.5439 GB, free: 26.83 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006925/0.7974, allocations: 2.75 kB / 0.5439 GB, free: 26.83 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03992/0.8373, allocations: 10.01 MB / 0.5537 GB, free: 23.24 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.8374, allocations: 9.531 kB / 0.5537 GB, free: 23.24 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04324/0.8806, allocations: 5.277 MB / 0.5589 GB, free: 22.7 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02193/0.9026, allocations: 7.892 MB / 0.5666 GB, free: 21.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005607/0.9032, allocations: 448.7 kB / 0.567 GB, free: 21.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004463/0.9077, allocations: 0.6072 MB / 0.5676 GB, free: 21.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04041/0.9481, allocations: 17.14 MB / 0.5843 GB, free: 16.41 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004736/0.9486, allocations: 99.94 kB / 0.5844 GB, free: 16.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002934/0.9515, allocations: 274.3 kB / 0.5847 GB, free: 16.39 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00433/0.9559, allocations: 2.858 MB / 0.5875 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03162/0.9875, allocations: 14.04 MB / 0.6012 GB, free: 5.094 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.1172/1.105, allocations: 69.99 MB / 0.6695 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02194/1.127, allocations: 8.209 MB / 0.6775 GB, free: 5.617 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006735/1.134, allocations: 4.626 MB / 0.6821 GB, free: 0.9844 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02498/1.159, allocations: 12.78 MB / 0.6945 GB, free: 4.09 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.639e-05/1.159, allocations: 66.91 kB / 0.6946 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=293): time 6.973e-06/1.159, allocations: 0 / 0.6946 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359): time 0.4083/1.567, allocations: 52.39 MB / 0.7458 GB, free: 256.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/1.567, allocations: 401.7 kB / 0.7462 GB, free: 256.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01168/1.579, allocations: 7.265 MB / 0.7532 GB, free: 253.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001199/1.58, allocations: 81.55 kB / 0.7533 GB, free: 253.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00332/1.583, allocations: 5.2 MB / 0.7584 GB, free: 249.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001992/1.585, allocations: 1.335 MB / 0.7597 GB, free: 248.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002886/1.588, allocations: 1.906 MB / 0.7616 GB, free: 247.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.641e-05/1.588, allocations: 309.1 kB / 0.7619 GB, free: 247.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005762/1.594, allocations: 4.709 MB / 0.7665 GB, free: 245.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007673/1.602, allocations: 9.537 MB / 0.7758 GB, free: 237.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01513/1.617, allocations: 15.01 MB / 0.7904 GB, free: 222.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001205/1.617, allocations: 48 kB / 0.7905 GB, free: 222.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.03886/1.656, allocations: 20.45 MB / 0.8104 GB, free: 203.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002083/1.656, allocations: 82.86 kB / 0.8105 GB, free: 203.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002384/1.656, allocations: 168 kB / 0.8107 GB, free: 203.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02065/1.677, allocations: 7.327 MB / 0.8178 GB, free: 195.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006647/1.684, allocations: 2.001 MB / 0.8198 GB, free: 193.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04335/1.727, allocations: 34.3 MB / 0.8533 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009363/1.737, allocations: 0.5968 MB / 0.8539 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002237/1.739, allocations: 0.5039 MB / 0.8544 GB, free: 158 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (1081): * Single equations (assignments): 1075 * 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,96,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.009244/1.748, allocations: 3.604 MB / 0.8579 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002433/1.751, allocations: 0.6517 MB / 0.8585 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03082/1.781, allocations: 13.93 MB / 0.8721 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.999e-05/1.781, allocations: 39.98 kB / 0.8722 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.877e-05/1.782, allocations: 23.5 kB / 0.8722 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.073e-05/1.782, allocations: 23.88 kB / 0.8722 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05769/1.839, allocations: 27.83 MB / 0.8994 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.447e-05/1.839, allocations: 4 kB / 0.8994 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002221/1.842, allocations: 468 kB / 0.8998 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02024/1.862, allocations: 6.99 MB / 0.9067 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001121/1.863, allocations: 68.73 kB / 0.9067 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04228/1.905, allocations: 33.18 MB / 0.9391 GB, free: 70.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/1.905, allocations: 11.94 kB / 0.9391 GB, free: 70.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03603/1.941, allocations: 19.69 MB / 0.9584 GB, free: 50.36 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002416/1.944, allocations: 0.7034 MB / 0.9591 GB, free: 49.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002922/1.947, allocations: 67.98 kB / 0.9591 GB, free: 49.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005544/1.952, allocations: 323.6 kB / 0.9594 GB, free: 49.24 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001763/1.954, allocations: 258.7 kB / 0.9597 GB, free: 48.99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000825/1.955, allocations: 95.5 kB / 0.9598 GB, free: 48.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.009471/1.964, allocations: 4.649 MB / 0.9643 GB, free: 44.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.01e-07/1.965, allocations: 3.938 kB / 0.9643 GB, free: 44.28 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01406/1.979, allocations: 2.204 MB / 0.9665 GB, free: 42.08 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * 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,90,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.00151/1.98, allocations: 223.4 kB / 0.9667 GB, free: 41.86 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01899/1.999, allocations: 12.02 MB / 0.9784 GB, free: 29.82 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.999, allocations: 0 / 0.9784 GB, free: 29.82 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009042/2.008, allocations: 5.261 MB / 0.9836 GB, free: 24.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01026/2.019, allocations: 0.9466 MB / 0.9845 GB, free: 23.56 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2346/2.253, allocations: 24.76 MB / 1.009 GB, free: 234 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01061/2.264, allocations: 5.652 MB / 1.014 GB, free: 233.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002081/2.266, allocations: 461.2 kB / 1.015 GB, free: 233.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/2.266, allocations: 0 / 1.015 GB, free: 233.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.2486/2.515, allocations: 214.2 MB / 1.224 GB, free: 35.93 MB / 0.5606 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches