Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001506, allocations: 202.8 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.545/1.545, allocations: 226.5 MB / 245.3 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000721/0.0007211, allocations: 92.03 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002287, allocations: 11.98 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2396, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.3586, allocations: 98.82 MB / 0.4956 GB, free: 8.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.3589, allocations: 95.94 kB / 0.4957 GB, free: 8.637 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5562/0.9151, allocations: 164.6 MB / 0.6564 GB, free: 0.6641 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.9151, allocations: 4 kB / 0.6564 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006185/0.9157, allocations: 156 kB / 0.6565 GB, free: 0.5078 MB / 426.7 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.03129/0.947, allocations: 8.696 MB / 0.665 GB, free: 7.715 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.9471, allocations: 8.031 kB / 0.665 GB, free: 7.707 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5243/1.471, allocations: 11.54 MB / 0.6763 GB, free: 60.41 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02704/1.498, allocations: 10.54 MB / 0.6866 GB, free: 59.92 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005641/1.499, allocations: 0.5249 MB / 0.6871 GB, free: 59.9 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003435/1.503, allocations: 0.7234 MB / 0.6878 GB, free: 59.89 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03675/1.539, allocations: 16.22 MB / 0.7037 GB, free: 56.29 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005123/1.54, allocations: 110.1 kB / 0.7038 GB, free: 56.28 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002081/1.542, allocations: 341.7 kB / 0.7041 GB, free: 56.27 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002084/1.544, allocations: 1.483 MB / 0.7055 GB, free: 56.25 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02588/1.57, allocations: 12.69 MB / 0.7179 GB, free: 56.2 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07813/1.648, allocations: 73.16 MB / 0.7894 GB, free: 6.383 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01714/1.665, allocations: 7.416 MB / 0.7966 GB, free: 3.496 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004591/1.67, allocations: 4.016 MB / 0.8005 GB, free: 15.97 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01963/1.69, allocations: 11.43 MB / 0.8117 GB, free: 6.25 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/1.69, allocations: 74.19 kB / 0.8118 GB, free: 6.176 MB / 458.8 MB Notification: Performance of pre-optimization done (n=280): time 4.949e-06/1.69, allocations: 0 / 0.8118 GB, free: 6.176 MB / 458.8 MB Notification: Performance of matching and sorting (n=339): time 0.3923/2.082, allocations: 45.79 MB / 0.8565 GB, free: 86.07 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/2.082, allocations: 396.3 kB / 0.8569 GB, free: 85.63 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/2.093, allocations: 6.991 MB / 0.8637 GB, free: 85.11 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006883/2.094, allocations: 76.61 kB / 0.8638 GB, free: 85.08 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003378/2.097, allocations: 5.224 MB / 0.8689 GB, free: 82.95 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001523/2.099, allocations: 1.252 MB / 0.8701 GB, free: 82.21 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006414/2.099, allocations: 162.9 kB / 0.8703 GB, free: 82.21 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.000351/2.1, allocations: 0.6557 MB / 0.8709 GB, free: 81.88 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004792/2.105, allocations: 3.802 MB / 0.8746 GB, free: 81.86 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007292/2.112, allocations: 8.495 MB / 0.8829 GB, free: 75.88 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01382/2.126, allocations: 13.26 MB / 0.8959 GB, free: 69.96 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001672/2.126, allocations: 44.34 kB / 0.8959 GB, free: 69.96 MB / 474.8 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.03382/2.16, allocations: 16.72 MB / 0.9122 GB, free: 66.8 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000115/2.16, allocations: 74.88 kB / 0.9123 GB, free: 66.8 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000195/2.16, allocations: 166.6 kB / 0.9125 GB, free: 66.79 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01607/2.176, allocations: 5.473 MB / 0.9178 GB, free: 65.88 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005658/2.182, allocations: 1.793 MB / 0.9196 GB, free: 65.66 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.032/2.214, allocations: 28.12 MB / 0.947 GB, free: 52.43 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007301/2.221, allocations: 0.524 MB / 0.9475 GB, free: 52.03 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001581/2.223, allocations: 480 kB / 0.948 GB, free: 51.57 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * 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 (947): * Single equations (assignments): 941 * 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,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.006644/2.229, allocations: 3.467 MB / 0.9514 GB, free: 48.55 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/2.231, allocations: 0.6518 MB / 0.952 GB, free: 47.89 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0218/2.253, allocations: 10.96 MB / 0.9627 GB, free: 39.51 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.272e-05/2.253, allocations: 36 kB / 0.9628 GB, free: 39.48 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.852e-05/2.253, allocations: 16 kB / 0.9628 GB, free: 39.46 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.096e-05/2.253, allocations: 16.88 kB / 0.9628 GB, free: 39.46 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0436/2.297, allocations: 23.97 MB / 0.9862 GB, free: 19.74 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.402e-05/2.297, allocations: 8 kB / 0.9862 GB, free: 19.73 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002213/2.299, allocations: 445.5 kB / 0.9866 GB, free: 19.38 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01633/2.315, allocations: 5.085 MB / 0.9916 GB, free: 15.96 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000647/2.316, allocations: 64.89 kB / 0.9917 GB, free: 15.91 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2881/2.604, allocations: 26.83 MB / 1.018 GB, free: 90.51 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/2.604, allocations: 17.81 kB / 1.018 GB, free: 90.51 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03012/2.634, allocations: 15.72 MB / 1.033 GB, free: 89.66 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002346/2.637, allocations: 0.6656 MB / 1.034 GB, free: 89.56 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002193/2.639, allocations: 67.19 kB / 1.034 GB, free: 89.56 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004372/2.643, allocations: 255.6 kB / 1.034 GB, free: 89.56 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001179/2.644, allocations: 244.8 kB / 1.034 GB, free: 89.55 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003345/2.645, allocations: 91.61 kB / 1.035 GB, free: 89.55 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.009027/2.654, allocations: 4.47 MB / 1.039 GB, free: 89.34 MB / 490.8 MB Notification: Performance of sort global known variables: time 8.02e-07/2.654, allocations: 2.156 kB / 1.039 GB, free: 89.34 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01027/2.664, allocations: 1.967 MB / 1.041 GB, free: 89.34 MB / 490.8 MB 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.0008656/2.665, allocations: 221.8 kB / 1.041 GB, free: 89.25 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01682/2.682, allocations: 10.12 MB / 1.051 GB, free: 88.72 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/2.682, allocations: 0 / 1.051 GB, free: 88.72 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007576/2.689, allocations: 4.503 MB / 1.055 GB, free: 88.26 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01469/2.704, allocations: 1.018 MB / 1.056 GB, free: 88.23 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04263/2.747, allocations: 22.4 MB / 1.078 GB, free: 80.61 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009916/2.757, allocations: 5.538 MB / 1.084 GB, free: 79.71 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001671/2.759, allocations: 447.6 kB / 1.084 GB, free: 79.7 MB / 490.8 MB Notification: Performance of SimCode: time 6.31e-07/2.759, allocations: 0 / 1.084 GB, free: 79.7 MB / 490.8 MB Notification: Performance of Templates: time 0.5187/3.277, allocations: 204.8 MB / 1.284 GB, free: 82.22 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches