Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_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.001592/0.001593, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 198.6 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.061/2.061, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003474/0.003474, allocations: 275 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.67/1.67, allocations: 169.2 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001912, allocations: 101.1 kB / 0.5953 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2091, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.008374/0.2176, allocations: 4.006 MB / 0.6842 GB, free: 12.56 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002165/0.2178, allocations: 159.5 kB / 0.6843 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.066e-05/0.2179, allocations: 0 / 0.6843 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.218, allocations: 3.938 kB / 0.6843 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.764e-05/0.2181, allocations: 15.92 kB / 0.6844 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004977/0.2186, allocations: 79.75 kB / 0.6844 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.2188, allocations: 39.78 kB / 0.6845 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.532e-05/0.2188, allocations: 0 / 0.6845 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.009e-05/0.2189, allocations: 15.98 kB / 0.6845 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.013e-05/0.219, allocations: 11.98 kB / 0.6845 GB, free: 12.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.219, allocations: 4 kB / 0.6845 GB, free: 12.24 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002617/0.2192, allocations: 51.81 kB / 0.6846 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.751e-05/0.2193, allocations: 19.91 kB / 0.6846 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.379e-05/0.2194, allocations: 4 kB / 0.6846 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.2195, allocations: 48.11 kB / 0.6846 GB, free: 12.12 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2196, allocations: 4 kB / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2196, allocations: 0 / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2196, allocations: 0 / 0.6846 GB, free: 12.11 MB / 494.1 MB 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.0005125/0.2201, allocations: 331.6 kB / 0.6849 GB, free: 11.74 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.2202, allocations: 8.031 kB / 0.6849 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.067e-05/0.2202, allocations: 34.69 kB / 0.685 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.813e-05/0.2203, allocations: 8.844 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.2204, allocations: 168.3 kB / 0.6852 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.58e-05/0.2205, allocations: 30.27 kB / 0.6852 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.2206, allocations: 8.125 kB / 0.6852 GB, free: 11.44 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/0.2207, allocations: 41.69 kB / 0.6852 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.2208, allocations: 0 / 0.6852 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.2208, allocations: 0 / 0.6852 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.648e-05/0.2208, allocations: 7.984 kB / 0.6852 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.571e-05/0.2209, allocations: 19.98 kB / 0.6853 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005252/0.2214, allocations: 338 kB / 0.6856 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.647e-05/0.2215, allocations: 18.58 kB / 0.6856 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.617e-05/0.2215, allocations: 4.922 kB / 0.6856 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.425e-05/0.2216, allocations: 85.11 kB / 0.6857 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.2216, allocations: 34.55 kB / 0.6857 GB, free: 10.79 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.423e-06/0.2216, allocations: 0 / 0.6857 GB, free: 10.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001553/0.2218, allocations: 41.58 kB / 0.6858 GB, free: 10.74 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.2218, allocations: 59.53 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.409e-05/0.2219, allocations: 97.84 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.222, allocations: 25.7 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.387e-05/0.222, allocations: 92.05 kB / 0.686 GB, free: 10.44 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.126e-05/0.2221, allocations: 3.906 kB / 0.686 GB, free: 10.43 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.112e-05/0.2221, allocations: 17.66 kB / 0.686 GB, free: 10.41 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.2223, allocations: 322.8 kB / 0.6863 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.564e-05/0.2223, allocations: 4 kB / 0.6863 GB, free: 10.08 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.502e-05/0.2223, allocations: 17.72 kB / 0.6864 GB, free: 10.06 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.054e-05/0.2224, allocations: 25.64 kB / 0.6864 GB, free: 10.03 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2224, allocations: 0 / 0.6864 GB, free: 10.03 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001188/0.2225, allocations: 45.7 kB / 0.6864 GB, free: 9.977 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2226, allocations: 4 kB / 0.6864 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2226, allocations: 0 / 0.6864 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.2226, allocations: 4.062 kB / 0.6864 GB, free: 9.969 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.511e-05/0.2227, allocations: 15.92 kB / 0.6865 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2227, allocations: 0 / 0.6865 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.127e-05/0.2227, allocations: 0 / 0.6865 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.2227, allocations: 4 kB / 0.6865 GB, free: 9.949 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.922e-05/0.2228, allocations: 111.1 kB / 0.6866 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.2228, allocations: 0 / 0.6866 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/0.223, allocations: 125 kB / 0.6867 GB, free: 9.703 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-05/0.223, allocations: 184.2 kB / 0.6869 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.632e-05/0.2231, allocations: 180.3 kB / 0.687 GB, free: 9.332 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.967e-05/0.2232, allocations: 180.2 kB / 0.6872 GB, free: 9.148 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.2234, allocations: 409.2 kB / 0.6876 GB, free: 8.691 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.294e-05/0.2234, allocations: 101 kB / 0.6877 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.764e-05/0.2235, allocations: 112.9 kB / 0.6878 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.559e-05/0.2236, allocations: 176.3 kB / 0.688 GB, free: 8.289 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.576e-05/0.2236, allocations: 188.2 kB / 0.6881 GB, free: 8.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-05/0.2237, allocations: 176.3 kB / 0.6883 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-05/0.2238, allocations: 176.3 kB / 0.6885 GB, free: 7.738 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.2239, allocations: 319.6 kB / 0.6888 GB, free: 7.402 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.099e-05/0.224, allocations: 186 kB / 0.689 GB, free: 7.195 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.61e-05/0.2241, allocations: 176.3 kB / 0.6891 GB, free: 7.016 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.2242, allocations: 109 kB / 0.6892 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.533e-05/0.2243, allocations: 188.2 kB / 0.6894 GB, free: 6.711 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-05/0.2244, allocations: 105 kB / 0.6895 GB, free: 6.602 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.034e-05/0.2244, allocations: 87.27 kB / 0.6896 GB, free: 6.516 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2244, allocations: 0 / 0.6896 GB, free: 6.516 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.2247, allocations: 19.88 kB / 0.6896 GB, free: 6.496 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000689/0.2254, allocations: 0.8437 MB / 0.6904 GB, free: 5.625 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.2255, allocations: 7.984 kB / 0.6904 GB, free: 5.617 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.2256, allocations: 4 kB / 0.6905 GB, free: 5.613 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.05e-06/0.2256, allocations: 3.938 kB / 0.6905 GB, free: 5.609 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006047/0.2262, allocations: 464.6 kB / 0.6909 GB, free: 5.152 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.2277, allocations: 1.313 MB / 0.6922 GB, free: 3.754 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.2281, allocations: 0.6768 MB / 0.6928 GB, free: 3.051 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.563e-05/0.2281, allocations: 8 kB / 0.6928 GB, free: 3.043 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.34e-05/0.2282, allocations: 11.44 kB / 0.6929 GB, free: 3.031 MB / 494.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2282, allocations: 0 / 0.6929 GB, free: 3.031 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0323/0.2605, allocations: 1.502 MB / 0.6943 GB, free: 1.652 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.69, allocations: 10 kB / 0.6943 GB, free: 1.645 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)