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.001068/0.001068, allocations: 176.2 kB / 8.696 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.3 MB / 214.4 MB, free: 1.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009258/0.0009257, allocations: 82.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.29e-05/2.292e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 47.59 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/0.5172, allocations: 109.1 MB / 472.3 MB, free: 2.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.5175, allocations: 92.31 kB / 472.4 MB, free: 2.641 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6894/1.207, allocations: 180.1 MB / 0.6371 GB, free: 48.47 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.207, allocations: 4 kB / 0.6372 GB, free: 48.47 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007527/1.208, allocations: 183.4 kB / 0.6373 GB, free: 48.29 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.03065/1.238, allocations: 9.159 MB / 0.6463 GB, free: 39.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/1.238, allocations: 12.03 kB / 0.6463 GB, free: 39.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06208/1.301, allocations: 16.65 MB / 0.6625 GB, free: 22.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03364/1.334, allocations: 14.6 MB / 0.6768 GB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004579/1.335, allocations: 276 kB / 0.6771 GB, free: 7.547 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004343/1.339, allocations: 0.5153 MB / 0.6776 GB, free: 7.031 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5473/1.886, allocations: 11.7 MB / 0.689 GB, free: 53.85 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04022/1.927, allocations: 16.55 MB / 0.7052 GB, free: 50.24 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006611/1.927, allocations: 106.7 kB / 0.7053 GB, free: 50.24 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003236/1.931, allocations: 41.38 kB / 0.7053 GB, free: 50.24 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002333/1.933, allocations: 1.599 MB / 0.7069 GB, free: 50.22 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09599/2.029, allocations: 78.15 MB / 0.7832 GB, free: 3.027 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007575/2.037, allocations: 5.423 MB / 0.7885 GB, free: 280 kB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01062/2.047, allocations: 4.224 MB / 0.7926 GB, free: 15.86 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003318/2.051, allocations: 2.855 MB / 0.7954 GB, free: 13.39 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/2.051, allocations: 65.88 kB / 0.7954 GB, free: 13.33 MB / 426.8 MB Notification: Performance of pre-optimization done (n=314): time 7.725e-06/2.051, allocations: 0 / 0.7954 GB, free: 13.33 MB / 426.8 MB Notification: Performance of matching and sorting (n=414): time 0.1168/2.168, allocations: 38.76 MB / 0.8333 GB, free: 4.949 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002771/2.168, allocations: 406.2 kB / 0.8337 GB, free: 4.469 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01424/2.182, allocations: 5.942 MB / 0.8395 GB, free: 15.29 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001197/2.184, allocations: 25.7 kB / 0.8395 GB, free: 15.26 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005954/2.19, allocations: 5.891 MB / 0.8453 GB, free: 9.91 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002872/2.192, allocations: 1.454 MB / 0.8467 GB, free: 8.594 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001083/2.194, allocations: 0 / 0.8467 GB, free: 8.594 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0006914/2.194, allocations: 0.7053 MB / 0.8474 GB, free: 7.996 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006756/2.201, allocations: 3.971 MB / 0.8513 GB, free: 4.395 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3623/2.563, allocations: 9.092 MB / 0.8601 GB, free: 88.97 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01379/2.577, allocations: 5.938 MB / 0.8659 GB, free: 88.91 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004452/2.578, allocations: 51.59 kB / 0.866 GB, free: 88.91 MB / 458.8 MB Notification: Performance of matching and sorting (n=1245) (initialization): time 0.04126/2.619, allocations: 16.01 MB / 0.8816 GB, free: 88.41 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006917/2.62, allocations: 82.09 kB / 0.8817 GB, free: 88.41 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004995/2.62, allocations: 178.8 kB / 0.8819 GB, free: 88.41 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01412/2.634, allocations: 4.566 MB / 0.8863 GB, free: 88.38 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008061/2.642, allocations: 2.021 MB / 0.8883 GB, free: 88.2 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03733/2.68, allocations: 23.46 MB / 0.9112 GB, free: 84.23 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/2.69, allocations: 374.1 kB / 0.9116 GB, free: 84.23 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002657/2.693, allocations: 0.5263 MB / 0.9121 GB, free: 84.16 MB / 458.8 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.002368/2.695, allocations: 0.5819 MB / 0.9126 GB, free: 83.81 MB / 458.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02105/2.716, allocations: 10.4 MB / 0.9228 GB, free: 80.59 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002252/2.719, allocations: 0.6879 MB / 0.9235 GB, free: 80.51 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02182/2.74, allocations: 10.48 MB / 0.9337 GB, free: 76.84 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.843e-05/2.74, allocations: 43.59 kB / 0.9338 GB, free: 76.84 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.252e-05/2.741, allocations: 29.58 kB / 0.9338 GB, free: 76.83 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.776e-05/2.741, allocations: 18.98 kB / 0.9338 GB, free: 76.83 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0489/2.79, allocations: 22.1 MB / 0.9554 GB, free: 65.28 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.939e-05/2.79, allocations: 8 kB / 0.9554 GB, free: 65.27 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00291/2.793, allocations: 0.5343 MB / 0.9559 GB, free: 64.82 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01353/2.806, allocations: 4.045 MB / 0.9599 GB, free: 61.95 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001688/2.808, allocations: 18.62 kB / 0.9599 GB, free: 61.93 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02635/2.834, allocations: 20.29 MB / 0.9797 GB, free: 44.57 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.487e-06/2.834, allocations: 11.94 kB / 0.9797 GB, free: 44.56 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02733/2.862, allocations: 17.17 MB / 0.9965 GB, free: 29.4 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004897/2.867, allocations: 1.343 MB / 0.9978 GB, free: 28.15 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002638/2.869, allocations: 19.33 kB / 0.9978 GB, free: 28.13 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00451/2.874, allocations: 180.5 kB / 0.998 GB, free: 28.04 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008949/2.875, allocations: 296.5 kB / 0.9983 GB, free: 27.84 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003199/2.875, allocations: 109.1 kB / 0.9984 GB, free: 27.74 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008547/2.884, allocations: 4.147 MB / 1.002 GB, free: 24.17 MB / 458.8 MB Notification: Performance of sort global known variables: time 5.11e-07/2.884, allocations: 4 kB / 1.002 GB, free: 24.16 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01336/2.897, allocations: 1.939 MB / 1.004 GB, free: 22.25 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 (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.3828/3.28, allocations: 19.1 MB / 1.023 GB, free: 87.02 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.0218/3.302, allocations: 10.01 MB / 1.033 GB, free: 86.75 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 2.016e-05/3.302, allocations: 3.969 kB / 1.033 GB, free: 86.75 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007578/3.309, allocations: 4.237 MB / 1.037 GB, free: 86.55 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007968/3.317, allocations: 0.9118 MB / 1.038 GB, free: 86.52 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06366/3.381, allocations: 20.43 MB / 1.058 GB, free: 83.06 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01254/3.394, allocations: 6.567 MB / 1.064 GB, free: 82.14 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.009836/3.404, allocations: 3.009 MB / 1.067 GB, free: 82.07 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008268/3.412, allocations: 4.303 MB / 1.071 GB, free: 81.05 MB / 458.8 MB Notification: Performance of SimCode: time 1.944e-06/3.412, allocations: 3.844 kB / 1.071 GB, free: 81.05 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6097/4.022, allocations: 169 MB / 1.236 GB, free: 99.7 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/4.022, allocations: 151 kB / 1.236 GB, free: 99.51 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.782/12.8, allocations: 7.844 kB / 1.236 GB, free: 99.51 MB / 474.8 MB (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