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.0009905/0.0009903, allocations: 103.3 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 202.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002529/0.0002531, allocations: 4 kB / 306.6 MB, free: 1.402 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09104, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2552/0.3463, allocations: 95.4 MB / 453.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.06931/0.4157, allocations: 21.45 MB / 474.9 MB, free: 6.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02363/0.4394, allocations: 0.4948 MB / 475.4 MB, free: 6.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02077/0.4602, allocations: 4.806 MB / 480.2 MB, free: 1.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.05139/0.5116, allocations: 13.71 MB / 493.9 MB, free: 3.484 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0059/0.5175, allocations: 1.471 MB / 495.4 MB, free: 2.012 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.385/0.9026, allocations: 142.7 MB / 0.6231 GB, free: 8.383 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01226/0.9149, allocations: 9.199 MB / 0.6321 GB, free: 1.852 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005204/0.9202, allocations: 2.531 MB / 0.6346 GB, free: 220 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005456/0.9256, allocations: 3.253 MB / 0.6378 GB, free: 13.89 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001932/0.9276, allocations: 288 kB / 0.638 GB, free: 13.61 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003769/0.9314, allocations: 1.105 MB / 0.6391 GB, free: 12.69 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005436/0.9369, allocations: 3.525 MB / 0.6426 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003354/0.9402, allocations: 1.65 MB / 0.6442 GB, free: 9.512 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01247/0.9527, allocations: 11.6 MB / 0.6555 GB, free: 15.44 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.9528, allocations: 0 / 0.6555 GB, free: 15.44 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.9528, allocations: 0 / 0.6555 GB, free: 15.44 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004519/0.9532, allocations: 0 / 0.6555 GB, free: 15.44 MB / 478.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.02437/0.9776, allocations: 9.155 MB / 0.6644 GB, free: 7.023 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.9777, allocations: 12.03 kB / 0.6644 GB, free: 7.012 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3023/1.28, allocations: 29.82 MB / 0.6936 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02343/1.303, allocations: 8.363 MB / 0.7017 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008736/1.304, allocations: 445.8 kB / 0.7022 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003666/1.308, allocations: 0.6146 MB / 0.7028 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03382/1.342, allocations: 16.98 MB / 0.7193 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002872/1.342, allocations: 96.36 kB / 0.7194 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008616/1.343, allocations: 285.3 kB / 0.7197 GB, free: 7.039 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00429/1.347, allocations: 2.857 MB / 0.7225 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3636/1.711, allocations: 13.53 MB / 0.7357 GB, free: 212.3 MB / 0.5138 GB 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.08912/1.8, allocations: 68.74 MB / 0.8028 GB, free: 160.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01877/1.819, allocations: 7.991 MB / 0.8106 GB, free: 152.6 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01837/1.837, allocations: 12.2 MB / 0.8225 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/1.838, allocations: 72.34 kB / 0.8226 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=293): time 5.881e-06/1.838, allocations: 3.812 kB / 0.8226 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=359): time 0.1755/2.013, allocations: 51.05 MB / 0.8725 GB, free: 89.37 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/2.013, allocations: 406.2 kB / 0.8729 GB, free: 88.88 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/2.023, allocations: 7.997 MB / 0.8807 GB, free: 80.93 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009305/2.024, allocations: 81.7 kB / 0.8808 GB, free: 80.84 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003132/2.028, allocations: 5.342 MB / 0.886 GB, free: 75.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001645/2.029, allocations: 1.322 MB / 0.8873 GB, free: 74.19 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000525/2.03, allocations: 168 kB / 0.8874 GB, free: 74.02 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0003187/2.03, allocations: 0.6616 MB / 0.8881 GB, free: 73.35 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004877/2.035, allocations: 4.092 MB / 0.8921 GB, free: 69.25 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00727/2.042, allocations: 8.788 MB / 0.9006 GB, free: 58.13 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008114/2.05, allocations: 5.832 MB / 0.9063 GB, free: 52.29 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001222/2.051, allocations: 48 kB / 0.9064 GB, free: 52.24 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03563/2.086, allocations: 17.8 MB / 0.9238 GB, free: 34.38 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.722e-05/2.086, allocations: 79.95 kB / 0.9238 GB, free: 34.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/2.086, allocations: 164 kB / 0.924 GB, free: 34.14 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01716/2.104, allocations: 6.097 MB / 0.9299 GB, free: 28.03 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005663/2.109, allocations: 1.829 MB / 0.9317 GB, free: 26.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2518/2.361, allocations: 31.85 MB / 0.9628 GB, free: 187.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008934/2.37, allocations: 0.5461 MB / 0.9634 GB, free: 187.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002777/2.373, allocations: 488.3 kB / 0.9638 GB, free: 187.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * 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 (967): * Single equations (assignments): 961 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,51.6%) 96,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.009449/2.382, allocations: 3.583 MB / 0.9673 GB, free: 186.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001864/2.384, allocations: 0.676 MB / 0.968 GB, free: 186.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02657/2.411, allocations: 12.06 MB / 0.9798 GB, free: 183.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.425e-05/2.411, allocations: 35.72 kB / 0.9798 GB, free: 183.7 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-05/2.411, allocations: 27.33 kB / 0.9798 GB, free: 183.7 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.386e-05/2.411, allocations: 21.75 kB / 0.9799 GB, free: 183.7 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04736/2.459, allocations: 26.05 MB / 1.005 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.782e-05/2.459, allocations: 3.594 kB / 1.005 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002264/2.461, allocations: 467 kB / 1.006 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0166/2.478, allocations: 5.741 MB / 1.011 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008586/2.478, allocations: 63.27 kB / 1.011 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03488/2.513, allocations: 30.73 MB / 1.041 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/2.513, allocations: 11.98 kB / 1.041 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02896/2.542, allocations: 18.44 MB / 1.059 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002535/2.545, allocations: 0.7362 MB / 1.06 GB, free: 122.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002097/2.547, allocations: 68.56 kB / 1.06 GB, free: 122 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004388/2.551, allocations: 291.2 kB / 1.061 GB, free: 121.7 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/2.553, allocations: 254.5 kB / 1.061 GB, free: 121.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002754/2.553, allocations: 95.98 kB / 1.061 GB, free: 121.4 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008557/2.561, allocations: 5.253 MB / 1.066 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.044e-06/2.561, allocations: 3.969 kB / 1.066 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01011/2.572, allocations: 2.077 MB / 1.068 GB, free: 114.1 MB / 0.5138 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001045/2.573, allocations: 228.3 kB / 1.068 GB, free: 113.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01713/2.59, allocations: 10.85 MB / 1.079 GB, free: 103 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.308e-05/2.59, allocations: 7.812 kB / 1.079 GB, free: 103 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.008174/2.598, allocations: 4.934 MB / 1.084 GB, free: 98.07 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006501/2.605, allocations: 1.008 MB / 1.085 GB, free: 97.09 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03852/2.643, allocations: 22.59 MB / 1.107 GB, free: 74.66 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01006/2.653, allocations: 5.9 MB / 1.112 GB, free: 68.72 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007174/2.661, allocations: 2.731 MB / 1.115 GB, free: 65.98 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/2.662, allocations: 415.4 kB / 1.116 GB, free: 65.58 MB / 0.5138 GB Notification: Performance of SimCode: time 1.102e-06/2.662, allocations: 1.859 kB / 1.116 GB, free: 65.58 MB / 0.5138 GB Notification: Performance of Templates: time 0.3497/3.012, allocations: 92.34 MB / 1.206 GB, free: 164.7 MB / 0.5138 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches