Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008987/0.0008987, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008934/0.0008934, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 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 / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.426/2.426, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003635, allocations: 16 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.698/0.6984, allocations: 142.3 MB / 0.9536 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.141/0.8395, allocations: 114.3 MB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006503/0.8402, allocations: 495 kB / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.955e-05/0.8402, allocations: 3.938 kB / 1.066 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.413e-05/0.8403, allocations: 7.922 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.366e-05/0.8404, allocations: 7.984 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006349/0.841, allocations: 191.5 kB / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.322e-05/0.8411, allocations: 27.89 kB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 2.992e-05/0.8411, allocations: 0 / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.741e-05/0.8411, allocations: 11.98 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.134e-05/0.8412, allocations: 4 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.8412, allocations: 8 kB / 1.066 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004005/0.8416, allocations: 183.7 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.858e-05/0.8417, allocations: 7.984 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.897e-05/0.8417, allocations: 29.7 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.8419, allocations: 98.09 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.8419, allocations: 0 / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8419, allocations: 0 / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.603e-06/0.8419, allocations: 0 / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003801/0.8423, allocations: 355.2 kB / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.8424, allocations: 12.03 kB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.771e-05/0.8424, allocations: 34.52 kB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.509e-05/0.8424, allocations: 4 kB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.8426, allocations: 171 kB / 1.067 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.794e-05/0.8426, allocations: 29.7 kB / 1.067 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.966e-06/0.8427, allocations: 4 kB / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.8428, allocations: 41.67 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.8428, allocations: 0 / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.8428, allocations: 3.953 kB / 1.067 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.8429, allocations: 8 kB / 1.067 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.288e-05/0.8429, allocations: 15.98 kB / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000767/0.8437, allocations: 0.5795 MB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.66e-05/0.8437, allocations: 26.5 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002272/0.844, allocations: 328.5 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.844, allocations: 38.52 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.844, allocations: 4 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001615/0.8442, allocations: 37.69 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.8442, allocations: 55.34 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.017e-05/0.8443, allocations: 97.86 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.8443, allocations: 29.69 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.593e-05/0.8444, allocations: 88.05 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.953e-06/0.8444, allocations: 11.97 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-06/0.8444, allocations: 0 / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.8446, allocations: 314.8 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.354e-05/0.8446, allocations: 4 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.345e-05/0.8446, allocations: 21.64 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.681e-05/0.8446, allocations: 4 kB / 1.068 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.8446, allocations: 0 / 1.068 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.996e-05/0.8447, allocations: 53.62 kB / 1.068 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.8447, allocations: 11.95 kB / 1.069 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.8447, allocations: 0 / 1.069 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.8448, allocations: 0 / 1.069 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.424e-05/0.8448, allocations: 4 kB / 1.069 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.8448, allocations: 7.938 kB / 1.069 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.753e-05/0.8448, allocations: 0 / 1.069 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.8449, allocations: 3.984 kB / 1.069 GB, free: 9.785 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.698e-05/0.8449, allocations: 121.9 kB / 1.069 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.845, allocations: 0 / 1.069 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.8451, allocations: 124.8 kB / 1.069 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.839e-05/0.8452, allocations: 176.3 kB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-05/0.8452, allocations: 184.2 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-05/0.8453, allocations: 184.3 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.8456, allocations: 401.2 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.629e-05/0.8456, allocations: 108.9 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.669e-05/0.8457, allocations: 105 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-05/0.8457, allocations: 180.2 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.489e-05/0.8458, allocations: 176.3 kB / 1.07 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.111e-05/0.8459, allocations: 196.2 kB / 1.07 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.885e-05/0.846, allocations: 180.2 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001373/0.8461, allocations: 303.8 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.583e-05/0.8462, allocations: 182.1 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.472e-05/0.8463, allocations: 184.2 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.8464, allocations: 113 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.8465, allocations: 184.5 kB / 1.071 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.8466, allocations: 108.9 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.14e-05/0.8466, allocations: 79.28 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8466, allocations: 0 / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002893/0.8469, allocations: 63.92 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005712/0.8475, allocations: 0.879 MB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.05e-05/0.8476, allocations: 11.94 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8476, allocations: 0 / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.146e-06/0.8476, allocations: 0 / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.8479, allocations: 0.5314 MB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004087/0.8484, allocations: 249.5 kB / 1.073 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.8486, allocations: 0.6809 MB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.93e-05/0.8487, allocations: 7.938 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.611e-05/0.8487, allocations: 15.42 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.8487, allocations: 0 / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01141/0.8601, allocations: 1.927 MB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/0.8603, allocations: 188.4 kB / 1.076 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.646/2.506, allocations: 4 kB / 1.076 GB, free: 1.773 MB / 0.8262 GB (rm -f Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat