Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009131/0.000913, allocations: 177.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007418/0.0007421, allocations: 88.95 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002823, allocations: 12 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.204, allocations: 47.56 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1098/0.3139, allocations: 96.46 MB / 472.2 MB, free: 160 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.3142, allocations: 95.94 kB / 472.3 MB, free: 64 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5161/0.8302, allocations: 157.6 MB / 0.6151 GB, free: 15.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.8303, allocations: 0 / 0.6151 GB, free: 15.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000753/0.8311, allocations: 156 kB / 0.6153 GB, free: 15.24 MB / 394.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.0281/0.8592, allocations: 8.727 MB / 0.6238 GB, free: 6.418 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.8592, allocations: 8.031 kB / 0.6238 GB, free: 6.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04855/0.9078, allocations: 11.55 MB / 0.6351 GB, free: 10.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2297/1.137, allocations: 12.06 MB / 0.6469 GB, free: 54.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005185/1.138, allocations: 0.5258 MB / 0.6474 GB, free: 54.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002981/1.141, allocations: 0.72 MB / 0.6481 GB, free: 54.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03287/1.174, allocations: 16.23 MB / 0.6639 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004991/1.174, allocations: 112.7 kB / 0.664 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002081/1.177, allocations: 334.4 kB / 0.6644 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002313/1.179, allocations: 1.49 MB / 0.6658 GB, free: 51.17 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02852/1.207, allocations: 12.69 MB / 0.6782 GB, free: 51.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0812/1.289, allocations: 73.3 MB / 0.7498 GB, free: 2.965 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01694/1.306, allocations: 7.425 MB / 0.757 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007796/1.314, allocations: 4.259 MB / 0.7612 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01941/1.333, allocations: 11.5 MB / 0.7724 GB, free: 7.809 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.994e-05/1.333, allocations: 64.5 kB / 0.7725 GB, free: 7.738 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 6.683e-06/1.333, allocations: 7.812 kB / 0.7725 GB, free: 7.738 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1564/1.489, allocations: 45.66 MB / 0.8171 GB, free: 4.832 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001981/1.49, allocations: 402 kB / 0.8175 GB, free: 4.352 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2266/1.716, allocations: 7.09 MB / 0.8244 GB, free: 97.06 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007921/1.717, allocations: 76.8 kB / 0.8245 GB, free: 97.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003874/1.721, allocations: 5.228 MB / 0.8296 GB, free: 96.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001636/1.723, allocations: 1.247 MB / 0.8308 GB, free: 95.33 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008205/1.724, allocations: 160.2 kB / 0.8309 GB, free: 95.33 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003949/1.724, allocations: 0.6572 MB / 0.8316 GB, free: 95.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005339/1.729, allocations: 3.799 MB / 0.8353 GB, free: 94.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007901/1.737, allocations: 8.501 MB / 0.8436 GB, free: 89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01447/1.752, allocations: 13.27 MB / 0.8566 GB, free: 83.09 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001745/1.752, allocations: 44.47 kB / 0.8566 GB, free: 83.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.03493/1.787, allocations: 16.74 MB / 0.8729 GB, free: 81.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/1.787, allocations: 75.97 kB / 0.873 GB, free: 81.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001926/1.787, allocations: 159.7 kB / 0.8732 GB, free: 81.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01457/1.802, allocations: 5.488 MB / 0.8785 GB, free: 80.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005919/1.808, allocations: 1.798 MB / 0.8803 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03311/1.841, allocations: 28.08 MB / 0.9077 GB, free: 66.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007683/1.849, allocations: 0.5236 MB / 0.9082 GB, free: 66.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001761/1.85, allocations: 482.4 kB / 0.9087 GB, free: 66.62 MB / 458.7 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 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[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 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007795/1.858, allocations: 3.476 MB / 0.9121 GB, free: 65.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/1.86, allocations: 0.6604 MB / 0.9127 GB, free: 64.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0215/1.881, allocations: 10.97 MB / 0.9234 GB, free: 59.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.897e-05/1.881, allocations: 36 kB / 0.9235 GB, free: 59.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.287e-05/1.881, allocations: 16 kB / 0.9235 GB, free: 59.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-05/1.881, allocations: 22.81 kB / 0.9235 GB, free: 59.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04388/1.925, allocations: 24.02 MB / 0.947 GB, free: 39.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.295e-05/1.925, allocations: 4 kB / 0.947 GB, free: 39.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001931/1.927, allocations: 425.6 kB / 0.9474 GB, free: 39.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01348/1.941, allocations: 5.098 MB / 0.9523 GB, free: 36.19 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006882/1.942, allocations: 67.88 kB / 0.9524 GB, free: 36.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03112/1.973, allocations: 26.84 MB / 0.9786 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/1.973, allocations: 10.75 kB / 0.9786 GB, free: 12.51 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2362/2.209, allocations: 15.74 MB / 0.994 GB, free: 85.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003241/2.212, allocations: 1.261 MB / 0.9952 GB, free: 85.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001306/2.214, allocations: 65.33 kB / 0.9953 GB, free: 85.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003038/2.217, allocations: 255 kB / 0.9955 GB, free: 85.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007345/2.217, allocations: 241.1 kB / 0.9958 GB, free: 85.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002581/2.218, allocations: 91.78 kB / 0.9958 GB, free: 85.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00694/2.225, allocations: 4.537 MB / 1 GB, free: 85.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.91e-07/2.225, allocations: 0 / 1 GB, free: 85.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009223/2.234, allocations: 1.967 MB / 1.002 GB, free: 85.25 MB / 458.7 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.0007445/2.235, allocations: 226.7 kB / 1.002 GB, free: 85.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01674/2.251, allocations: 10.14 MB / 1.012 GB, free: 84.63 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/2.251, allocations: 0 / 1.012 GB, free: 84.63 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007318/2.259, allocations: 4.502 MB / 1.017 GB, free: 84.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01327/2.272, allocations: 1.018 MB / 1.018 GB, free: 84.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03539/2.307, allocations: 22.55 MB / 1.04 GB, free: 76.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009669/2.317, allocations: 5.56 MB / 1.045 GB, free: 75.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/2.319, allocations: 445.4 kB / 1.046 GB, free: 75.58 MB / 458.7 MB Notification: Performance of SimCode: time 1.262e-06/2.319, allocations: 0 / 1.046 GB, free: 75.58 MB / 458.7 MB Notification: Performance of Templates: time 0.434/2.753, allocations: 205.6 MB / 1.246 GB, free: 67.5 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches