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.001096/0.001096, 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.399/1.399, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008833/0.0008833, allocations: 82.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.161e-05/3.163e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.08999, allocations: 47.58 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.333/0.423, allocations: 109.5 MB / 479.6 MB, free: 160 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.4233, allocations: 87.2 kB / 479.7 MB, free: 116 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.619/1.042, allocations: 183.8 MB / 0.648 GB, free: 35.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.433e-06/1.042, allocations: 0 / 0.648 GB, free: 35.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008509/1.043, allocations: 184 kB / 0.6482 GB, free: 35.55 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.02815/1.071, allocations: 9.165 MB / 0.6571 GB, free: 26.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/1.071, allocations: 8.031 kB / 0.6571 GB, free: 26.29 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006276/1.078, allocations: 1.395 MB / 0.6585 GB, free: 24.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05817/1.136, allocations: 16.65 MB / 0.6747 GB, free: 8.188 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2908/1.427, allocations: 14.6 MB / 0.689 GB, free: 47.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000933/1.428, allocations: 0.6276 MB / 0.6896 GB, free: 47.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004089/1.432, allocations: 0.8584 MB / 0.6904 GB, free: 47.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0498/1.482, allocations: 19.25 MB / 0.7092 GB, free: 43.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004694/1.482, allocations: 115.7 kB / 0.7094 GB, free: 43.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001872/1.484, allocations: 394.2 kB / 0.7097 GB, free: 43.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001947/1.486, allocations: 1.597 MB / 0.7113 GB, free: 43.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03199/1.518, allocations: 15.36 MB / 0.7263 GB, free: 43.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09373/1.612, allocations: 80.6 MB / 0.805 GB, free: 4.266 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02302/1.635, allocations: 7.936 MB / 0.8127 GB, free: 15.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005537/1.64, allocations: 3.999 MB / 0.8166 GB, free: 11.99 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02509/1.666, allocations: 14.24 MB / 0.8306 GB, free: 0 / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.716e-05/1.666, allocations: 76.83 kB / 0.8306 GB, free: 15.92 MB / 458.7 MB Notification: Performance of pre-optimization done (n=308): time 5.591e-06/1.666, allocations: 0 / 0.8306 GB, free: 15.92 MB / 458.7 MB Notification: Performance of matching and sorting (n=408): time 0.3977/2.063, allocations: 38.24 MB / 0.868 GB, free: 90.15 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001888/2.064, allocations: 405.3 kB / 0.8684 GB, free: 89.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01718/2.081, allocations: 6.601 MB / 0.8748 GB, free: 89.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001055/2.082, allocations: 86.06 kB / 0.8749 GB, free: 89.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005449/2.087, allocations: 5.875 MB / 0.8806 GB, free: 86.37 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002128/2.09, allocations: 1.484 MB / 0.8821 GB, free: 85.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007733/2.09, allocations: 182.6 kB / 0.8822 GB, free: 85.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000402/2.091, allocations: 0.7001 MB / 0.8829 GB, free: 85.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005021/2.096, allocations: 4.092 MB / 0.8869 GB, free: 85.14 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007726/2.104, allocations: 9.118 MB / 0.8958 GB, free: 78.74 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008254/2.112, allocations: 6.063 MB / 0.9017 GB, free: 78.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001435/2.112, allocations: 48.66 kB / 0.9018 GB, free: 78.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.03611/2.148, allocations: 17.08 MB / 0.9185 GB, free: 74.67 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000172/2.148, allocations: 79.66 kB / 0.9186 GB, free: 74.67 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000296/2.149, allocations: 173.9 kB / 0.9187 GB, free: 74.67 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01441/2.163, allocations: 4.709 MB / 0.9233 GB, free: 73.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007356/2.17, allocations: 1.969 MB / 0.9252 GB, free: 73.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03254/2.203, allocations: 25.11 MB / 0.9498 GB, free: 62.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01035/2.213, allocations: 0.5338 MB / 0.9503 GB, free: 62.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002363/2.216, allocations: 0.5133 MB / 0.9508 GB, free: 61.89 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 () * 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.002769/2.219, allocations: 0.8117 MB / 0.9516 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00201/2.221, allocations: 0.7135 MB / 0.9523 GB, free: 60.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02106/2.242, allocations: 10.85 MB / 0.9629 GB, free: 51.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.997e-05/2.242, allocations: 41.47 kB / 0.9629 GB, free: 51.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-05/2.242, allocations: 22.88 kB / 0.9629 GB, free: 51.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.919e-05/2.242, allocations: 24.16 kB / 0.963 GB, free: 51.71 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04638/2.288, allocations: 23.68 MB / 0.9861 GB, free: 32.56 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.429e-05/2.288, allocations: 8 kB / 0.9861 GB, free: 32.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002541/2.291, allocations: 0.5188 MB / 0.9866 GB, free: 32.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01224/2.303, allocations: 4.142 MB / 0.9906 GB, free: 29.17 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007226/2.304, allocations: 82.48 kB / 0.9907 GB, free: 29.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02714/2.331, allocations: 21.85 MB / 1.012 GB, free: 10.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-05/2.331, allocations: 11.94 kB / 1.012 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3378/2.669, allocations: 17.82 MB / 1.029 GB, free: 81.56 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005029/2.674, allocations: 1.37 MB / 1.031 GB, free: 81.46 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00271/2.677, allocations: 76.75 kB / 1.031 GB, free: 81.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00566/2.683, allocations: 252.1 kB / 1.031 GB, free: 81.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00123/2.684, allocations: 284.6 kB / 1.031 GB, free: 81.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000361/2.684, allocations: 113.2 kB / 1.032 GB, free: 81.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01098/2.695, allocations: 4.743 MB / 1.036 GB, free: 81.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/2.695, allocations: 0 / 1.036 GB, free: 81.16 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01194/2.707, allocations: 2.204 MB / 1.038 GB, free: 81.16 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 () * 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.02976/2.737, allocations: 19.42 MB / 1.057 GB, free: 76.99 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01627/2.753, allocations: 10.44 MB / 1.067 GB, free: 76.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.75e-05/2.753, allocations: 2.188 kB / 1.067 GB, free: 76.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006136/2.759, allocations: 4.359 MB / 1.072 GB, free: 75.62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006346/2.766, allocations: 1.043 MB / 1.073 GB, free: 75.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05882/2.825, allocations: 20.84 MB / 1.093 GB, free: 67.88 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01125/2.836, allocations: 6.576 MB / 1.1 GB, free: 65.83 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009188/2.845, allocations: 2.945 MB / 1.102 GB, free: 65.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007555/2.853, allocations: 4.302 MB / 1.107 GB, free: 62.14 MB / 458.7 MB Notification: Performance of SimCode: time 2.114e-06/2.853, allocations: 0 / 1.107 GB, free: 62.14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5403/3.393, allocations: 178.4 MB / 1.281 GB, free: 64.23 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/3.393, allocations: 188.2 kB / 1.281 GB, free: 64 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.841/10.23, allocations: 3.609 kB / 1.281 GB, free: 64 MB / 474.7 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