Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.5 MB / 230.3 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 97.78 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.776e-05/1.776e-05, allocations: 3.938 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 50.41 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3802/0.486, allocations: 111 MB / 498.6 MB, free: 15.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.4864, allocations: 91.94 kB / 498.7 MB, free: 15.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6926/1.179, allocations: 181.8 MB / 0.6645 GB, free: 42.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.583e-06/1.179, allocations: 0 / 0.6645 GB, free: 42.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008007/1.18, allocations: 195.3 kB / 0.6647 GB, free: 42.51 MB / 426.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.03019/1.21, allocations: 9.125 MB / 0.6736 GB, free: 33.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/1.21, allocations: 12.03 kB / 0.6736 GB, free: 33.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06069/1.271, allocations: 16.64 MB / 0.6899 GB, free: 16.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03102/1.302, allocations: 13.63 MB / 0.7032 GB, free: 3.031 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004194/1.302, allocations: 276 kB / 0.7035 GB, free: 2.762 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004696/1.307, allocations: 0.5152 MB / 0.704 GB, free: 2.246 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5417/1.849, allocations: 11.7 MB / 0.7154 GB, free: 53.04 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03754/1.887, allocations: 16.54 MB / 0.7316 GB, free: 49.43 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003876/1.887, allocations: 111.6 kB / 0.7317 GB, free: 49.43 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001327/1.888, allocations: 36.72 kB / 0.7317 GB, free: 49.43 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001873/1.89, allocations: 1.603 MB / 0.7333 GB, free: 49.41 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08311/1.973, allocations: 77.99 MB / 0.8094 GB, free: 0.8672 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01672/1.99, allocations: 5.831 MB / 0.8151 GB, free: 15.57 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006449/1.997, allocations: 3.884 MB / 0.8189 GB, free: 13.79 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00377/2, allocations: 2.855 MB / 0.8217 GB, free: 11.31 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.943e-05/2, allocations: 69.73 kB / 0.8218 GB, free: 11.25 MB / 442.8 MB Notification: Performance of pre-optimization done (n=316): time 9.718e-06/2.001, allocations: 0 / 0.8218 GB, free: 11.25 MB / 442.8 MB Notification: Performance of matching and sorting (n=426): time 0.142/2.143, allocations: 45.32 MB / 0.866 GB, free: 13.38 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002045/2.143, allocations: 406.7 kB / 0.8664 GB, free: 12.89 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01145/2.154, allocations: 5.847 MB / 0.8721 GB, free: 7.793 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001122/2.155, allocations: 25.7 kB / 0.8722 GB, free: 7.762 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004996/2.16, allocations: 5.847 MB / 0.8779 GB, free: 2.461 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002027/2.162, allocations: 1.488 MB / 0.8793 GB, free: 1.109 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006882/2.163, allocations: 0 / 0.8793 GB, free: 1.109 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0005188/2.164, allocations: 0.7045 MB / 0.88 GB, free: 0.5117 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3132/2.477, allocations: 4.143 MB / 0.8841 GB, free: 94.09 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01611/2.493, allocations: 9.206 MB / 0.893 GB, free: 87.57 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01718/2.51, allocations: 6.078 MB / 0.899 GB, free: 87.52 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004963/2.511, allocations: 50.38 kB / 0.899 GB, free: 87.52 MB / 474.8 MB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.06336/2.574, allocations: 16.51 MB / 0.9152 GB, free: 87.07 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002214/2.574, allocations: 79.77 kB / 0.9152 GB, free: 87.07 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002898/2.575, allocations: 185.2 kB / 0.9154 GB, free: 87.06 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0246/2.599, allocations: 4.777 MB / 0.9201 GB, free: 87.03 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0112/2.611, allocations: 2.035 MB / 0.9221 GB, free: 86.85 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05356/2.664, allocations: 24.67 MB / 0.9461 GB, free: 79.52 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01089/2.675, allocations: 381 kB / 0.9465 GB, free: 79.52 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001823/2.677, allocations: 0.5263 MB / 0.947 GB, free: 79.44 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 811 * 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],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1094): * Single equations (assignments): 1089 * 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%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001834/2.679, allocations: 0.5793 MB / 0.9476 GB, free: 79.09 MB / 474.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02081/2.7, allocations: 10.93 MB / 0.9583 GB, free: 75.7 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002519/2.702, allocations: 0.683 MB / 0.9589 GB, free: 75.59 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02241/2.725, allocations: 11.03 MB / 0.9697 GB, free: 71.73 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-05/2.725, allocations: 47.42 kB / 0.9698 GB, free: 71.72 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.064e-05/2.725, allocations: 27.98 kB / 0.9698 GB, free: 71.72 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.36e-05/2.725, allocations: 18.38 kB / 0.9698 GB, free: 71.72 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0463/2.771, allocations: 23.47 MB / 0.9927 GB, free: 56.36 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.774e-05/2.771, allocations: 8 kB / 0.9927 GB, free: 56.35 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00308/2.774, allocations: 0.5858 MB / 0.9933 GB, free: 55.88 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01342/2.788, allocations: 4.343 MB / 0.9975 GB, free: 52.81 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000931/2.789, allocations: 18.53 kB / 0.9976 GB, free: 52.8 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02832/2.817, allocations: 21.6 MB / 1.019 GB, free: 34.3 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/2.817, allocations: 14.23 kB / 1.019 GB, free: 34.29 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03674/2.854, allocations: 18.12 MB / 1.036 GB, free: 18.34 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006053/2.86, allocations: 1.385 MB / 1.038 GB, free: 17.05 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002923/2.863, allocations: 16.02 kB / 1.038 GB, free: 17.04 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006967/2.87, allocations: 195.9 kB / 1.038 GB, free: 16.93 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00179/2.872, allocations: 298.6 kB / 1.038 GB, free: 16.74 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006736/2.873, allocations: 113 kB / 1.038 GB, free: 16.64 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01259/2.885, allocations: 4.078 MB / 1.042 GB, free: 13 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.342e-06/2.885, allocations: 0 / 1.042 GB, free: 13 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01752/2.903, allocations: 1.956 MB / 1.044 GB, free: 11.06 MB / 474.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 (297): * Single equations (assignments): 293 * 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%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.502/3.405, allocations: 20.07 MB / 1.064 GB, free: 82.94 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03018/3.435, allocations: 10.41 MB / 1.074 GB, free: 82.68 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.94e-05/3.435, allocations: 1.375 kB / 1.074 GB, free: 82.68 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01205/3.447, allocations: 4.509 MB / 1.078 GB, free: 82.47 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008066/3.456, allocations: 0.9139 MB / 1.079 GB, free: 82.44 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0609/3.516, allocations: 20.55 MB / 1.099 GB, free: 78.98 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01352/3.53, allocations: 6.571 MB / 1.106 GB, free: 78.05 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01049/3.541, allocations: 3.018 MB / 1.109 GB, free: 77.98 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009005/3.55, allocations: 4.258 MB / 1.113 GB, free: 75.19 MB / 474.8 MB Notification: Performance of SimCode: time 1.092e-06/3.55, allocations: 0 / 1.113 GB, free: 75.19 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6243/4.174, allocations: 171.6 MB / 1.28 GB, free: 71.95 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/4.174, allocations: 151.4 kB / 1.281 GB, free: 71.76 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.472/12.65, allocations: 3.938 kB / 1.281 GB, free: 71.76 MB / 490.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat