Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 223.3 MB / 241.4 MB, free: 9.863 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009685/0.0009685, allocations: 85.61 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004433/0.0004434, allocations: 23.94 kB / 352.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2892, allocations: 50.41 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1738/0.4631, allocations: 98.28 MB / 0.4893 GB, free: 14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.4635, allocations: 95.95 kB / 0.4894 GB, free: 13.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5584/1.022, allocations: 159.5 MB / 0.6451 GB, free: 14.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.022, allocations: 0 / 0.6451 GB, free: 14.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007371/1.023, allocations: 148 kB / 0.6453 GB, free: 14.52 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.02535/1.048, allocations: 8.645 MB / 0.6537 GB, free: 5.773 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/1.048, allocations: 12.03 kB / 0.6537 GB, free: 5.762 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2233/1.271, allocations: 11.53 MB / 0.665 GB, free: 52.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01995/1.291, allocations: 11.12 MB / 0.6758 GB, free: 51.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003502/1.292, allocations: 0.5255 MB / 0.6764 GB, free: 51.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00211/1.294, allocations: 0.7228 MB / 0.6771 GB, free: 51.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02603/1.32, allocations: 16.22 MB / 0.6929 GB, free: 48.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002877/1.32, allocations: 108.1 kB / 0.693 GB, free: 48.31 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008108/1.321, allocations: 342.3 kB / 0.6933 GB, free: 48.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001495/1.323, allocations: 1.485 MB / 0.6948 GB, free: 48.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/1.345, allocations: 12.69 MB / 0.7072 GB, free: 48.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06764/1.412, allocations: 73.14 MB / 0.7786 GB, free: 13.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01732/1.43, allocations: 7.427 MB / 0.7859 GB, free: 8.773 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004716/1.434, allocations: 4.007 MB / 0.7898 GB, free: 5.176 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02383/1.458, allocations: 11.89 MB / 0.8014 GB, free: 12.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.147e-05/1.458, allocations: 72.16 kB / 0.8015 GB, free: 12.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 5.44e-06/1.458, allocations: 0 / 0.8015 GB, free: 12.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=339): time 0.3425/1.801, allocations: 44.84 MB / 0.8452 GB, free: 94.02 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.187e-05/1.801, allocations: 397.2 kB / 0.8456 GB, free: 93.58 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008995/1.81, allocations: 6.986 MB / 0.8524 GB, free: 93.06 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005501/1.811, allocations: 76.55 kB / 0.8525 GB, free: 93.03 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003182/1.814, allocations: 5.229 MB / 0.8576 GB, free: 91.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00108/1.815, allocations: 1.25 MB / 0.8588 GB, free: 90.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003703/1.815, allocations: 164.7 kB / 0.859 GB, free: 90.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003146/1.816, allocations: 0.6527 MB / 0.8596 GB, free: 90.13 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00452/1.82, allocations: 3.803 MB / 0.8634 GB, free: 90.11 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005659/1.826, allocations: 8.499 MB / 0.8717 GB, free: 84.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01125/1.837, allocations: 13.26 MB / 0.8846 GB, free: 78.21 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.587e-05/1.837, allocations: 46.66 kB / 0.8847 GB, free: 78.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.02937/1.867, allocations: 16.72 MB / 0.901 GB, free: 74.81 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/1.867, allocations: 73.25 kB / 0.9011 GB, free: 74.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001881/1.867, allocations: 166.3 kB / 0.9012 GB, free: 74.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01396/1.881, allocations: 5.469 MB / 0.9066 GB, free: 73.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005532/1.886, allocations: 1.8 MB / 0.9083 GB, free: 73.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03375/1.92, allocations: 28.11 MB / 0.9358 GB, free: 60.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008921/1.929, allocations: 0.5255 MB / 0.9363 GB, free: 60.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002175/1.931, allocations: 480.7 kB / 0.9367 GB, free: 60.23 MB / 474.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 (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.008392/1.94, allocations: 3.465 MB / 0.9401 GB, free: 57.53 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001828/1.942, allocations: 0.6518 MB / 0.9408 GB, free: 56.87 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02161/1.963, allocations: 10.96 MB / 0.9515 GB, free: 48.49 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.097e-05/1.963, allocations: 36 kB / 0.9515 GB, free: 48.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-05/1.963, allocations: 18.31 kB / 0.9515 GB, free: 48.44 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.994e-05/1.963, allocations: 20.64 kB / 0.9515 GB, free: 48.44 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04542/2.009, allocations: 23.97 MB / 0.9749 GB, free: 28.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.929e-05/2.009, allocations: 8 kB / 0.9749 GB, free: 28.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001922/2.011, allocations: 447.3 kB / 0.9754 GB, free: 28.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01357/2.025, allocations: 5.086 MB / 0.9803 GB, free: 24.95 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005827/2.025, allocations: 60 kB / 0.9804 GB, free: 24.89 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2891/2.314, allocations: 26.85 MB / 1.007 GB, free: 82.22 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.397e-05/2.314, allocations: 14.06 kB / 1.007 GB, free: 82.22 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03026/2.345, allocations: 15.71 MB / 1.022 GB, free: 81.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002613/2.347, allocations: 0.6701 MB / 1.023 GB, free: 81.27 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002727/2.35, allocations: 57.41 kB / 1.023 GB, free: 81.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004803/2.355, allocations: 254.8 kB / 1.023 GB, free: 81.27 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001278/2.356, allocations: 240.1 kB / 1.023 GB, free: 81.26 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005243/2.357, allocations: 94.05 kB / 1.023 GB, free: 81.26 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009969/2.367, allocations: 4.465 MB / 1.028 GB, free: 81.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.72e-07/2.367, allocations: 0 / 1.028 GB, free: 81.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01096/2.378, allocations: 1.967 MB / 1.03 GB, free: 81.04 MB / 474.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.001128/2.379, allocations: 222.3 kB / 1.03 GB, free: 80.95 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01612/2.395, allocations: 10.12 MB / 1.04 GB, free: 80.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/2.395, allocations: 0 / 1.04 GB, free: 80.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007032/2.402, allocations: 4.498 MB / 1.044 GB, free: 79.97 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01342/2.415, allocations: 1.017 MB / 1.045 GB, free: 79.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03749/2.453, allocations: 21.54 MB / 1.066 GB, free: 72.35 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01241/2.465, allocations: 5.526 MB / 1.071 GB, free: 71.45 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01294/2.478, allocations: 2.638 MB / 1.074 GB, free: 71.39 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001969/2.48, allocations: 392.5 kB / 1.074 GB, free: 71.38 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/2.48, allocations: 0 / 1.074 GB, free: 71.38 MB / 474.7 MB Notification: Performance of Templates: time 0.1745/2.655, allocations: 84.23 MB / 1.157 GB, free: 13.54 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches