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.002133/0.002132, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 86.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.712e-05/3.731e-05, allocations: 4 kB / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3393, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1781/0.5174, allocations: 108.9 MB / 471.2 MB, free: 9.406 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.5178, allocations: 87.95 kB / 471.3 MB, free: 9.32 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9841/1.502, allocations: 180.1 MB / 0.6361 GB, free: 5.785 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.946e-06/1.502, allocations: 3.938 kB / 0.6361 GB, free: 5.781 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0008759/1.503, allocations: 188 kB / 0.6363 GB, free: 5.598 MB / 395.1 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.04112/1.544, allocations: 9.147 MB / 0.6452 GB, free: 12.36 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.494e-05/1.544, allocations: 12.03 kB / 0.6452 GB, free: 12.35 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7216/2.266, allocations: 16.65 MB / 0.6615 GB, free: 45.96 MB / 411.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05068/2.317, allocations: 14.59 MB / 0.6758 GB, free: 45.35 MB / 411.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005394/2.317, allocations: 274.7 kB / 0.676 GB, free: 45.35 MB / 411.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004304/2.321, allocations: 0.5166 MB / 0.6765 GB, free: 45.33 MB / 411.2 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03272/2.354, allocations: 11.71 MB / 0.688 GB, free: 45.29 MB / 411.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04657/2.401, allocations: 16.54 MB / 0.7041 GB, free: 41.68 MB / 411.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007757/2.402, allocations: 111.8 kB / 0.7042 GB, free: 41.66 MB / 411.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003697/2.405, allocations: 38.56 kB / 0.7042 GB, free: 41.66 MB / 411.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00363/2.409, allocations: 1.607 MB / 0.7058 GB, free: 41.64 MB / 411.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.134/2.543, allocations: 78.14 MB / 0.7821 GB, free: 5.027 MB / 427.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/2.554, allocations: 5.433 MB / 0.7874 GB, free: 1.777 MB / 427.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01728/2.572, allocations: 4.445 MB / 0.7918 GB, free: 15.72 MB / 443.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004655/2.576, allocations: 2.85 MB / 0.7946 GB, free: 12.66 MB / 443.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.94e-05/2.576, allocations: 68.5 kB / 0.7946 GB, free: 12.58 MB / 443.2 MB Notification: Performance of pre-optimization done (n=314): time 7.364e-06/2.576, allocations: 2.562 kB / 0.7946 GB, free: 12.58 MB / 443.2 MB Notification: Performance of matching and sorting (n=414): time 0.5114/3.088, allocations: 39.14 MB / 0.8328 GB, free: 87.87 MB / 459.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/3.088, allocations: 412.1 kB / 0.8332 GB, free: 87.43 MB / 459.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01458/3.103, allocations: 5.943 MB / 0.839 GB, free: 87.08 MB / 459.2 MB Notification: Performance of collectPreVariables (initialization): time 0.001118/3.104, allocations: 25.7 kB / 0.8391 GB, free: 87.05 MB / 459.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.005517/3.109, allocations: 5.558 MB / 0.8445 GB, free: 85.58 MB / 459.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.00237/3.112, allocations: 1.449 MB / 0.8459 GB, free: 84.68 MB / 459.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/3.113, allocations: 0 / 0.8459 GB, free: 84.68 MB / 459.2 MB Notification: Performance of setup shared object (initialization): time 0.000672/3.114, allocations: 0.715 MB / 0.8466 GB, free: 84.35 MB / 459.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008941/3.123, allocations: 3.97 MB / 0.8505 GB, free: 84.33 MB / 459.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01307/3.136, allocations: 9.092 MB / 0.8594 GB, free: 77.76 MB / 459.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01435/3.15, allocations: 5.946 MB / 0.8652 GB, free: 77.71 MB / 459.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002555/3.151, allocations: 51.59 kB / 0.8652 GB, free: 77.71 MB / 459.2 MB Notification: Performance of matching and sorting (n=1245) (initialization): time 0.05891/3.209, allocations: 15.69 MB / 0.8805 GB, free: 77.1 MB / 459.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001825/3.21, allocations: 83.66 kB / 0.8806 GB, free: 77.1 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003405/3.21, allocations: 179.2 kB / 0.8808 GB, free: 77.1 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02562/3.236, allocations: 4.568 MB / 0.8853 GB, free: 77.06 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01246/3.248, allocations: 2.022 MB / 0.8872 GB, free: 76.88 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05392/3.302, allocations: 23.46 MB / 0.9101 GB, free: 67.45 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01142/3.314, allocations: 369 kB / 0.9105 GB, free: 67.43 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002325/3.316, allocations: 0.5249 MB / 0.911 GB, free: 67.35 MB / 459.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 817 * 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 (1093): * Single equations (assignments): 1088 * 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,77.8%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002575/3.319, allocations: 0.5798 MB / 0.9116 GB, free: 66.89 MB / 459.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001954/3.321, allocations: 0.682 MB / 0.9122 GB, free: 66.52 MB / 459.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03646/3.357, allocations: 10.49 MB / 0.9225 GB, free: 62.84 MB / 459.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.4e-05/3.357, allocations: 45.67 kB / 0.9225 GB, free: 62.84 MB / 459.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.414e-05/3.357, allocations: 23.59 kB / 0.9225 GB, free: 62.84 MB / 459.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.539e-05/3.357, allocations: 22.53 kB / 0.9226 GB, free: 62.84 MB / 459.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.071/3.428, allocations: 22.09 MB / 0.9441 GB, free: 49.99 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.355e-05/3.429, allocations: 8 kB / 0.9441 GB, free: 49.98 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00482/3.433, allocations: 0.5336 MB / 0.9447 GB, free: 49.54 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02408/3.457, allocations: 4.055 MB / 0.9486 GB, free: 46.66 MB / 459.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009586/3.458, allocations: 15.66 kB / 0.9486 GB, free: 46.64 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04693/3.505, allocations: 20.28 MB / 0.9684 GB, free: 29.29 MB / 459.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.387e-05/3.505, allocations: 15.88 kB / 0.9685 GB, free: 29.27 MB / 459.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04646/3.552, allocations: 17.17 MB / 0.9852 GB, free: 14.11 MB / 459.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005509/3.558, allocations: 1.346 MB / 0.9865 GB, free: 12.84 MB / 459.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002362/3.56, allocations: 18.75 kB / 0.9866 GB, free: 12.82 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007097/3.567, allocations: 179.5 kB / 0.9867 GB, free: 12.73 MB / 459.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001792/3.569, allocations: 294.2 kB / 0.987 GB, free: 12.54 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000573/3.57, allocations: 111.2 kB / 0.9871 GB, free: 12.43 MB / 459.2 MB Notification: Performance of sorting global known variables: time 0.0112/3.581, allocations: 4.147 MB / 0.9912 GB, free: 8.859 MB / 459.2 MB Notification: Performance of sort global known variables: time 1.182e-06/3.581, allocations: 4 kB / 0.9912 GB, free: 8.855 MB / 459.2 MB Notification: Performance of remove unused functions: time 0.3648/3.946, allocations: 2.535 MB / 0.9937 GB, free: 79.53 MB / 459.2 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 (290): * Single equations (assignments): 286 * 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.001615/3.947, allocations: 203.6 kB / 0.9938 GB, free: 79.44 MB / 459.2 MB Notification: Performance of simCode: created initialization part: time 0.02299/3.97, allocations: 10.02 MB / 1.004 GB, free: 79.18 MB / 459.2 MB Notification: Performance of simCode: created event and clocks part: time 1.755e-05/3.97, allocations: 3.094 kB / 1.004 GB, free: 79.18 MB / 459.2 MB Notification: Performance of simCode: created simulation system equations: time 0.0102/3.981, allocations: 4.231 MB / 1.008 GB, free: 78.98 MB / 459.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008827/3.989, allocations: 0.9111 MB / 1.009 GB, free: 78.95 MB / 459.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07004/4.06, allocations: 18.79 MB / 1.027 GB, free: 75.68 MB / 459.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01926/4.079, allocations: 6.574 MB / 1.033 GB, free: 74.76 MB / 459.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003081/4.082, allocations: 488.1 kB / 1.034 GB, free: 74.75 MB / 459.2 MB Notification: Performance of SimCode: time 1.864e-06/4.082, allocations: 0 / 1.034 GB, free: 74.75 MB / 459.2 MB Notification: Performance of Templates: time 0.6475/4.73, allocations: 151.4 MB / 1.182 GB, free: 98.89 MB / 475.2 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