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.001525/0.001525, allocations: 182.4 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.943/1.943, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001098/0.001098, allocations: 82.67 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.077e-05, allocations: 8 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.09181, allocations: 47.58 MB / 369.1 MB, free: 2.18 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4618/0.5536, allocations: 109.5 MB / 478.6 MB, free: 132 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/0.554, allocations: 99.25 kB / 478.7 MB, free: 76 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9947/1.549, allocations: 183.8 MB / 0.647 GB, free: 36.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.855e-06/1.549, allocations: 0 / 0.647 GB, free: 36.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008693/1.55, allocations: 188 kB / 0.6471 GB, free: 35.92 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.03818/1.588, allocations: 9.157 MB / 0.6561 GB, free: 26.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/1.588, allocations: 12.03 kB / 0.6561 GB, free: 26.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1186/1.707, allocations: 16.66 MB / 0.6724 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3802/2.087, allocations: 14.59 MB / 0.6866 GB, free: 48.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009664/2.088, allocations: 0.6245 MB / 0.6872 GB, free: 48.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00468/2.093, allocations: 0.8566 MB / 0.6881 GB, free: 48.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06902/2.162, allocations: 19.26 MB / 0.7069 GB, free: 45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008144/2.163, allocations: 114.7 kB / 0.707 GB, free: 45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004024/2.167, allocations: 393 kB / 0.7074 GB, free: 45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00375/2.17, allocations: 1.604 MB / 0.7089 GB, free: 44.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05106/2.221, allocations: 15.36 MB / 0.7239 GB, free: 44.92 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1372/2.359, allocations: 80.59 MB / 0.8026 GB, free: 6.156 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03841/2.397, allocations: 7.84 MB / 0.8103 GB, free: 1.684 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01937/2.417, allocations: 4.609 MB / 0.8148 GB, free: 15.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03871/2.455, allocations: 14.08 MB / 0.8285 GB, free: 3.215 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.636e-05/2.456, allocations: 71.81 kB / 0.8286 GB, free: 3.141 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 8.005e-06/2.456, allocations: 0 / 0.8286 GB, free: 3.141 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.5687/3.024, allocations: 38.27 MB / 0.866 GB, free: 89.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001936/3.025, allocations: 408.1 kB / 0.8664 GB, free: 88.93 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02484/3.049, allocations: 6.598 MB / 0.8728 GB, free: 88.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001071/3.051, allocations: 88.86 kB / 0.8729 GB, free: 88.32 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006059/3.057, allocations: 5.496 MB / 0.8783 GB, free: 85.82 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002592/3.059, allocations: 1.486 MB / 0.8797 GB, free: 84.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001611/3.061, allocations: 187.7 kB / 0.8799 GB, free: 84.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009947/3.062, allocations: 0.7012 MB / 0.8806 GB, free: 84.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0106/3.073, allocations: 4.093 MB / 0.8846 GB, free: 84.58 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01402/3.087, allocations: 9.121 MB / 0.8935 GB, free: 78.18 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01403/3.101, allocations: 6.063 MB / 0.8994 GB, free: 78.11 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002068/3.101, allocations: 49.91 kB / 0.8994 GB, free: 78.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.05538/3.156, allocations: 16.72 MB / 0.9158 GB, free: 75.41 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001662/3.157, allocations: 85.3 kB / 0.9158 GB, free: 75.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00029/3.157, allocations: 172.6 kB / 0.916 GB, free: 75.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.026/3.183, allocations: 4.704 MB / 0.9206 GB, free: 74.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01263/3.196, allocations: 1.975 MB / 0.9225 GB, free: 74.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06282/3.259, allocations: 25.11 MB / 0.9471 GB, free: 62.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01317/3.272, allocations: 0.5387 MB / 0.9476 GB, free: 62.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002393/3.274, allocations: 0.5084 MB / 0.9481 GB, free: 62.69 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 () * 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.004177/3.278, allocations: 0.8052 MB / 0.9489 GB, free: 62.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002562/3.281, allocations: 0.721 MB / 0.9496 GB, free: 61.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04077/3.322, allocations: 10.85 MB / 0.9602 GB, free: 55.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.448e-05/3.322, allocations: 40 kB / 0.9602 GB, free: 55.16 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.131e-05/3.322, allocations: 22.34 kB / 0.9602 GB, free: 55.14 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-05/3.322, allocations: 22.14 kB / 0.9602 GB, free: 55.14 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08181/3.404, allocations: 23.68 MB / 0.9834 GB, free: 35.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.465e-05/3.404, allocations: 8 kB / 0.9834 GB, free: 35.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004947/3.409, allocations: 0.5184 MB / 0.9839 GB, free: 35.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02478/3.434, allocations: 4.147 MB / 0.9879 GB, free: 32.58 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001098/3.435, allocations: 75.28 kB / 0.988 GB, free: 32.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05636/3.491, allocations: 21.86 MB / 1.009 GB, free: 13.81 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/3.491, allocations: 11.94 kB / 1.009 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3994/3.891, allocations: 17.52 MB / 1.026 GB, free: 79.75 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005776/3.897, allocations: 1.367 MB / 1.028 GB, free: 79.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002845/3.9, allocations: 72.53 kB / 1.028 GB, free: 79.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007873/3.908, allocations: 251.5 kB / 1.028 GB, free: 79.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001911/3.909, allocations: 288.1 kB / 1.028 GB, free: 79.65 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009285/3.91, allocations: 112.8 kB / 1.029 GB, free: 79.65 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01553/3.926, allocations: 4.747 MB / 1.033 GB, free: 79.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.122e-06/3.926, allocations: 0 / 1.033 GB, free: 79.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01533/3.941, allocations: 2.2 MB / 1.035 GB, free: 79.36 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 () * 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.002014/3.944, allocations: 271.2 kB / 1.036 GB, free: 79.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02603/3.97, allocations: 10.45 MB / 1.046 GB, free: 78.99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/3.97, allocations: 0 / 1.046 GB, free: 78.99 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01107/3.981, allocations: 4.347 MB / 1.05 GB, free: 78.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01003/3.991, allocations: 1.059 MB / 1.051 GB, free: 78.73 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06671/4.058, allocations: 18.96 MB / 1.07 GB, free: 75.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01664/4.074, allocations: 6.574 MB / 1.076 GB, free: 74.53 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003032/4.077, allocations: 496.8 kB / 1.076 GB, free: 74.52 MB / 458.7 MB Notification: Performance of SimCode: time 1.243e-06/4.077, allocations: 0 / 1.076 GB, free: 74.52 MB / 458.7 MB Notification: Performance of Templates: time 0.6459/4.723, allocations: 154.5 MB / 1.227 GB, free: 96.57 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