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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00101/0.001011, allocations: 180.9 kB / 17.01 MB, free: 5.125 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.26/1.26, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0008493/0.0008492, allocations: 99.89 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002276/0.0002276, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2041, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1102/0.3143, allocations: 109.6 MB / 485.5 MB, free: 2.977 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.3146, allocations: 95.95 kB / 485.6 MB, free: 2.883 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6955/1.01, allocations: 183.7 MB / 0.6536 GB, free: 40.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.01, allocations: 0 / 0.6536 GB, free: 40.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006773/1.011, allocations: 186.1 kB / 0.6538 GB, free: 40.25 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.02724/1.038, allocations: 10.32 MB / 0.6639 GB, free: 36.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.038, allocations: 12.75 kB / 0.6639 GB, free: 36.7 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00553/1.044, allocations: 1.394 MB / 0.6652 GB, free: 36.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05882/1.102, allocations: 16.63 MB / 0.6815 GB, free: 35.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02957/1.132, allocations: 14.67 MB / 0.6958 GB, free: 34.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005385/1.133, allocations: 0.6281 MB / 0.6964 GB, free: 34.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003223/1.136, allocations: 0.8582 MB / 0.6973 GB, free: 34.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04373/1.18, allocations: 19.42 MB / 0.7162 GB, free: 31.03 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005723/1.18, allocations: 115.1 kB / 0.7163 GB, free: 31.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002739/1.183, allocations: 387.1 kB / 0.7167 GB, free: 31.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002169/1.185, allocations: 1.604 MB / 0.7183 GB, free: 31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02978/1.215, allocations: 15.59 MB / 0.7335 GB, free: 28.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09306/1.308, allocations: 80.58 MB / 0.8122 GB, free: 5.504 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2072/1.515, allocations: 8.17 MB / 0.8202 GB, free: 79.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01619/1.532, allocations: 14.08 MB / 0.8339 GB, free: 76.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/1.532, allocations: 70.56 kB / 0.834 GB, free: 76.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=308): time 4.198e-06/1.532, allocations: 3.25 kB / 0.834 GB, free: 76.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=408): time 0.1469/1.679, allocations: 47.56 MB / 0.8804 GB, free: 70.81 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/1.679, allocations: 409.2 kB / 0.8808 GB, free: 70.37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01332/1.692, allocations: 6.668 MB / 0.8873 GB, free: 69.83 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009128/1.693, allocations: 90.52 kB / 0.8874 GB, free: 69.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004006/1.697, allocations: 5.873 MB / 0.8931 GB, free: 67.29 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001878/1.699, allocations: 1.481 MB / 0.8946 GB, free: 66.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/1.7, allocations: 185.4 kB / 0.8948 GB, free: 66.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007549/1.701, allocations: 0.6941 MB / 0.8954 GB, free: 66.08 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005833/1.707, allocations: 4.181 MB / 0.8995 GB, free: 66.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007315/1.714, allocations: 9.21 MB / 0.9085 GB, free: 58.26 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007619/1.722, allocations: 6.086 MB / 0.9145 GB, free: 55.92 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.976e-05/1.722, allocations: 50.75 kB / 0.9145 GB, free: 55.92 MB / 458.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.03325/1.755, allocations: 17.26 MB / 0.9314 GB, free: 48.22 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000235/1.755, allocations: 80 kB / 0.9315 GB, free: 48.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002731/1.756, allocations: 172 kB / 0.9316 GB, free: 47.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01477/1.77, allocations: 4.722 MB / 0.9362 GB, free: 44.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006931/1.777, allocations: 1.967 MB / 0.9381 GB, free: 42.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0337/1.811, allocations: 26.21 MB / 0.9637 GB, free: 20.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007783/1.819, allocations: 0.5473 MB / 0.9643 GB, free: 19.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00164/1.821, allocations: 0.5171 MB / 0.9648 GB, free: 19.48 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.00806/1.829, allocations: 4.09 MB / 0.9688 GB, free: 15.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/1.831, allocations: 0.7097 MB / 0.9695 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02145/1.852, allocations: 10.94 MB / 0.9802 GB, free: 6.496 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.877e-05/1.852, allocations: 44 kB / 0.9802 GB, free: 6.453 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.234e-05/1.852, allocations: 20 kB / 0.9802 GB, free: 6.434 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.564e-05/1.852, allocations: 17.72 kB / 0.9802 GB, free: 6.434 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2473/2.1, allocations: 23.9 MB / 1.004 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.308e-05/2.1, allocations: 9.312 kB / 1.004 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002824/2.102, allocations: 0.518 MB / 1.004 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01264/2.115, allocations: 4.162 MB / 1.008 GB, free: 66.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006332/2.116, allocations: 72.25 kB / 1.008 GB, free: 66.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02929/2.145, allocations: 22.95 MB / 1.031 GB, free: 65.45 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/2.145, allocations: 9.75 kB / 1.031 GB, free: 65.45 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02554/2.171, allocations: 17.62 MB / 1.048 GB, free: 59.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004398/2.175, allocations: 1.371 MB / 1.049 GB, free: 59.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002749/2.178, allocations: 78.28 kB / 1.049 GB, free: 59.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004668/2.183, allocations: 247.9 kB / 1.05 GB, free: 59.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001001/2.184, allocations: 292 kB / 1.05 GB, free: 58.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000451/2.184, allocations: 112.1 kB / 1.05 GB, free: 58.95 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009571/2.194, allocations: 4.815 MB / 1.055 GB, free: 57.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.61e-07/2.194, allocations: 0 / 1.055 GB, free: 57.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01296/2.207, allocations: 2.202 MB / 1.057 GB, free: 57.13 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.02883/2.236, allocations: 19.57 MB / 1.076 GB, free: 47.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0142/2.25, allocations: 10.6 MB / 1.086 GB, free: 43.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/2.25, allocations: 3.844 kB / 1.086 GB, free: 43.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006146/2.256, allocations: 4.415 MB / 1.091 GB, free: 41.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005853/2.262, allocations: 1.046 MB / 1.092 GB, free: 41.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2897/2.552, allocations: 158.7 MB / 1.246 GB, free: 28.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007194/2.559, allocations: 6.567 MB / 1.253 GB, free: 27.68 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007319/2.566, allocations: 2.948 MB / 1.256 GB, free: 27.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005211/2.571, allocations: 4.306 MB / 1.26 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.042e-06/2.571, allocations: 0 / 1.26 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4252/2.997, allocations: 175.9 MB / 1.432 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/2.997, allocations: 209.6 kB / 1.432 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.471/9.468, allocations: 0.5469 kB / 1.432 GB, free: 105.5 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat