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.0009112/0.0009112, allocations: 180.9 kB / 17.41 MB, free: 4.406 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.292/1.292, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.0007683/0.0007684, allocations: 92.92 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003038, allocations: 11.98 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2249, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.3407, allocations: 109.8 MB / 485.6 MB, free: 2.738 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.341, allocations: 91.95 kB / 485.7 MB, free: 2.648 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7364/1.077, allocations: 180 MB / 0.6501 GB, free: 38.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.647e-06/1.077, allocations: 0 / 0.6501 GB, free: 38.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000832/1.078, allocations: 193.8 kB / 0.6503 GB, free: 38.99 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.03196/1.11, allocations: 10.02 MB / 0.6601 GB, free: 36.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/1.11, allocations: 10.25 kB / 0.6601 GB, free: 36.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04606/1.156, allocations: 11.71 MB / 0.6715 GB, free: 36.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03035/1.187, allocations: 13.18 MB / 0.6844 GB, free: 34.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006182/1.188, allocations: 0.6215 MB / 0.685 GB, free: 34.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004121/1.192, allocations: 0.8599 MB / 0.6858 GB, free: 34.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04232/1.234, allocations: 19.17 MB / 0.7045 GB, free: 31.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007797/1.235, allocations: 116.3 kB / 0.7047 GB, free: 31.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003385/1.238, allocations: 390.7 kB / 0.705 GB, free: 31.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002529/1.241, allocations: 1.599 MB / 0.7066 GB, free: 31.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03236/1.273, allocations: 15.28 MB / 0.7215 GB, free: 30.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1124/1.386, allocations: 80.5 MB / 0.8001 GB, free: 13.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02204/1.408, allocations: 7.896 MB / 0.8078 GB, free: 6.77 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006194/1.414, allocations: 4.047 MB / 0.8118 GB, free: 3.133 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2634/1.677, allocations: 13.96 MB / 0.8254 GB, free: 82.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.479e-05/1.677, allocations: 70 kB / 0.8255 GB, free: 82.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=308): time 6.683e-06/1.677, allocations: 2.312 kB / 0.8255 GB, free: 82.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=408): time 0.1541/1.832, allocations: 47.38 MB / 0.8718 GB, free: 77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/1.832, allocations: 399.7 kB / 0.8721 GB, free: 76.56 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0167/1.848, allocations: 7.534 MB / 0.8795 GB, free: 75.98 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001199/1.85, allocations: 89.77 kB / 0.8796 GB, free: 75.95 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00602/1.856, allocations: 5.876 MB / 0.8853 GB, free: 73.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002595/1.858, allocations: 1.48 MB / 0.8868 GB, free: 72.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001434/1.86, allocations: 181.9 kB / 0.8869 GB, free: 72.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009334/1.861, allocations: 0.6928 MB / 0.8876 GB, free: 72.12 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006381/1.867, allocations: 4.18 MB / 0.8917 GB, free: 72.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00863/1.876, allocations: 9.24 MB / 0.9007 GB, free: 64.28 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01497/1.891, allocations: 14.5 MB / 0.9149 GB, free: 53.95 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000259/1.891, allocations: 50.72 kB / 0.9149 GB, free: 53.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.03676/1.928, allocations: 17.25 MB / 0.9318 GB, free: 41.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002264/1.928, allocations: 80 kB / 0.9319 GB, free: 41.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003269/1.929, allocations: 172.1 kB / 0.932 GB, free: 40.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01384/1.942, allocations: 4.712 MB / 0.9366 GB, free: 37.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006606/1.949, allocations: 1.962 MB / 0.9385 GB, free: 35.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03494/1.984, allocations: 25.26 MB / 0.9632 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008297/1.992, allocations: 0.5358 MB / 0.9637 GB, free: 13.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/1.994, allocations: 0.514 MB / 0.9642 GB, free: 13.2 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.009799/2.004, allocations: 4.101 MB / 0.9682 GB, free: 9.609 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002007/2.006, allocations: 0.7127 MB / 0.9689 GB, free: 8.891 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2561/2.262, allocations: 10.96 MB / 0.9796 GB, free: 69.22 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-05/2.263, allocations: 41.97 kB / 0.9797 GB, free: 69.22 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.127e-05/2.263, allocations: 22.81 kB / 0.9797 GB, free: 69.22 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.483e-05/2.263, allocations: 21.61 kB / 0.9797 GB, free: 69.22 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0458/2.309, allocations: 23.78 MB / 1.003 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.642e-05/2.309, allocations: 10.56 kB / 1.003 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002533/2.311, allocations: 0.5187 MB / 1.003 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01371/2.325, allocations: 4.162 MB / 1.008 GB, free: 67.86 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007999/2.326, allocations: 75.64 kB / 1.008 GB, free: 67.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0319/2.358, allocations: 21.99 MB / 1.029 GB, free: 66.51 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/2.358, allocations: 15.22 kB / 1.029 GB, free: 66.51 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0285/2.386, allocations: 16.13 MB / 1.045 GB, free: 60.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004242/2.39, allocations: 1.371 MB / 1.046 GB, free: 60.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00258/2.393, allocations: 71.75 kB / 1.046 GB, free: 60.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004782/2.398, allocations: 249.7 kB / 1.046 GB, free: 59.99 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001279/2.399, allocations: 292.9 kB / 1.047 GB, free: 59.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005449/2.4, allocations: 114.6 kB / 1.047 GB, free: 59.91 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01007/2.41, allocations: 4.816 MB / 1.052 GB, free: 58.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.51e-07/2.41, allocations: 0 / 1.052 GB, free: 58.32 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01339/2.423, allocations: 2.195 MB / 1.054 GB, free: 58.1 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.001339/2.425, allocations: 278.7 kB / 1.054 GB, free: 57.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01677/2.441, allocations: 10.6 MB / 1.064 GB, free: 54.26 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/2.442, allocations: 2.844 kB / 1.064 GB, free: 54.26 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006743/2.448, allocations: 4.427 MB / 1.069 GB, free: 52.38 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01766/2.466, allocations: 1.109 MB / 1.07 GB, free: 51.96 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04938/2.515, allocations: 25.81 MB / 1.095 GB, free: 35.42 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01121/2.527, allocations: 6.387 MB / 1.101 GB, free: 30.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001912/2.529, allocations: 497.1 kB / 1.102 GB, free: 30.19 MB / 458.7 MB Notification: Performance of SimCode: time 3.206e-06/2.529, allocations: 0 / 1.102 GB, free: 30.19 MB / 458.7 MB Notification: Performance of Templates: time 0.4415/2.97, allocations: 159.8 MB / 1.258 GB, free: 39.84 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