Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",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.0008901/0.0008901, allocations: 99.7 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.0009185/0.0009186, allocations: 177.3 kB / 15.95 MB, free: 216 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.423/1.423, allocations: 223.2 MB / 239.9 MB, free: 5.352 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.337/2.337, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003981, allocations: 8 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7609/0.7613, allocations: 142.3 MB / 0.9536 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003591/0.765, allocations: 3.396 MB / 0.9569 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001597/0.7652, allocations: 135.2 kB / 0.957 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.743e-05/0.7652, allocations: 0 / 0.957 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.976e-05/0.7653, allocations: 3.984 kB / 0.957 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.687e-05/0.7654, allocations: 8.891 kB / 0.957 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.7657, allocations: 58.66 kB / 0.9571 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.54e-05/0.7657, allocations: 24.33 kB / 0.9571 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.626e-05/0.7658, allocations: 4.875 kB / 0.9571 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.634e-05/0.7658, allocations: 15.95 kB / 0.9571 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.579e-05/0.7659, allocations: 7.172 kB / 0.9571 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.7659, allocations: 3.406 kB / 0.9571 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.7661, allocations: 34.39 kB / 0.9572 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.37e-05/0.7661, allocations: 11.91 kB / 0.9572 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.306e-05/0.7661, allocations: 29.23 kB / 0.9572 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.741e-05/0.7662, allocations: 26.14 kB / 0.9572 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.7663, allocations: 0 / 0.9572 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.445e-06/0.7663, allocations: 4 kB / 0.9572 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.7663, allocations: 0 / 0.9572 GB, free: 5.094 MB / 0.7169 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.0002842/0.7666, allocations: 328.6 kB / 0.9576 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.7666, allocations: 9 kB / 0.9576 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.783e-05/0.7667, allocations: 35.62 kB / 0.9576 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.7667, allocations: 1.938 kB / 0.9576 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.303e-05/0.7668, allocations: 160 kB / 0.9578 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.977e-05/0.7668, allocations: 26.8 kB / 0.9578 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.7669, allocations: 1.531 kB / 0.9578 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.767, allocations: 53.8 kB / 0.9578 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.767, allocations: 5.328 kB / 0.9578 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.767, allocations: 0 / 0.9578 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.767, allocations: 1.469 kB / 0.9578 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.047e-05/0.7671, allocations: 12.64 kB / 0.9578 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003739/0.7675, allocations: 333.8 kB / 0.9582 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.571e-05/0.7675, allocations: 32.55 kB / 0.9582 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.876e-05/0.7676, allocations: 81.64 kB / 0.9583 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.7676, allocations: 39.69 kB / 0.9583 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.7676, allocations: 0 / 0.9583 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001377/0.7678, allocations: 39.41 kB / 0.9584 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.36e-05/0.7678, allocations: 52.66 kB / 0.9584 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.374e-05/0.7679, allocations: 99.52 kB / 0.9585 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.7679, allocations: 30.92 kB / 0.9585 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.951e-05/0.7679, allocations: 85.38 kB / 0.9586 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.502e-06/0.7679, allocations: 3.906 kB / 0.9586 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-06/0.7679, allocations: 5.031 kB / 0.9586 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.94e-05/0.768, allocations: 316.1 kB / 0.9589 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.283e-05/0.768, allocations: 2.125 kB / 0.9589 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.775e-05/0.768, allocations: 17.06 kB / 0.9589 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.058e-05/0.7681, allocations: 16.67 kB / 0.959 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.7681, allocations: 0 / 0.959 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.371e-05/0.7681, allocations: 41.94 kB / 0.959 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.7681, allocations: 9.484 kB / 0.959 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.7682, allocations: 0 / 0.959 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.7682, allocations: 1.094 kB / 0.959 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.643e-05/0.7682, allocations: 9.344 kB / 0.959 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.7682, allocations: 0 / 0.959 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.073e-05/0.7683, allocations: 9.125 kB / 0.959 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.7683, allocations: 2.031 kB / 0.959 GB, free: 3.117 MB / 0.7169 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 5.139e-05/0.7683, allocations: 112.3 kB / 0.9591 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.7684, allocations: 9.047 kB / 0.9591 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.031e-05/0.7685, allocations: 120.2 kB / 0.9593 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.923e-05/0.7685, allocations: 182 kB / 0.9594 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.589e-05/0.7685, allocations: 177 kB / 0.9596 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/0.7686, allocations: 189.4 kB / 0.9598 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000136/0.7687, allocations: 403.6 kB / 0.9602 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/0.7687, allocations: 106 kB / 0.9603 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.447e-05/0.7687, allocations: 106.2 kB / 0.9604 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.497e-05/0.7688, allocations: 177.5 kB / 0.9605 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.7688, allocations: 189.2 kB / 0.9607 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.352e-05/0.7688, allocations: 177.3 kB / 0.9609 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-05/0.7689, allocations: 189.5 kB / 0.9611 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.635e-05/0.7689, allocations: 299.2 kB / 0.9613 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.769, allocations: 192.1 kB / 0.9615 GB, free: 384 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.769, allocations: 181.5 kB / 0.9617 GB, free: 196 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.7692, allocations: 108.9 kB / 0.9618 GB, free: 84 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.7693, allocations: 181.1 kB / 0.962 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.453e-05/0.7693, allocations: 109.9 kB / 0.9621 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.754e-05/0.7694, allocations: 84.41 kB / 0.9622 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7694, allocations: 0 / 0.9622 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000246/0.7696, allocations: 19.44 kB / 0.9622 GB, free: 15.7 MB / 0.7325 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.0004574/0.7701, allocations: 0.8236 MB / 0.963 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.041e-05/0.7702, allocations: 4.938 kB / 0.963 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.7702, allocations: 128 / 0.963 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.337e-06/0.7702, allocations: 9.219 kB / 0.963 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.7706, allocations: 0.5249 MB / 0.9635 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004053/0.771, allocations: 223.5 kB / 0.9637 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.7713, allocations: 0.6765 MB / 0.9644 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.452e-05/0.7713, allocations: 8.391 kB / 0.9644 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.181e-05/0.7714, allocations: 17.44 kB / 0.9644 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of SimCode: time 4.91e-07/0.7714, allocations: 0 / 0.9644 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01074/0.7821, allocations: 1.213 MB / 0.9656 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.7823, allocations: 189 kB / 0.9658 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/2.418, allocations: 1.969 kB / 0.9658 GB, free: 12.57 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat