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.001347/0.001347, allocations: 104.9 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001501, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.3 MB, free: 10.87 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 62.02 kB / 306.3 MB, free: 1.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09505/0.09636, allocations: 50.53 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2577/0.3541, allocations: 110.6 MB / 467.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04971/0.4038, allocations: 20.94 MB / 488.4 MB, free: 7.902 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02243/0.4263, allocations: 0.5026 MB / 488.9 MB, free: 7.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01159/0.438, allocations: 6.335 MB / 495.2 MB, free: 1.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008183/0.4462, allocations: 3.228 MB / 498.4 MB, free: 13.81 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003631/0.4498, allocations: 1.529 MB / 500 MB, free: 12.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02195/0.4718, allocations: 18.07 MB / 0.5059 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01201/0.4838, allocations: 7.883 MB / 0.5136 GB, free: 2.219 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006769/0.4906, allocations: 3.368 MB / 0.5169 GB, free: 14.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007693/0.4984, allocations: 5.289 MB / 0.5221 GB, free: 9.535 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00238/0.5008, allocations: 0.4961 MB / 0.5225 GB, free: 9.039 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004705/0.5055, allocations: 1.525 MB / 0.524 GB, free: 7.512 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006374/0.5119, allocations: 4.149 MB / 0.5281 GB, free: 3.352 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2174/0.7293, allocations: 4.388 MB / 0.5324 GB, free: 27.58 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01785/0.7472, allocations: 13.54 MB / 0.5456 GB, free: 26.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.7473, allocations: 4.562 kB / 0.5456 GB, free: 26.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.7473, allocations: 3.312 kB / 0.5456 GB, free: 26.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005166/0.7478, allocations: 0 / 0.5456 GB, free: 26.95 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.03779/0.7856, allocations: 10.01 MB / 0.5554 GB, free: 23.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.7857, allocations: 11.41 kB / 0.5554 GB, free: 23.36 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04369/0.8294, allocations: 5.277 MB / 0.5605 GB, free: 22.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01968/0.8491, allocations: 7.899 MB / 0.5683 GB, free: 21.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/0.8494, allocations: 445.8 kB / 0.5687 GB, free: 21.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002278/0.8517, allocations: 0.6136 MB / 0.5693 GB, free: 21.69 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02881/0.8805, allocations: 17.13 MB / 0.586 GB, free: 16.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002332/0.8808, allocations: 100.7 kB / 0.5861 GB, free: 16.28 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007584/0.8816, allocations: 278.7 kB / 0.5864 GB, free: 16.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003731/0.8853, allocations: 2.857 MB / 0.5892 GB, free: 15.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02627/0.9116, allocations: 14.03 MB / 0.6029 GB, free: 4.23 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.09614/1.008, allocations: 69.99 MB / 0.6712 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02271/1.031, allocations: 8.208 MB / 0.6792 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006889/1.037, allocations: 4.625 MB / 0.6838 GB, free: 92 kB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02513/1.063, allocations: 12.77 MB / 0.6962 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.957e-05/1.063, allocations: 71.66 kB / 0.6963 GB, free: 3.105 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=293): time 5.371e-06/1.063, allocations: 0 / 0.6963 GB, free: 3.105 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359): time 0.395/1.458, allocations: 52.4 MB / 0.7475 GB, free: 256 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/1.458, allocations: 400.8 kB / 0.7478 GB, free: 255.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00948/1.467, allocations: 7.264 MB / 0.7549 GB, free: 253 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008634/1.468, allocations: 80.17 kB / 0.755 GB, free: 253 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002715/1.471, allocations: 5.205 MB / 0.7601 GB, free: 249 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0015/1.472, allocations: 1.332 MB / 0.7614 GB, free: 248 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002641/1.475, allocations: 1.911 MB / 0.7633 GB, free: 247.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.797e-05/1.475, allocations: 301.1 kB / 0.7635 GB, free: 246.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005771/1.481, allocations: 4.718 MB / 0.7682 GB, free: 245.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008073/1.489, allocations: 9.532 MB / 0.7775 GB, free: 237 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01607/1.505, allocations: 15.01 MB / 0.7921 GB, free: 221.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/1.505, allocations: 48 kB / 0.7922 GB, free: 221.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.03649/1.542, allocations: 20.45 MB / 0.8121 GB, free: 202.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.994e-05/1.542, allocations: 80.03 kB / 0.8122 GB, free: 202.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/1.542, allocations: 164 kB / 0.8124 GB, free: 202.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02014/1.562, allocations: 7.331 MB / 0.8195 GB, free: 195.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00661/1.569, allocations: 2 MB / 0.8215 GB, free: 193.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04062/1.609, allocations: 34.31 MB / 0.855 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01033/1.62, allocations: 0.5939 MB / 0.8556 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003564/1.623, allocations: 0.5053 MB / 0.8561 GB, free: 157.3 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.0173/1.641, allocations: 3.599 MB / 0.8596 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00315/1.644, allocations: 0.6517 MB / 0.8602 GB, free: 153 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03862/1.683, allocations: 13.92 MB / 0.8738 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-05/1.683, allocations: 36 kB / 0.8738 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.878e-05/1.683, allocations: 22.19 kB / 0.8739 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.049e-05/1.683, allocations: 27.88 kB / 0.8739 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08382/1.767, allocations: 27.84 MB / 0.9011 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.506e-05/1.767, allocations: 4.688 kB / 0.9011 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002498/1.769, allocations: 467.3 kB / 0.9015 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02115/1.79, allocations: 6.997 MB / 0.9084 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001331/1.792, allocations: 64 kB / 0.9084 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04425/1.836, allocations: 33.18 MB / 0.9408 GB, free: 69.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/1.836, allocations: 15.92 kB / 0.9408 GB, free: 69.51 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03687/1.873, allocations: 19.69 MB / 0.9601 GB, free: 49.63 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002882/1.876, allocations: 0.7072 MB / 0.9608 GB, free: 48.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002863/1.879, allocations: 67.98 kB / 0.9608 GB, free: 48.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005413/1.884, allocations: 319.6 kB / 0.9611 GB, free: 48.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001644/1.886, allocations: 254.7 kB / 0.9614 GB, free: 48.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006978/1.887, allocations: 103.8 kB / 0.9615 GB, free: 48.17 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.01023/1.897, allocations: 4.642 MB / 0.966 GB, free: 43.56 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.81e-07/1.897, allocations: 0 / 0.966 GB, free: 43.56 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01384/1.911, allocations: 2.202 MB / 0.9682 GB, free: 41.36 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.001332/1.912, allocations: 223.9 kB / 0.9684 GB, free: 41.14 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01932/1.931, allocations: 12.01 MB / 0.9801 GB, free: 29.09 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/1.932, allocations: 0 / 0.9801 GB, free: 29.09 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008788/1.94, allocations: 5.258 MB / 0.9852 GB, free: 23.78 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008993/1.949, allocations: 0.9541 MB / 0.9862 GB, free: 22.83 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2532/2.203, allocations: 24.24 MB / 1.01 GB, free: 233.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007483/2.21, allocations: 5.723 MB / 1.015 GB, free: 232.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00671/2.217, allocations: 2.703 MB / 1.018 GB, free: 232.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/2.218, allocations: 401.4 kB / 1.018 GB, free: 232.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.112e-06/2.218, allocations: 0 / 1.018 GB, free: 232.4 MB / 0.5606 GB Notification: Performance of Templates: time 0.1398/2.358, allocations: 99.35 MB / 1.115 GB, free: 147.4 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/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