Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",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.001789/0.001789, allocations: 108 kB / 15.61 MB, free: 152 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.002622/0.002622, allocations: 196.6 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.871/1.871, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.004119/0.004119, allocations: 294.8 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.283/1.283, allocations: 169.3 MB / 0.4982 GB, free: 13.92 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003465/0.003465, allocations: 98.66 kB / 0.5953 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2433, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.009412/0.2528, allocations: 3.709 MB / 0.6839 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003387/0.2532, allocations: 160.1 kB / 0.6841 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.792e-05/0.2532, allocations: 0 / 0.6841 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.2534, allocations: 3.938 kB / 0.6841 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.2535, allocations: 15.91 kB / 0.6841 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005614/0.2541, allocations: 79.75 kB / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.2542, allocations: 35.84 kB / 0.6842 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.004e-05/0.2543, allocations: 4 kB / 0.6842 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.718e-05/0.2544, allocations: 15.98 kB / 0.6842 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.936e-05/0.2545, allocations: 15.92 kB / 0.6842 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.2545, allocations: 0 / 0.6842 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009197/0.2555, allocations: 187.6 kB / 0.6844 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.209e-05/0.2556, allocations: 11.98 kB / 0.6844 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.2556, allocations: 11.92 kB / 0.6844 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.2558, allocations: 43.91 kB / 0.6845 GB, free: 12.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.096e-05/0.2559, allocations: 0 / 0.6845 GB, free: 12.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2559, allocations: 7.938 kB / 0.6845 GB, free: 12.29 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.2559, allocations: 0 / 0.6845 GB, free: 12.29 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.0005114/0.2564, allocations: 339.4 kB / 0.6848 GB, free: 11.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.2565, allocations: 12.03 kB / 0.6848 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.059e-05/0.2565, allocations: 34.75 kB / 0.6848 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/0.2566, allocations: 0.9375 kB / 0.6848 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.2568, allocations: 164.4 kB / 0.685 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.2569, allocations: 30.2 kB / 0.685 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.429e-05/0.2569, allocations: 8.109 kB / 0.685 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.2571, allocations: 45.69 kB / 0.6851 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.2572, allocations: 4 kB / 0.6851 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.2572, allocations: 0 / 0.6851 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.2572, allocations: 0 / 0.6851 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.725e-05/0.2573, allocations: 19.92 kB / 0.6851 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006389/0.258, allocations: 338 kB / 0.6854 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.235e-05/0.2581, allocations: 22.58 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.544e-05/0.2581, allocations: 4.859 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001388/0.2583, allocations: 81.17 kB / 0.6855 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.2583, allocations: 30.56 kB / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.683e-06/0.2583, allocations: 4 kB / 0.6856 GB, free: 10.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002013/0.2585, allocations: 41.62 kB / 0.6856 GB, free: 10.92 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.2586, allocations: 51.41 kB / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.2587, allocations: 106 kB / 0.6857 GB, free: 10.74 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.2588, allocations: 25.7 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.891e-05/0.2589, allocations: 88.05 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.026e-05/0.2589, allocations: 3.906 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.258e-05/0.2589, allocations: 13.72 kB / 0.6859 GB, free: 10.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2591, allocations: 322.8 kB / 0.6862 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.685e-05/0.2591, allocations: 3.984 kB / 0.6862 GB, free: 10.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.993e-05/0.2592, allocations: 13.72 kB / 0.6862 GB, free: 10.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.009e-05/0.2593, allocations: 29.66 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.2593, allocations: 0 / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001473/0.2594, allocations: 49.62 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.2595, allocations: 4 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.2595, allocations: 4 kB / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.2595, allocations: 0 / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.631e-05/0.2596, allocations: 7.984 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.2596, allocations: 4.062 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.059e-05/0.2597, allocations: 7.938 kB / 0.6863 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.2597, allocations: 0 / 0.6863 GB, free: 10.13 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 0.0001113/0.2598, allocations: 115 kB / 0.6864 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.605e-05/0.2599, allocations: 4.281 kB / 0.6864 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001708/0.2601, allocations: 131.4 kB / 0.6865 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.363e-05/0.2602, allocations: 188.2 kB / 0.6867 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.291e-05/0.2603, allocations: 176.3 kB / 0.6869 GB, free: 9.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.785e-05/0.2604, allocations: 180.2 kB / 0.6871 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003677/0.2608, allocations: 409.2 kB / 0.6874 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.185e-05/0.2609, allocations: 104.9 kB / 0.6875 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.521e-05/0.2609, allocations: 105 kB / 0.6876 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.864e-05/0.2611, allocations: 184.2 kB / 0.6878 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.2612, allocations: 184.2 kB / 0.688 GB, free: 8.266 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.285e-05/0.2613, allocations: 180.3 kB / 0.6882 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.576e-05/0.2614, allocations: 184.2 kB / 0.6883 GB, free: 7.895 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.2616, allocations: 311.8 kB / 0.6886 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.2618, allocations: 186 kB / 0.6888 GB, free: 7.359 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.2619, allocations: 176.3 kB / 0.689 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.2622, allocations: 112.9 kB / 0.6891 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.2623, allocations: 176.3 kB / 0.6893 GB, free: 6.883 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.766e-05/0.2624, allocations: 105 kB / 0.6894 GB, free: 6.773 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.786e-05/0.2625, allocations: 91.27 kB / 0.6894 GB, free: 6.684 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.735e-06/0.2625, allocations: 0 / 0.6894 GB, free: 6.684 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004611/0.263, allocations: 19.88 kB / 0.6895 GB, free: 6.664 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.0007483/0.2637, allocations: 0.8283 MB / 0.6903 GB, free: 5.809 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001047/0.2639, allocations: 4 kB / 0.6903 GB, free: 5.805 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.2639, allocations: 3.938 kB / 0.6903 GB, free: 5.801 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.785e-06/0.2639, allocations: 0 / 0.6903 GB, free: 5.801 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007384/0.2646, allocations: 463.7 kB / 0.6907 GB, free: 5.344 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.2663, allocations: 1.328 MB / 0.692 GB, free: 3.93 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.2668, allocations: 0.6768 MB / 0.6927 GB, free: 3.227 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.632e-05/0.2669, allocations: 4 kB / 0.6927 GB, free: 3.223 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.984e-05/0.2669, allocations: 11.44 kB / 0.6927 GB, free: 3.211 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2669, allocations: 0 / 0.6927 GB, free: 3.211 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.2974, allocations: 1.52 MB / 0.6942 GB, free: 1.832 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.95, allocations: 21.03 kB / 0.6942 GB, free: 1.816 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_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_PropyleneGlycolWaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1)