Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 199.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.849/1.849, allocations: 226.5 MB / 245.4 MB, free: 6.426 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008201/0.0008201, allocations: 102.9 kB / 297.4 MB, free: 6.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002433, allocations: 8 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2418, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.5835, allocations: 112.5 MB / 0.509 GB, free: 96.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003242/0.5839, allocations: 93.97 kB / 0.5091 GB, free: 96.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6915/1.275, allocations: 186.8 MB / 0.6915 GB, free: 52.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.747e-06/1.275, allocations: 0 / 0.6915 GB, free: 52.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007177/1.276, allocations: 187.8 kB / 0.6916 GB, free: 52.35 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.03392/1.31, allocations: 9.977 MB / 0.7014 GB, free: 48.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/1.31, allocations: 7 kB / 0.7014 GB, free: 48.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05634/1.367, allocations: 11.71 MB / 0.7128 GB, free: 47.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0308/1.397, allocations: 11.66 MB / 0.7242 GB, free: 46.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007319/1.398, allocations: 0.6304 MB / 0.7248 GB, free: 46.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004408/1.403, allocations: 0.859 MB / 0.7257 GB, free: 46.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04779/1.45, allocations: 19.17 MB / 0.7444 GB, free: 42.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007176/1.451, allocations: 110.5 kB / 0.7445 GB, free: 42.83 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003556/1.455, allocations: 394 kB / 0.7449 GB, free: 42.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00246/1.457, allocations: 1.599 MB / 0.7464 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03374/1.491, allocations: 15.3 MB / 0.7614 GB, free: 40.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1007/1.592, allocations: 80.27 MB / 0.8397 GB, free: 2.484 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2893/1.881, allocations: 8.857 MB / 0.8484 GB, free: 76.42 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007147/1.888, allocations: 4.046 MB / 0.8523 GB, free: 76.37 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03052/1.919, allocations: 13.94 MB / 0.866 GB, free: 72.91 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.459e-05/1.919, allocations: 74.66 kB / 0.866 GB, free: 72.87 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 1.187e-05/1.919, allocations: 0 / 0.866 GB, free: 72.87 MB / 474.7 MB Notification: Performance of matching and sorting (n=417): time 0.1888/2.108, allocations: 51.3 MB / 0.9161 GB, free: 67.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/2.108, allocations: 411.9 kB / 0.9165 GB, free: 67.16 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01502/2.123, allocations: 7.417 MB / 0.9238 GB, free: 66.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009385/2.124, allocations: 86.95 kB / 0.9239 GB, free: 66.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00465/2.129, allocations: 5.82 MB / 0.9295 GB, free: 62.72 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001945/2.131, allocations: 1.504 MB / 0.931 GB, free: 61.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001275/2.132, allocations: 186.1 kB / 0.9312 GB, free: 61.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005248/2.133, allocations: 0.7011 MB / 0.9319 GB, free: 60.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006761/2.139, allocations: 4.287 MB / 0.9361 GB, free: 59.35 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009265/2.149, allocations: 9.314 MB / 0.9452 GB, free: 51.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01529/2.164, allocations: 14.69 MB / 0.9595 GB, free: 38.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001641/2.164, allocations: 52 kB / 0.9595 GB, free: 38.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.03406/2.198, allocations: 17.66 MB / 0.9768 GB, free: 24.33 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002232/2.198, allocations: 76 kB / 0.9769 GB, free: 24.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003043/2.199, allocations: 172 kB / 0.977 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01485/2.214, allocations: 4.913 MB / 0.9818 GB, free: 20.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006549/2.22, allocations: 1.975 MB / 0.9838 GB, free: 18.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03868/2.259, allocations: 26.58 MB / 1.01 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008291/2.267, allocations: 0.5389 MB / 1.01 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001976/2.269, allocations: 0.5124 MB / 1.011 GB, free: 11.13 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.01171/2.281, allocations: 4.089 MB / 1.015 GB, free: 7.555 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001789/2.283, allocations: 0.7096 MB / 1.015 GB, free: 6.836 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2613/2.544, allocations: 11.55 MB / 1.027 GB, free: 81.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.505e-05/2.544, allocations: 49.84 kB / 1.027 GB, free: 81.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.529e-05/2.544, allocations: 19.59 kB / 1.027 GB, free: 81.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.26e-05/2.544, allocations: 23.08 kB / 1.027 GB, free: 81.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05648/2.601, allocations: 24.82 MB / 1.051 GB, free: 79.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.674e-05/2.601, allocations: 6.969 kB / 1.051 GB, free: 79.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002923/2.604, allocations: 0.5715 MB / 1.052 GB, free: 79.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01435/2.618, allocations: 4.504 MB / 1.056 GB, free: 79.58 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008747/2.619, allocations: 78.75 kB / 1.056 GB, free: 79.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0332/2.652, allocations: 23.44 MB / 1.079 GB, free: 74.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.956e-06/2.653, allocations: 14.44 kB / 1.079 GB, free: 74.73 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03069/2.683, allocations: 17.04 MB / 1.096 GB, free: 68.06 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004563/2.688, allocations: 1.399 MB / 1.097 GB, free: 67.62 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002587/2.69, allocations: 82.08 kB / 1.097 GB, free: 67.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004762/2.695, allocations: 266.1 kB / 1.097 GB, free: 67.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001493/2.697, allocations: 295.7 kB / 1.098 GB, free: 67.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006824/2.697, allocations: 109.7 kB / 1.098 GB, free: 67.45 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01019/2.708, allocations: 4.743 MB / 1.102 GB, free: 65.88 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.81e-07/2.708, allocations: 0 / 1.102 GB, free: 65.88 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01122/2.719, allocations: 2.223 MB / 1.105 GB, free: 65.66 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.001325/2.72, allocations: 279.2 kB / 1.105 GB, free: 65.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01657/2.737, allocations: 10.91 MB / 1.115 GB, free: 61.66 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/2.737, allocations: 3.812 kB / 1.115 GB, free: 61.66 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007339/2.744, allocations: 4.667 MB / 1.12 GB, free: 59.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01701/2.761, allocations: 1.102 MB / 1.121 GB, free: 59.26 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04666/2.808, allocations: 25.87 MB / 1.146 GB, free: 38.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01295/2.821, allocations: 6.385 MB / 1.153 GB, free: 33.49 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002058/2.823, allocations: 493 kB / 1.153 GB, free: 33.02 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/2.823, allocations: 2.75 kB / 1.153 GB, free: 33.02 MB / 490.7 MB Notification: Performance of Templates: time 0.4477/3.271, allocations: 160.2 MB / 1.309 GB, free: 51.41 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches