Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2",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.001228/0.001228, allocations: 180.1 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009605/0.0009605, allocations: 96.69 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002856/0.0002857, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2619, allocations: 50.41 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 13.17/13.44, allocations: 6.123 GB / 6.515 GB, free: 148.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/13.44, allocations: 83.5 kB / 6.515 GB, free: 148 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.373/15.81, allocations: 0.6451 GB / 7.16 GB, free: 24.57 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.265e-06/15.81, allocations: 0 / 7.16 GB, free: 24.57 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.262e-05/15.81, allocations: 12 kB / 7.16 GB, free: 24.56 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.01143/15.82, allocations: 2.378 MB / 7.163 GB, free: 22.14 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/15.82, allocations: 15.97 kB / 7.163 GB, free: 22.12 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003994/15.82, allocations: 106.5 kB / 7.163 GB, free: 22.01 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006059/15.82, allocations: 83.25 kB / 7.163 GB, free: 21.93 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008693/15.82, allocations: 441.1 kB / 7.163 GB, free: 21.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.281e-05/15.82, allocations: 46.34 kB / 7.163 GB, free: 21.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/15.82, allocations: 67.91 kB / 7.163 GB, free: 21.35 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/15.83, allocations: 0.7896 MB / 7.164 GB, free: 20.56 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.596e-05/15.83, allocations: 0 / 7.164 GB, free: 20.56 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/15.83, allocations: 28 kB / 7.164 GB, free: 20.53 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/15.83, allocations: 12 kB / 7.164 GB, free: 20.52 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/15.83, allocations: 0.9966 MB / 7.165 GB, free: 19.52 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01656/15.84, allocations: 12.46 MB / 7.177 GB, free: 5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/15.85, allocations: 0.7679 MB / 7.178 GB, free: 4.219 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3622/16.21, allocations: 30.66 MB / 7.208 GB, free: 26.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.658e-05/16.21, allocations: 47.56 kB / 7.208 GB, free: 26.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=78): time 3.747e-06/16.21, allocations: 0 / 7.208 GB, free: 26.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=88): time 0.01154/16.22, allocations: 3.498 MB / 7.212 GB, free: 25.63 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/16.22, allocations: 59.47 kB / 7.212 GB, free: 25.57 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004527/16.22, allocations: 321.9 kB / 7.212 GB, free: 25.47 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001359/16.22, allocations: 43.02 kB / 7.212 GB, free: 25.44 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/16.22, allocations: 237.8 kB / 7.212 GB, free: 25.32 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002447/16.22, allocations: 310.7 kB / 7.212 GB, free: 25.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/16.22, allocations: 14.69 kB / 7.212 GB, free: 25.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/16.22, allocations: 358.3 kB / 7.213 GB, free: 24.85 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005852/16.22, allocations: 354.8 kB / 7.213 GB, free: 24.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008559/16.22, allocations: 478.6 kB / 7.214 GB, free: 24.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000885/16.22, allocations: 426.4 kB / 7.214 GB, free: 24.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/16.22, allocations: 0 / 7.214 GB, free: 24.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002452/16.23, allocations: 1.09 MB / 7.215 GB, free: 24.63 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/16.23, allocations: 10.59 kB / 7.215 GB, free: 24.63 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/16.23, allocations: 5.344 kB / 7.215 GB, free: 24.63 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007704/16.23, allocations: 167 kB / 7.215 GB, free: 24.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007377/16.23, allocations: 197.5 kB / 7.215 GB, free: 24.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003033/16.23, allocations: 3.933 MB / 7.219 GB, free: 20.92 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006488/16.23, allocations: 66.02 kB / 7.219 GB, free: 20.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/16.23, allocations: 52.41 kB / 7.219 GB, free: 20.91 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004754/16.23, allocations: 225.3 kB / 7.22 GB, free: 20.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004295/16.23, allocations: 59.31 kB / 7.22 GB, free: 20.78 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/16.24, allocations: 1.318 MB / 7.221 GB, free: 20.62 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/16.24, allocations: 10.75 kB / 7.221 GB, free: 20.62 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/16.24, allocations: 2.906 kB / 7.221 GB, free: 20.62 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002435/16.24, allocations: 1.338 MB / 7.222 GB, free: 19.95 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003908/16.24, allocations: 1.994 MB / 7.224 GB, free: 19.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/16.24, allocations: 6.547 kB / 7.224 GB, free: 19.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007335/16.24, allocations: 175.1 kB / 7.224 GB, free: 19.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/16.24, allocations: 299.5 kB / 7.225 GB, free: 19.56 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.405e-05/16.24, allocations: 37.45 kB / 7.225 GB, free: 19.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009243/16.25, allocations: 1.297 MB / 7.226 GB, free: 18.39 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/16.25, allocations: 6.906 kB / 7.226 GB, free: 18.39 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002778/16.25, allocations: 1.445 MB / 7.227 GB, free: 18.13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/16.25, allocations: 150.8 kB / 7.228 GB, free: 18.01 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/16.25, allocations: 19.38 kB / 7.228 GB, free: 18.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006793/16.25, allocations: 57.22 kB / 7.228 GB, free: 18.01 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.572e-05/16.25, allocations: 56.56 kB / 7.228 GB, free: 18.01 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/16.25, allocations: 51.59 kB / 7.228 GB, free: 18.01 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004755/16.25, allocations: 279.5 kB / 7.228 GB, free: 17.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/16.25, allocations: 0 / 7.228 GB, free: 17.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01062/16.26, allocations: 2.271 MB / 7.23 GB, free: 17.93 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * 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 (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01892/16.28, allocations: 5.267 MB / 7.235 GB, free: 16.95 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00268/16.28, allocations: 1.16 MB / 7.236 GB, free: 16.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/16.28, allocations: 3.844 kB / 7.236 GB, free: 16.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/16.28, allocations: 0.5 MB / 7.237 GB, free: 16.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/16.29, allocations: 364.2 kB / 7.237 GB, free: 16.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/16.3, allocations: 7.025 MB / 7.244 GB, free: 13.63 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005823/16.3, allocations: 0.9327 MB / 7.245 GB, free: 12.93 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001003/16.3, allocations: 204.1 kB / 7.245 GB, free: 12.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003713/16.3, allocations: 226.5 kB / 7.245 GB, free: 12.91 MB / 490.7 MB Notification: Performance of SimCode: time 8.81e-07/16.3, allocations: 0 / 7.245 GB, free: 12.91 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1199/16.42, allocations: 76.74 MB / 7.32 GB, free: 9.527 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/16.42, allocations: 253.3 kB / 7.321 GB, free: 9.246 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.673/21.1, allocations: 0 / 7.321 GB, free: 9.246 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat does not exist to compare? outputFormat=mat