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.001501/0.001501, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.999/1.999, allocations: 205.2 MB / 219.4 MB, free: 14.3 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.001113/0.001112, allocations: 90.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.526e-05, allocations: 8 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.09288, allocations: 47.57 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4381/0.531, allocations: 96.22 MB / 465.3 MB, free: 13.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.5314, allocations: 83.95 kB / 465.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.954/1.485, allocations: 161.4 MB / 0.6121 GB, free: 70.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.486, allocations: 0 / 0.6121 GB, free: 70.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001055/1.487, allocations: 156 kB / 0.6122 GB, free: 70.11 MB / 410.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.04462/1.531, allocations: 7.889 MB / 0.6199 GB, free: 62.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/1.531, allocations: 15.91 kB / 0.62 GB, free: 62.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1494/1.681, allocations: 16.48 MB / 0.6361 GB, free: 45.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04687/1.728, allocations: 13.5 MB / 0.6492 GB, free: 32.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000726/1.728, allocations: 0.5255 MB / 0.6497 GB, free: 31.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004238/1.733, allocations: 0.7221 MB / 0.6505 GB, free: 30.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05304/1.786, allocations: 16.27 MB / 0.6663 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008231/1.787, allocations: 111 kB / 0.6665 GB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003535/1.79, allocations: 335.9 kB / 0.6668 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003584/1.794, allocations: 1.484 MB / 0.6682 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04281/1.837, allocations: 12.73 MB / 0.6807 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4513/2.288, allocations: 73.4 MB / 0.7523 GB, free: 32.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03232/2.32, allocations: 7.462 MB / 0.7596 GB, free: 32.12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008106/2.329, allocations: 3.97 MB / 0.7635 GB, free: 32.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03134/2.36, allocations: 11.58 MB / 0.7748 GB, free: 28.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.198e-05/2.36, allocations: 64.94 kB / 0.7749 GB, free: 28.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 1.409e-05/2.36, allocations: 1.438 kB / 0.7749 GB, free: 28.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2294/2.59, allocations: 37.94 MB / 0.8119 GB, free: 17.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/2.59, allocations: 411.8 kB / 0.8123 GB, free: 17.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01754/2.607, allocations: 6.194 MB / 0.8184 GB, free: 12.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001324/2.609, allocations: 77.7 kB / 0.8184 GB, free: 11.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00734/2.616, allocations: 4.874 MB / 0.8232 GB, free: 7.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003009/2.619, allocations: 1.244 MB / 0.8244 GB, free: 6.395 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002096/2.622, allocations: 166.4 kB / 0.8246 GB, free: 6.234 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001437/2.623, allocations: 0.6629 MB / 0.8252 GB, free: 5.664 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01531/2.638, allocations: 3.726 MB / 0.8289 GB, free: 2.285 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03609/2.675, allocations: 8.852 MB / 0.8375 GB, free: 9.234 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02276/2.697, allocations: 5.497 MB / 0.8429 GB, free: 4.609 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000322/2.698, allocations: 50.25 kB / 0.8429 GB, free: 4.562 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.08797/2.786, allocations: 16.24 MB / 0.8588 GB, free: 7.094 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000152/2.786, allocations: 80.06 kB / 0.8588 GB, free: 7.016 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002874/2.786, allocations: 160 kB / 0.859 GB, free: 6.859 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03126/2.818, allocations: 5.501 MB / 0.8644 GB, free: 1.344 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3461/3.164, allocations: 1.791 MB / 0.8661 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0681/3.232, allocations: 28.01 MB / 0.8935 GB, free: 98.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01166/3.244, allocations: 0.517 MB / 0.894 GB, free: 98.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002169/3.246, allocations: 480.2 kB / 0.8944 GB, free: 98.45 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 () * 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.002363/3.248, allocations: 0.7437 MB / 0.8952 GB, free: 98.33 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001928/3.25, allocations: 0.6571 MB / 0.8958 GB, free: 98.33 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04097/3.291, allocations: 10.89 MB / 0.9064 GB, free: 95.43 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.797e-05/3.291, allocations: 34.3 kB / 0.9065 GB, free: 95.43 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-05/3.291, allocations: 22.77 kB / 0.9065 GB, free: 95.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-05/3.291, allocations: 14.58 kB / 0.9065 GB, free: 95.43 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07457/3.366, allocations: 23.94 MB / 0.9299 GB, free: 85.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-05/3.366, allocations: 6.375 kB / 0.9299 GB, free: 85.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003909/3.37, allocations: 433.4 kB / 0.9303 GB, free: 85.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02815/3.398, allocations: 5.078 MB / 0.9353 GB, free: 84.86 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009933/3.399, allocations: 63.12 kB / 0.9353 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05837/3.458, allocations: 26.74 MB / 0.9614 GB, free: 69.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.206e-05/3.458, allocations: 17.84 kB / 0.9615 GB, free: 69.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04905/3.507, allocations: 16.79 MB / 0.9779 GB, free: 55.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005361/3.512, allocations: 1.265 MB / 0.9791 GB, free: 54.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002314/3.515, allocations: 60 kB / 0.9792 GB, free: 54.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007058/3.522, allocations: 262.1 kB / 0.9794 GB, free: 53.87 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001599/3.523, allocations: 234.2 kB / 0.9796 GB, free: 53.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000472/3.524, allocations: 92 kB / 0.9797 GB, free: 53.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01218/3.536, allocations: 4.474 MB / 0.9841 GB, free: 49.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.82e-07/3.536, allocations: 0 / 0.9841 GB, free: 49.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01293/3.549, allocations: 1.963 MB / 0.986 GB, free: 47.77 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 () * 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.001403/3.551, allocations: 216.2 kB / 0.9862 GB, free: 47.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.026/3.577, allocations: 10.01 MB / 0.996 GB, free: 38.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/3.577, allocations: 4 kB / 0.996 GB, free: 38.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01308/3.59, allocations: 4.437 MB / 1 GB, free: 34.21 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008645/3.598, allocations: 0.9873 MB / 1.001 GB, free: 33.26 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05304/3.652, allocations: 16.63 MB / 1.018 GB, free: 16.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01528/3.667, allocations: 5.721 MB / 1.023 GB, free: 10.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002688/3.67, allocations: 449.8 kB / 1.024 GB, free: 10.43 MB / 458.7 MB Notification: Performance of SimCode: time 1.894e-06/3.67, allocations: 0 / 1.024 GB, free: 10.43 MB / 458.7 MB Notification: Performance of Templates: time 1.072/4.742, allocations: 196.1 MB / 1.215 GB, free: 118.4 MB / 490.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