Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00155/0.00155, allocations: 188.9 kB / 16.41 MB, free: 5.723 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.957/1.957, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001139/0.001139, allocations: 94 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000384/0.0003842, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3295, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.5144, allocations: 109.6 MB / 484.2 MB, free: 3.094 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003565/0.5148, allocations: 95.95 kB / 484.2 MB, free: 3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.25/1.765, allocations: 183.7 MB / 0.6523 GB, free: 40.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.746e-06/1.765, allocations: 0 / 0.6523 GB, free: 40.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008263/1.765, allocations: 184.3 kB / 0.6525 GB, free: 40.29 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.04318/1.809, allocations: 10.31 MB / 0.6625 GB, free: 36.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/1.809, allocations: 11.03 kB / 0.6625 GB, free: 36.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.119/1.928, allocations: 16.63 MB / 0.6788 GB, free: 36.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04764/1.975, allocations: 14.67 MB / 0.6931 GB, free: 34.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009228/1.976, allocations: 0.6263 MB / 0.6937 GB, free: 34.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004499/1.981, allocations: 0.8553 MB / 0.6946 GB, free: 34.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06037/2.041, allocations: 19.42 MB / 0.7135 GB, free: 31.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006568/2.042, allocations: 110.1 kB / 0.7136 GB, free: 31.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003479/2.046, allocations: 391.3 kB / 0.714 GB, free: 31.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00361/2.049, allocations: 1.598 MB / 0.7156 GB, free: 31.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05026/2.1, allocations: 15.59 MB / 0.7308 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1457/2.245, allocations: 80.59 MB / 0.8095 GB, free: 6.797 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04223/2.288, allocations: 7.901 MB / 0.8172 GB, free: 316 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3532/2.641, allocations: 14.07 MB / 0.8309 GB, free: 77.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.104e-05/2.641, allocations: 69.2 kB / 0.831 GB, free: 77.76 MB / 458.7 MB Notification: Performance of pre-optimization done (n=308): time 6.793e-06/2.641, allocations: 0 / 0.831 GB, free: 77.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=408): time 0.2965/2.938, allocations: 47.57 MB / 0.8775 GB, free: 72.22 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/2.938, allocations: 406.2 kB / 0.8778 GB, free: 71.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0176/2.955, allocations: 6.668 MB / 0.8844 GB, free: 71.24 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001017/2.956, allocations: 90.83 kB / 0.8844 GB, free: 71.21 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005285/2.962, allocations: 5.494 MB / 0.8898 GB, free: 68.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00236/2.964, allocations: 1.486 MB / 0.8913 GB, free: 67.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/2.966, allocations: 183.6 kB / 0.8914 GB, free: 67.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007347/2.966, allocations: 0.7041 MB / 0.8921 GB, free: 67.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01066/2.977, allocations: 4.175 MB / 0.8962 GB, free: 67.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01428/2.991, allocations: 9.207 MB / 0.9052 GB, free: 59.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01409/3.006, allocations: 6.088 MB / 0.9111 GB, free: 57.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001925/3.006, allocations: 50.06 kB / 0.9112 GB, free: 57.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.05591/3.062, allocations: 16.9 MB / 0.9277 GB, free: 49.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001305/3.062, allocations: 80 kB / 0.9278 GB, free: 49.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000293/3.062, allocations: 176 kB / 0.9279 GB, free: 49.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02633/3.089, allocations: 4.727 MB / 0.9326 GB, free: 46.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01242/3.101, allocations: 1.966 MB / 0.9345 GB, free: 44.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06514/3.166, allocations: 26.22 MB / 0.9601 GB, free: 21.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01213/3.178, allocations: 0.5336 MB / 0.9606 GB, free: 21.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002277/3.181, allocations: 0.5163 MB / 0.9611 GB, free: 20.95 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 793 * 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],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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1063): * Single equations (assignments): 1058 * 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%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01153/3.192, allocations: 4.09 MB / 0.9651 GB, free: 17.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002121/3.194, allocations: 0.7174 MB / 0.9658 GB, free: 16.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04238/3.237, allocations: 10.94 MB / 0.9765 GB, free: 7.957 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-05/3.237, allocations: 41.95 kB / 0.9765 GB, free: 7.918 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.716e-05/3.237, allocations: 20 kB / 0.9765 GB, free: 7.898 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.497e-05/3.237, allocations: 23.17 kB / 0.9766 GB, free: 7.895 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4238/3.661, allocations: 23.8 MB / 0.9998 GB, free: 66.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.357e-05/3.661, allocations: 10 kB / 0.9998 GB, free: 66.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004854/3.666, allocations: 0.525 MB / 1 GB, free: 66.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02568/3.692, allocations: 4.149 MB / 1.004 GB, free: 66.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001025/3.693, allocations: 81.5 kB / 1.004 GB, free: 66.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06266/3.756, allocations: 22.94 MB / 1.027 GB, free: 65.32 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.289e-05/3.756, allocations: 12.94 kB / 1.027 GB, free: 65.32 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05087/3.806, allocations: 17.63 MB / 1.044 GB, free: 59.84 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005693/3.812, allocations: 1.368 MB / 1.045 GB, free: 59.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002686/3.815, allocations: 83.84 kB / 1.046 GB, free: 59.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007252/3.822, allocations: 245.7 kB / 1.046 GB, free: 59.33 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001804/3.824, allocations: 294.9 kB / 1.046 GB, free: 59.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008154/3.825, allocations: 104.8 kB / 1.046 GB, free: 59.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01351/3.838, allocations: 4.82 MB / 1.051 GB, free: 57.67 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.32e-07/3.839, allocations: 0 / 1.051 GB, free: 57.67 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0142/3.853, allocations: 2.196 MB / 1.053 GB, free: 57.45 MB / 458.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 (284): * Single equations (assignments): 280 * 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%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001681/3.854, allocations: 268.7 kB / 1.053 GB, free: 57.31 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02543/3.88, allocations: 10.6 MB / 1.064 GB, free: 53.61 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.742e-05/3.88, allocations: 0 / 1.064 GB, free: 53.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01098/3.891, allocations: 4.42 MB / 1.068 GB, free: 51.72 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009251/3.9, allocations: 1.06 MB / 1.069 GB, free: 51.33 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07195/3.972, allocations: 25.75 MB / 1.094 GB, free: 37.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01691/3.989, allocations: 6.576 MB / 1.101 GB, free: 32.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003026/3.992, allocations: 497.9 kB / 1.101 GB, free: 31.97 MB / 458.7 MB Notification: Performance of SimCode: time 1.422e-06/3.992, allocations: 0 / 1.101 GB, free: 31.97 MB / 458.7 MB Notification: Performance of Templates: time 0.6436/4.636, allocations: 154.5 MB / 1.252 GB, free: 40.46 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches