Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001583/0.001583, allocations: 195.8 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007543/0.0007543, allocations: 100.4 kB / 297.5 MB, free: 6.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002123/0.0002124, allocations: 8 kB / 358.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1932, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2924/0.4857, allocations: 112.5 MB / 0.5097 GB, free: 96.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.486, allocations: 93.31 kB / 0.5098 GB, free: 96.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5866/1.073, allocations: 186.8 MB / 0.6922 GB, free: 52.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.073, allocations: 0 / 0.6922 GB, free: 52.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001082/1.074, allocations: 187 kB / 0.6923 GB, free: 52.23 MB / 442.7 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.0291/1.103, allocations: 9.977 MB / 0.7021 GB, free: 48.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/1.103, allocations: 6.656 kB / 0.7021 GB, free: 48.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0435/1.146, allocations: 11.7 MB / 0.7135 GB, free: 47.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02466/1.171, allocations: 11.67 MB / 0.7249 GB, free: 46.41 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006004/1.172, allocations: 0.6222 MB / 0.7255 GB, free: 46.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004/1.176, allocations: 0.8603 MB / 0.7264 GB, free: 46.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04238/1.218, allocations: 19.18 MB / 0.7451 GB, free: 42.73 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007055/1.219, allocations: 110.6 kB / 0.7452 GB, free: 42.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003508/1.222, allocations: 392 kB / 0.7456 GB, free: 42.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002412/1.225, allocations: 1.597 MB / 0.7471 GB, free: 42.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03123/1.256, allocations: 15.29 MB / 0.7621 GB, free: 40.22 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09297/1.349, allocations: 80.27 MB / 0.8404 GB, free: 2.391 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2465/1.596, allocations: 8.888 MB / 0.8491 GB, free: 76.29 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00496/1.601, allocations: 4.051 MB / 0.8531 GB, free: 76.24 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01887/1.619, allocations: 13.96 MB / 0.8667 GB, free: 72.79 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/1.62, allocations: 69.22 kB / 0.8668 GB, free: 72.74 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 6.101e-06/1.62, allocations: 3.156 kB / 0.8668 GB, free: 72.74 MB / 474.7 MB Notification: Performance of matching and sorting (n=417): time 0.1621/1.782, allocations: 51.3 MB / 0.9169 GB, free: 67.47 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/1.782, allocations: 402.4 kB / 0.9173 GB, free: 67.03 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01128/1.793, allocations: 7.421 MB / 0.9245 GB, free: 66.45 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001005/1.794, allocations: 93.33 kB / 0.9246 GB, free: 66.41 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003381/1.798, allocations: 5.818 MB / 0.9303 GB, free: 62.63 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001651/1.799, allocations: 1.51 MB / 0.9318 GB, free: 61.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004314/1.8, allocations: 184.7 kB / 0.9319 GB, free: 61.36 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003642/1.8, allocations: 0.7056 MB / 0.9326 GB, free: 60.88 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00499/1.805, allocations: 4.281 MB / 0.9368 GB, free: 59.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006757/1.812, allocations: 9.313 MB / 0.9459 GB, free: 51 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01343/1.825, allocations: 14.69 MB / 0.9602 GB, free: 38.99 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001108/1.825, allocations: 52 kB / 0.9603 GB, free: 38.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.03046/1.856, allocations: 17.66 MB / 0.9775 GB, free: 24.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.856, allocations: 76 kB / 0.9776 GB, free: 24.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001729/1.856, allocations: 176 kB / 0.9778 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01359/1.87, allocations: 4.898 MB / 0.9826 GB, free: 20.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006155/1.876, allocations: 1.971 MB / 0.9845 GB, free: 18.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03326/1.909, allocations: 26.59 MB / 1.01 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008694/1.918, allocations: 0.5409 MB / 1.011 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001588/1.92, allocations: 0.5114 MB / 1.011 GB, free: 11.14 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * 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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008338/1.928, allocations: 4.088 MB / 1.015 GB, free: 7.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001655/1.93, allocations: 0.7135 MB / 1.016 GB, free: 6.848 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2801/2.21, allocations: 11.55 MB / 1.027 GB, free: 81.01 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.668e-05/2.21, allocations: 49.25 kB / 1.027 GB, free: 81.01 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.51e-05/2.21, allocations: 20.5 kB / 1.028 GB, free: 81.01 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-05/2.21, allocations: 20.88 kB / 1.028 GB, free: 81.01 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04556/2.256, allocations: 24.81 MB / 1.052 GB, free: 79.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.342e-05/2.256, allocations: 11.44 kB / 1.052 GB, free: 79.49 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00282/2.258, allocations: 0.5715 MB / 1.052 GB, free: 79.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01364/2.272, allocations: 4.498 MB / 1.057 GB, free: 79.46 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009223/2.273, allocations: 80.2 kB / 1.057 GB, free: 79.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03274/2.306, allocations: 23.45 MB / 1.08 GB, free: 74.67 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/2.306, allocations: 18.11 kB / 1.08 GB, free: 74.67 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02782/2.334, allocations: 17.04 MB / 1.096 GB, free: 68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003734/2.337, allocations: 1.404 MB / 1.098 GB, free: 67.56 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009638/2.338, allocations: 82.44 kB / 1.098 GB, free: 67.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002969/2.341, allocations: 261 kB / 1.098 GB, free: 67.46 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009748/2.342, allocations: 288.5 kB / 1.098 GB, free: 67.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002847/2.343, allocations: 113 kB / 1.098 GB, free: 67.39 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007717/2.35, allocations: 4.741 MB / 1.103 GB, free: 65.82 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.1e-07/2.35, allocations: 0 / 1.103 GB, free: 65.82 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01044/2.361, allocations: 2.222 MB / 1.105 GB, free: 65.59 MB / 490.7 MB 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 (288): * Single equations (assignments): 284 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008255/2.362, allocations: 287 kB / 1.106 GB, free: 65.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01528/2.377, allocations: 10.91 MB / 1.116 GB, free: 61.59 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.638e-05/2.377, allocations: 4.781 kB / 1.116 GB, free: 61.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006237/2.383, allocations: 4.669 MB / 1.121 GB, free: 59.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01468/2.398, allocations: 1.104 MB / 1.122 GB, free: 59.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03991/2.438, allocations: 24.8 MB / 1.146 GB, free: 39.13 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008305/2.446, allocations: 6.376 MB / 1.152 GB, free: 34.38 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008031/2.454, allocations: 2.947 MB / 1.155 GB, free: 32.61 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/2.456, allocations: 430.4 kB / 1.156 GB, free: 32.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.403e-06/2.456, allocations: 3.609 kB / 1.156 GB, free: 32.2 MB / 490.7 MB Notification: Performance of Templates: time 0.365/2.821, allocations: 95.11 MB / 1.248 GB, free: 85.7 MB / 0.4949 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches