Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 113 kB / 16.63 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 189.8 kB / 17.55 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 50.33 kB / 300.1 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09477, allocations: 49.45 MB / 349.6 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2562/0.351, allocations: 114.2 MB / 463.8 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05088/0.402, allocations: 22.27 MB / 486.1 MB, free: 11.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02378/0.4258, allocations: 0.5065 MB / 486.6 MB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01399/0.4399, allocations: 7.698 MB / 494.3 MB, free: 3.668 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.4511, allocations: 3.345 MB / 497.6 MB, free: 320 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004837/0.456, allocations: 1.9 MB / 499.5 MB, free: 14.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0189/0.4749, allocations: 14.36 MB / 0.5019 GB, free: 36 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0176/0.4925, allocations: 11 MB / 0.5126 GB, free: 4.953 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008044/0.5006, allocations: 4.378 MB / 0.5169 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008869/0.5095, allocations: 6.296 MB / 0.523 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003161/0.5127, allocations: 1 MB / 0.524 GB, free: 9.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005245/0.518, allocations: 2.185 MB / 0.5261 GB, free: 7.062 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006761/0.5248, allocations: 5.094 MB / 0.5311 GB, free: 1.957 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2783/0.8031, allocations: 5.444 MB / 0.5364 GB, free: 24.33 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03084/0.834, allocations: 16.99 MB / 0.553 GB, free: 23.62 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.834, allocations: 0.625 kB / 0.553 GB, free: 23.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.8341, allocations: 3.375 kB / 0.553 GB, free: 23.62 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006396/0.8347, allocations: 1.875 kB / 0.553 GB, free: 23.62 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.04536/0.8801, allocations: 11.22 MB / 0.564 GB, free: 19.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.8801, allocations: 11.55 kB / 0.564 GB, free: 19.71 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04774/0.9279, allocations: 5.422 MB / 0.5693 GB, free: 18.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02492/0.9528, allocations: 8.834 MB / 0.5779 GB, free: 15.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007732/0.9537, allocations: 0.5252 MB / 0.5784 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005041/0.9587, allocations: 0.7317 MB / 0.5791 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04972/1.008, allocations: 19.51 MB / 0.5982 GB, free: 6.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007772/1.009, allocations: 96.48 kB / 0.5983 GB, free: 6.812 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006125/1.015, allocations: 322.3 kB / 0.5986 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005155/1.021, allocations: 2.816 MB / 0.6013 GB, free: 5.582 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04173/1.062, allocations: 16.24 MB / 0.6172 GB, free: 6.398 MB / 462.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.1215/1.184, allocations: 74.44 MB / 0.6899 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02389/1.208, allocations: 8.507 MB / 0.6982 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006986/1.215, allocations: 4.78 MB / 0.7029 GB, free: 13.44 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/1.242, allocations: 15.4 MB / 0.7179 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.648e-05/1.242, allocations: 67.02 kB / 0.718 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=321): time 7.183e-06/1.242, allocations: 4 kB / 0.718 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=428): time 0.4115/1.654, allocations: 54.62 MB / 0.7713 GB, free: 249.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001755/1.654, allocations: 402.8 kB / 0.7717 GB, free: 249.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01204/1.666, allocations: 7.557 MB / 0.7791 GB, free: 242.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0015/1.668, allocations: 93.7 kB / 0.7792 GB, free: 242.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003403/1.671, allocations: 5.595 MB / 0.7846 GB, free: 237.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00195/1.673, allocations: 1.563 MB / 0.7862 GB, free: 236.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003234/1.676, allocations: 2.088 MB / 0.7882 GB, free: 234.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.887e-05/1.676, allocations: 301.1 kB / 0.7885 GB, free: 234.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006295/1.683, allocations: 5.218 MB / 0.7936 GB, free: 229.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008721/1.691, allocations: 10.26 MB / 0.8036 GB, free: 216.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01615/1.708, allocations: 16.32 MB / 0.8195 GB, free: 198 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001136/1.708, allocations: 51.19 kB / 0.8196 GB, free: 198 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04014/1.748, allocations: 21.26 MB / 0.8404 GB, free: 176.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.696e-05/1.748, allocations: 78.19 kB / 0.8404 GB, free: 176.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001509/1.748, allocations: 176.1 kB / 0.8406 GB, free: 176.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01991/1.768, allocations: 6.676 MB / 0.8471 GB, free: 169.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007879/1.776, allocations: 2.148 MB / 0.8492 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04613/1.822, allocations: 35.06 MB / 0.8834 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009623/1.832, allocations: 0.6201 MB / 0.8841 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002429/1.834, allocations: 0.5312 MB / 0.8846 GB, free: 131.3 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 (1178): * Single equations (assignments): 1173 * 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.01008/1.844, allocations: 4.096 MB / 0.8886 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002554/1.847, allocations: 0.6942 MB / 0.8893 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03345/1.88, allocations: 14.32 MB / 0.9032 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.968e-05/1.881, allocations: 44 kB / 0.9033 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-05/1.881, allocations: 24 kB / 0.9033 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001062/1.881, allocations: 20.48 kB / 0.9033 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06874/1.95, allocations: 28.25 MB / 0.9309 GB, free: 83.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.399e-05/1.95, allocations: 8 kB / 0.9309 GB, free: 83.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003069/1.953, allocations: 0.5935 MB / 0.9315 GB, free: 82.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01909/1.972, allocations: 6.347 MB / 0.9377 GB, free: 76.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001339/1.973, allocations: 76 kB / 0.9378 GB, free: 76.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04091/2.014, allocations: 31.92 MB / 0.9689 GB, free: 44.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/2.014, allocations: 11.94 kB / 0.969 GB, free: 44.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2537/2.268, allocations: 20.92 MB / 0.9894 GB, free: 234.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004802/2.273, allocations: 1.569 MB / 0.9909 GB, free: 234.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002344/2.275, allocations: 81.06 kB / 0.991 GB, free: 234.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004458/2.28, allocations: 326.4 kB / 0.9913 GB, free: 234.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001235/2.281, allocations: 303.3 kB / 0.9916 GB, free: 234.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004103/2.281, allocations: 114 kB / 0.9917 GB, free: 234.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.009595/2.291, allocations: 4.835 MB / 0.9964 GB, free: 233.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2e-07/2.291, allocations: 3.844 kB / 0.9964 GB, free: 233.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0131/2.304, allocations: 2.432 MB / 0.9988 GB, free: 233.9 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 (296): * Single equations (assignments): 292 * 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.001952/2.306, allocations: 288 kB / 0.9991 GB, free: 233.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03099/2.337, allocations: 17.87 MB / 1.017 GB, free: 229.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/2.337, allocations: 1.719 kB / 1.017 GB, free: 229.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007835/2.345, allocations: 5.348 MB / 1.022 GB, free: 227.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007515/2.352, allocations: 1.077 MB / 1.023 GB, free: 226.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04303/2.395, allocations: 26.87 MB / 1.049 GB, free: 207.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009497/2.405, allocations: 6.379 MB / 1.055 GB, free: 202.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.008131/2.413, allocations: 2.964 MB / 1.058 GB, free: 200.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001597/2.415, allocations: 433.7 kB / 1.059 GB, free: 200.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.012e-06/2.415, allocations: 0 / 1.059 GB, free: 200.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.1593/2.574, allocations: 112.5 MB / 1.168 GB, free: 94.3 MB / 0.5606 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches