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.000984/0.0009838, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001235/0.001236, allocations: 172.7 kB / 15.95 MB, free: 208 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.547/1.547, allocations: 223.2 MB / 240 MB, free: 5.324 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.574/2.574, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003666, allocations: 8 kB / 0.8149 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.804/0.8044, allocations: 142.3 MB / 0.9538 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003537/0.8079, allocations: 3.566 MB / 0.9573 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001518/0.8081, allocations: 148.7 kB / 0.9575 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.122e-05/0.8081, allocations: 1 kB / 0.9575 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.325e-05/0.8082, allocations: 4 kB / 0.9575 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.663e-05/0.8083, allocations: 18.91 kB / 0.9575 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.8086, allocations: 60.52 kB / 0.9575 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.734e-05/0.8087, allocations: 40.81 kB / 0.9576 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.003e-05/0.8087, allocations: 5.125 kB / 0.9576 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.655e-05/0.8087, allocations: 13.92 kB / 0.9576 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.589e-05/0.8088, allocations: 26.33 kB / 0.9576 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.182e-05/0.8088, allocations: 0.9062 kB / 0.9576 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.809, allocations: 33.88 kB / 0.9577 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.809, allocations: 6.359 kB / 0.9577 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.8e-05/0.809, allocations: 28.55 kB / 0.9577 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.103e-05/0.8091, allocations: 27.3 kB / 0.9577 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.8091, allocations: 0 / 0.9577 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.482e-06/0.8092, allocations: 1.062 kB / 0.9577 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.507e-06/0.8092, allocations: 0 / 0.9577 GB, free: 4.898 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.0002502/0.8094, allocations: 335.8 kB / 0.958 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.8095, allocations: 9.094 kB / 0.958 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.527e-05/0.8095, allocations: 31.62 kB / 0.9581 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.614e-05/0.8095, allocations: 2.312 kB / 0.9581 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.525e-05/0.8096, allocations: 171 kB / 0.9582 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.473e-05/0.8096, allocations: 28.11 kB / 0.9583 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.8097, allocations: 1.125 kB / 0.9583 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.8098, allocations: 42.05 kB / 0.9583 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.8098, allocations: 4.953 kB / 0.9583 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.8098, allocations: 4 kB / 0.9583 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.8098, allocations: 1.031 kB / 0.9583 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.298e-05/0.8099, allocations: 17.11 kB / 0.9583 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000344/0.8102, allocations: 333.1 kB / 0.9586 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.858e-05/0.8103, allocations: 24.5 kB / 0.9587 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.296e-05/0.8103, allocations: 6.047 kB / 0.9587 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.445e-05/0.8104, allocations: 90.44 kB / 0.9588 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.367e-05/0.8104, allocations: 35.75 kB / 0.9588 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.8104, allocations: 0 / 0.9588 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001264/0.8105, allocations: 40.08 kB / 0.9588 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/0.8105, allocations: 51.41 kB / 0.9589 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.561e-05/0.8106, allocations: 104.6 kB / 0.959 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.183e-06/0.8106, allocations: 25.7 kB / 0.959 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.478e-05/0.8106, allocations: 81.33 kB / 0.9591 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.521e-06/0.8107, allocations: 12.88 kB / 0.9591 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-06/0.8107, allocations: 0 / 0.9591 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.621e-05/0.8107, allocations: 316.4 kB / 0.9594 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.406e-05/0.8107, allocations: 7.109 kB / 0.9594 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.643e-05/0.8108, allocations: 13.16 kB / 0.9594 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.916e-05/0.8108, allocations: 3.312 kB / 0.9594 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.8108, allocations: 1.125 kB / 0.9594 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.292e-05/0.8109, allocations: 57.52 kB / 0.9595 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.8109, allocations: 6 kB / 0.9595 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.8109, allocations: 0 / 0.9595 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.8109, allocations: 1.031 kB / 0.9595 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.041e-05/0.8109, allocations: 5.594 kB / 0.9595 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.811, allocations: 7.969 kB / 0.9595 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.811, allocations: 5 kB / 0.9595 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-06/0.811, allocations: 6.25 kB / 0.9595 GB, free: 2.902 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.293e-05/0.8111, allocations: 111.2 kB / 0.9596 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.8111, allocations: 10.11 kB / 0.9596 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.19e-05/0.8112, allocations: 119.3 kB / 0.9597 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/0.8112, allocations: 181.5 kB / 0.9599 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.558e-05/0.8112, allocations: 185.2 kB / 0.9601 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/0.8113, allocations: 177.4 kB / 0.9603 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.8114, allocations: 412.7 kB / 0.9607 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/0.8114, allocations: 105 kB / 0.9608 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.528e-05/0.8114, allocations: 106 kB / 0.9609 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.266e-05/0.8115, allocations: 185.5 kB / 0.961 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.8115, allocations: 181.6 kB / 0.9612 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.307e-05/0.8115, allocations: 185.7 kB / 0.9614 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-05/0.8116, allocations: 176.3 kB / 0.9615 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.893e-05/0.8116, allocations: 308 kB / 0.9618 GB, free: 372 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.197e-05/0.8117, allocations: 180.8 kB / 0.962 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.042e-05/0.8117, allocations: 189.1 kB / 0.9622 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.8119, allocations: 112.6 kB / 0.9623 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.207e-05/0.812, allocations: 177.4 kB / 0.9625 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.596e-05/0.812, allocations: 106.3 kB / 0.9626 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.779e-05/0.8121, allocations: 87.77 kB / 0.9627 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.106e-06/0.8121, allocations: 0 / 0.9627 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002369/0.8123, allocations: 20.38 kB / 0.9627 GB, free: 15.48 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.0004123/0.8127, allocations: 0.8143 MB / 0.9635 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.272e-05/0.8128, allocations: 13.33 kB / 0.9635 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8128, allocations: 1 kB / 0.9635 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.373e-06/0.8128, allocations: 0 / 0.9635 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.8133, allocations: 0.5309 MB / 0.964 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004138/0.8137, allocations: 227 kB / 0.9642 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002705/0.814, allocations: 0.6765 MB / 0.9649 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.036e-05/0.814, allocations: 11.45 kB / 0.9649 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.505e-05/0.814, allocations: 9.594 kB / 0.9649 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.814, allocations: 0 / 0.9649 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01045/0.8245, allocations: 1.223 MB / 0.9661 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.8247, allocations: 194.5 kB / 0.9663 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/2.488, allocations: 2.953 kB / 0.9663 GB, free: 12.36 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