Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001039, allocations: 98.28 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.0014, allocations: 194.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002139/0.0002139, allocations: 11.98 kB / 307.1 MB, free: 1.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09602, allocations: 51.53 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2429/0.3389, allocations: 93.14 MB / 451.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04123/0.3802, allocations: 18.8 MB / 470.6 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0198/0.4001, allocations: 474.8 kB / 471 MB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01519/0.4153, allocations: 4.899 MB / 475.9 MB, free: 5.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03853/0.4539, allocations: 14.34 MB / 490.3 MB, free: 7.293 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007/0.4609, allocations: 1.404 MB / 491.7 MB, free: 5.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.4109/0.8718, allocations: 179.2 MB / 0.6551 GB, free: 15.77 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01408/0.886, allocations: 8.79 MB / 0.6637 GB, free: 9.562 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006098/0.8921, allocations: 2.911 MB / 0.6665 GB, free: 7.559 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007328/0.8995, allocations: 4.431 MB / 0.6709 GB, free: 4.34 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002111/0.9016, allocations: 276 kB / 0.6711 GB, free: 4.07 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004454/0.9061, allocations: 1.114 MB / 0.6722 GB, free: 3.156 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005915/0.9121, allocations: 3.657 MB / 0.6758 GB, free: 440 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003253/0.9153, allocations: 1.559 MB / 0.6773 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01196/0.9273, allocations: 10.53 MB / 0.6876 GB, free: 6.73 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.9273, allocations: 0 / 0.6876 GB, free: 6.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.9274, allocations: 0 / 0.6876 GB, free: 6.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0005033/0.9279, allocations: 0 / 0.6876 GB, free: 6.73 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02113/0.949, allocations: 8.089 MB / 0.6955 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.9491, allocations: 8.031 kB / 0.6955 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0383/0.9874, allocations: 5.351 MB / 0.7007 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01687/1.004, allocations: 7.561 MB / 0.7081 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003574/1.005, allocations: 430.3 kB / 0.7085 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001957/1.007, allocations: 0.5774 MB / 0.7091 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02687/1.034, allocations: 16.59 MB / 0.7253 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002524/1.034, allocations: 98.48 kB / 0.7254 GB, free: 6.973 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006834/1.034, allocations: 267.6 kB / 0.7256 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00399/1.038, allocations: 2.764 MB / 0.7283 GB, free: 4.637 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3731/1.412, allocations: 13.62 MB / 0.7416 GB, free: 214.2 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.0752/1.487, allocations: 68.1 MB / 0.8081 GB, free: 162.4 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01724/1.504, allocations: 7.935 MB / 0.8159 GB, free: 154.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004758/1.509, allocations: 4.505 MB / 0.8203 GB, free: 149.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01504/1.524, allocations: 12.39 MB / 0.8324 GB, free: 137.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/1.524, allocations: 71.62 kB / 0.8325 GB, free: 137.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=280): time 5.521e-06/1.524, allocations: 0 / 0.8325 GB, free: 137.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=339): time 0.1517/1.676, allocations: 51.02 MB / 0.8823 GB, free: 86.49 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/1.676, allocations: 402.1 kB / 0.8827 GB, free: 86.01 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008974/1.685, allocations: 7.066 MB / 0.8896 GB, free: 78.96 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009885/1.686, allocations: 77.7 kB / 0.8896 GB, free: 78.88 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00263/1.689, allocations: 5.021 MB / 0.8945 GB, free: 73.86 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001391/1.69, allocations: 1.256 MB / 0.8958 GB, free: 72.62 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004756/1.691, allocations: 183.4 kB / 0.8959 GB, free: 72.44 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0003578/1.691, allocations: 0.6864 MB / 0.8966 GB, free: 71.75 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005105/1.696, allocations: 4.511 MB / 0.901 GB, free: 67.23 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006444/1.702, allocations: 9.228 MB / 0.91 GB, free: 55.71 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006792/1.709, allocations: 6.274 MB / 0.9162 GB, free: 49.42 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.258e-05/1.709, allocations: 48 kB / 0.9162 GB, free: 49.38 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03207/1.741, allocations: 19.67 MB / 0.9354 GB, free: 29.65 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.76e-05/1.742, allocations: 79.98 kB / 0.9355 GB, free: 29.57 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/1.742, allocations: 160 kB / 0.9356 GB, free: 29.41 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01709/1.759, allocations: 7.044 MB / 0.9425 GB, free: 22.36 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005512/1.764, allocations: 1.926 MB / 0.9444 GB, free: 20.43 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2424/2.007, allocations: 33.21 MB / 0.9768 GB, free: 188.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007796/2.015, allocations: 0.5927 MB / 0.9774 GB, free: 188.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00175/2.016, allocations: 498.7 kB / 0.9779 GB, free: 188.7 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (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 (1048): * Single equations (assignments): 1042 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.006979/2.023, allocations: 3.461 MB / 0.9813 GB, free: 187.4 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/2.025, allocations: 0.6327 MB / 0.9819 GB, free: 187.4 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02427/2.049, allocations: 13.3 MB / 0.9949 GB, free: 183.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.387e-05/2.049, allocations: 33.56 kB / 0.9949 GB, free: 183.3 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-05/2.049, allocations: 22.38 kB / 0.9949 GB, free: 183.3 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.6e-05/2.049, allocations: 15.8 kB / 0.995 GB, free: 183.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04051/2.09, allocations: 26.69 MB / 1.021 GB, free: 171.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.324e-05/2.09, allocations: 10.12 kB / 1.021 GB, free: 171.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/2.092, allocations: 415.4 kB / 1.021 GB, free: 170.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01676/2.109, allocations: 6.677 MB / 1.028 GB, free: 164.1 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006533/2.109, allocations: 70.48 kB / 1.028 GB, free: 164 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0356/2.145, allocations: 31.93 MB / 1.059 GB, free: 132 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/2.145, allocations: 14.12 kB / 1.059 GB, free: 132 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02797/2.173, allocations: 18.75 MB / 1.078 GB, free: 113.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002447/2.175, allocations: 0.6927 MB / 1.078 GB, free: 112.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008577/2.176, allocations: 57.47 kB / 1.078 GB, free: 112.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002692/2.179, allocations: 314.4 kB / 1.079 GB, free: 112.3 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007448/2.18, allocations: 242.6 kB / 1.079 GB, free: 112.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002641/2.18, allocations: 92.69 kB / 1.079 GB, free: 112 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006114/2.186, allocations: 4.508 MB / 1.083 GB, free: 107.5 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.9e-07/2.186, allocations: 0 / 1.083 GB, free: 107.5 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007616/2.194, allocations: 2.127 MB / 1.085 GB, free: 105.4 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005339/2.194, allocations: 208.7 kB / 1.086 GB, free: 105.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0146/2.209, allocations: 11.52 MB / 1.097 GB, free: 93.67 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/2.209, allocations: 0 / 1.097 GB, free: 93.67 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006939/2.216, allocations: 4.983 MB / 1.102 GB, free: 88.65 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004979/2.221, allocations: 0.9417 MB / 1.103 GB, free: 87.74 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03361/2.254, allocations: 22.4 MB / 1.124 GB, free: 65.43 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005284/2.26, allocations: 5.526 MB / 1.13 GB, free: 59.86 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006319/2.266, allocations: 2.609 MB / 1.132 GB, free: 57.25 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001118/2.267, allocations: 387.4 kB / 1.133 GB, free: 56.87 MB / 0.5138 GB Notification: Performance of SimCode: time 1.192e-06/2.267, allocations: 2.297 kB / 1.133 GB, free: 56.87 MB / 0.5138 GB Notification: Performance of Templates: time 0.3422/2.609, allocations: 90.98 MB / 1.222 GB, free: 161.5 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches