Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001467/0.001467, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.484/1.484, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008852/0.0008851, allocations: 98.67 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.345e-05/2.347e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08231/0.08235, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3464/0.4288, allocations: 109.5 MB / 479.5 MB, free: 156 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.429, allocations: 88.27 kB / 479.6 MB, free: 112 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6808/1.11, allocations: 183.8 MB / 0.6479 GB, free: 35.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.11, allocations: 4 kB / 0.6479 GB, free: 35.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000737/1.111, allocations: 188 kB / 0.6481 GB, free: 35.62 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.03033/1.141, allocations: 9.153 MB / 0.657 GB, free: 26.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.617e-05/1.141, allocations: 8.031 kB / 0.657 GB, free: 26.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06164/1.203, allocations: 16.65 MB / 0.6733 GB, free: 9.684 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5229/1.726, allocations: 14.6 MB / 0.6875 GB, free: 46.63 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008871/1.727, allocations: 0.6247 MB / 0.6881 GB, free: 46.61 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004735/1.731, allocations: 0.855 MB / 0.689 GB, free: 46.61 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05295/1.784, allocations: 19.26 MB / 0.7078 GB, free: 42.96 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008271/1.785, allocations: 108.1 kB / 0.7079 GB, free: 42.96 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004386/1.79, allocations: 393.2 kB / 0.7083 GB, free: 42.96 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002843/1.792, allocations: 1.604 MB / 0.7098 GB, free: 42.94 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03812/1.831, allocations: 15.36 MB / 0.7248 GB, free: 42.88 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1113/1.942, allocations: 80.59 MB / 0.8035 GB, free: 4.086 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0242/1.966, allocations: 8.006 MB / 0.8114 GB, free: 15.7 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006366/1.973, allocations: 4.003 MB / 0.8153 GB, free: 11.98 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02909/2.002, allocations: 14.23 MB / 0.8292 GB, free: 0 / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001353/2.002, allocations: 79.98 kB / 0.8292 GB, free: 15.92 MB / 458.8 MB Notification: Performance of pre-optimization done (n=308): time 8.957e-06/2.002, allocations: 0 / 0.8292 GB, free: 15.92 MB / 458.8 MB Notification: Performance of matching and sorting (n=408): time 0.4615/2.463, allocations: 38.22 MB / 0.8666 GB, free: 88.32 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001929/2.464, allocations: 406 kB / 0.8669 GB, free: 87.88 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01478/2.479, allocations: 6.597 MB / 0.8734 GB, free: 87.3 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001002/2.48, allocations: 90.97 kB / 0.8735 GB, free: 87.27 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004268/2.484, allocations: 5.881 MB / 0.8792 GB, free: 84.59 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002169/2.486, allocations: 1.481 MB / 0.8807 GB, free: 83.71 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006905/2.487, allocations: 187.3 kB / 0.8808 GB, free: 83.71 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004428/2.487, allocations: 0.6962 MB / 0.8815 GB, free: 83.39 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005827/2.493, allocations: 4.091 MB / 0.8855 GB, free: 83.36 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009279/2.502, allocations: 9.123 MB / 0.8944 GB, free: 76.96 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009038/2.511, allocations: 6.058 MB / 0.9003 GB, free: 76.9 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002164/2.512, allocations: 48.66 kB / 0.9004 GB, free: 76.9 MB / 458.8 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.04208/2.554, allocations: 17.09 MB / 0.9171 GB, free: 72.74 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004227/2.554, allocations: 78.16 kB / 0.9171 GB, free: 72.74 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005122/2.555, allocations: 172.9 kB / 0.9173 GB, free: 72.74 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0151/2.57, allocations: 4.703 MB / 0.9219 GB, free: 71.79 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007227/2.577, allocations: 1.963 MB / 0.9238 GB, free: 71.55 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03479/2.612, allocations: 25.11 MB / 0.9483 GB, free: 60.28 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009707/2.622, allocations: 0.5377 MB / 0.9489 GB, free: 60.11 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002082/2.624, allocations: 0.5151 MB / 0.9494 GB, free: 59.9 MB / 458.8 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.002/2.626, allocations: 0.8126 MB / 0.9502 GB, free: 59.09 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002026/2.628, allocations: 0.7135 MB / 0.9509 GB, free: 58.37 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02134/2.649, allocations: 10.85 MB / 0.9615 GB, free: 49.79 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.721e-05/2.649, allocations: 40 kB / 0.9615 GB, free: 49.75 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.26e-05/2.649, allocations: 20 kB / 0.9615 GB, free: 49.73 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.463e-05/2.65, allocations: 25.23 kB / 0.9615 GB, free: 49.72 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05378/2.703, allocations: 23.68 MB / 0.9847 GB, free: 30.57 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.235e-05/2.703, allocations: 8 kB / 0.9847 GB, free: 30.57 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/2.706, allocations: 0.524 MB / 0.9852 GB, free: 30.12 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01352/2.72, allocations: 4.132 MB / 0.9892 GB, free: 27.18 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000971/2.721, allocations: 80.33 kB / 0.9893 GB, free: 27.11 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02838/2.749, allocations: 21.85 MB / 1.011 GB, free: 8.41 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/2.75, allocations: 11.94 kB / 1.011 GB, free: 8.398 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3542/3.104, allocations: 17.53 MB / 1.028 GB, free: 79.28 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006065/3.11, allocations: 1.373 MB / 1.029 GB, free: 79.19 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002888/3.113, allocations: 78.38 kB / 1.029 GB, free: 79.19 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005815/3.119, allocations: 249.7 kB / 1.029 GB, free: 79.19 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001325/3.12, allocations: 286.5 kB / 1.03 GB, free: 79.18 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004145/3.12, allocations: 111.9 kB / 1.03 GB, free: 79.18 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01255/3.133, allocations: 4.749 MB / 1.034 GB, free: 78.89 MB / 458.8 MB Notification: Performance of sort global known variables: time 5.91e-07/3.133, allocations: 0 / 1.034 GB, free: 78.89 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01886/3.152, allocations: 2.199 MB / 1.037 GB, free: 78.89 MB / 458.8 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.001998/3.154, allocations: 271 kB / 1.037 GB, free: 78.8 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02452/3.179, allocations: 10.44 MB / 1.047 GB, free: 78.52 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 2.236e-05/3.179, allocations: 3.219 kB / 1.047 GB, free: 78.52 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009551/3.188, allocations: 4.354 MB / 1.051 GB, free: 78.29 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0105/3.199, allocations: 1.057 MB / 1.052 GB, free: 78.26 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06345/3.262, allocations: 17.9 MB / 1.07 GB, free: 75 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01982/3.282, allocations: 6.57 MB / 1.076 GB, free: 73.69 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.01512/3.297, allocations: 2.947 MB / 1.079 GB, free: 73.62 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002829/3.3, allocations: 433.1 kB / 1.08 GB, free: 73.61 MB / 458.8 MB Notification: Performance of SimCode: time 2.074e-06/3.3, allocations: 0 / 1.08 GB, free: 73.61 MB / 458.8 MB Notification: Performance of Templates: time 0.2243/3.525, allocations: 93.2 MB / 1.171 GB, free: 6.953 MB / 458.8 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches