Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",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.001744/0.001745, 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.0022/0.0022, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.084/2.084, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00249/0.00249, allocations: 278.9 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.29/1.29, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003531/0.003531, allocations: 98.94 kB / 0.5954 GB, free: 27.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2473, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.008196/0.2555, allocations: 3.273 MB / 0.6835 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001534/0.2557, allocations: 52.42 kB / 0.6835 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.311e-05/0.2558, allocations: 4 kB / 0.6835 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.2559, allocations: 4 kB / 0.6835 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.373e-05/0.256, allocations: 15.91 kB / 0.6836 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008524/0.2569, allocations: 180 kB / 0.6837 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.257, allocations: 31.91 kB / 0.6838 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.137e-05/0.2571, allocations: 4 kB / 0.6838 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.586e-05/0.2572, allocations: 23.91 kB / 0.6838 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.853e-05/0.2573, allocations: 7.938 kB / 0.6838 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.2573, allocations: 4 kB / 0.6838 GB, free: 13 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005975/0.2579, allocations: 179.5 kB / 0.684 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.873e-05/0.258, allocations: 7.984 kB / 0.684 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.394e-05/0.258, allocations: 4 kB / 0.684 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004358/0.2585, allocations: 139.9 kB / 0.6841 GB, free: 12.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2585, allocations: 4 kB / 0.6841 GB, free: 12.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2585, allocations: 0 / 0.6841 GB, free: 12.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.2585, allocations: 4 kB / 0.6841 GB, free: 12.67 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.00056/0.2591, allocations: 343.5 kB / 0.6845 GB, free: 12.29 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/0.2592, allocations: 8.031 kB / 0.6845 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.595e-05/0.2592, allocations: 34.75 kB / 0.6845 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.2593, allocations: 0.9375 kB / 0.6845 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.2595, allocations: 164.3 kB / 0.6846 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.61e-05/0.2596, allocations: 30.27 kB / 0.6847 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.2596, allocations: 12.05 kB / 0.6847 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.2598, allocations: 45.69 kB / 0.6847 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2598, allocations: 7.922 kB / 0.6847 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.2598, allocations: 0 / 0.6847 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.588e-05/0.2599, allocations: 7.938 kB / 0.6847 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.11e-05/0.2599, allocations: 8 kB / 0.6848 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008917/0.2608, allocations: 0.5794 MB / 0.6853 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.648e-05/0.2609, allocations: 22.56 kB / 0.6853 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.249e-05/0.261, allocations: 8.859 kB / 0.6854 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003717/0.2613, allocations: 344.5 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.2614, allocations: 34.5 kB / 0.6857 GB, free: 10.72 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 3.697e-06/0.2614, allocations: 3.984 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001954/0.2616, allocations: 29.7 kB / 0.6857 GB, free: 10.68 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.2617, allocations: 59.39 kB / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.2618, allocations: 102 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.2619, allocations: 25.7 kB / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.2619, allocations: 95.97 kB / 0.686 GB, free: 10.37 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.262, allocations: 7.906 kB / 0.686 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-05/0.262, allocations: 13.72 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.2622, allocations: 314.8 kB / 0.6863 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.738e-05/0.2622, allocations: 8 kB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.512e-05/0.2623, allocations: 21.64 kB / 0.6864 GB, free: 9.992 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.925e-05/0.2623, allocations: 21.72 kB / 0.6864 GB, free: 9.965 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2623, allocations: 0 / 0.6864 GB, free: 9.965 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001307/0.2625, allocations: 49.62 kB / 0.6864 GB, free: 9.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2625, allocations: 4 kB / 0.6864 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2625, allocations: 0 / 0.6864 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.2626, allocations: 0 / 0.6864 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.823e-05/0.2626, allocations: 4 kB / 0.6864 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.2626, allocations: 8.062 kB / 0.6864 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.305e-05/0.2627, allocations: 7.938 kB / 0.6865 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.2627, allocations: 0 / 0.6865 GB, free: 9.887 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.0001066/0.2628, allocations: 118.4 kB / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.099e-05/0.2629, allocations: 0 / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001495/0.263, allocations: 120.9 kB / 0.6867 GB, free: 9.633 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-05/0.2631, allocations: 180.2 kB / 0.6869 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-05/0.2632, allocations: 180.3 kB / 0.687 GB, free: 9.266 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.361e-05/0.2633, allocations: 184.2 kB / 0.6872 GB, free: 9.078 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003427/0.2637, allocations: 405.2 kB / 0.6876 GB, free: 8.625 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.816e-05/0.2638, allocations: 112.9 kB / 0.6877 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-05/0.2638, allocations: 101 kB / 0.6878 GB, free: 8.402 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.906e-05/0.2639, allocations: 188.2 kB / 0.688 GB, free: 8.211 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.528e-05/0.264, allocations: 180.2 kB / 0.6881 GB, free: 8.027 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.506e-05/0.2641, allocations: 180.3 kB / 0.6883 GB, free: 7.844 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.097e-05/0.2642, allocations: 188.1 kB / 0.6885 GB, free: 7.652 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.2644, allocations: 315.6 kB / 0.6888 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.614e-05/0.2645, allocations: 182.1 kB / 0.689 GB, free: 7.117 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.2646, allocations: 184.3 kB / 0.6891 GB, free: 6.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.2648, allocations: 104.9 kB / 0.6892 GB, free: 6.82 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.09e-05/0.2649, allocations: 184.2 kB / 0.6894 GB, free: 6.633 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.686e-05/0.265, allocations: 104.9 kB / 0.6895 GB, free: 6.523 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.742e-05/0.2651, allocations: 87.28 kB / 0.6896 GB, free: 6.438 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2651, allocations: 0 / 0.6896 GB, free: 6.438 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005586/0.2657, allocations: 43.86 kB / 0.6896 GB, free: 6.395 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.0007529/0.2664, allocations: 0.8614 MB / 0.6905 GB, free: 5.504 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001216/0.2666, allocations: 19.92 kB / 0.6905 GB, free: 5.484 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2666, allocations: 0 / 0.6905 GB, free: 5.484 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.534e-06/0.2666, allocations: 0 / 0.6905 GB, free: 5.484 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007028/0.2673, allocations: 459.8 kB / 0.6909 GB, free: 5.031 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.2689, allocations: 1.332 MB / 0.6922 GB, free: 3.613 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.2692, allocations: 0.6807 MB / 0.6929 GB, free: 2.906 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7e-05/0.2693, allocations: 6.141 kB / 0.6929 GB, free: 2.902 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.2694, allocations: 7.438 kB / 0.6929 GB, free: 2.895 MB / 494.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2694, allocations: 4 kB / 0.6929 GB, free: 2.891 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02933/0.2987, allocations: 2.158 MB / 0.695 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.52, allocations: 3.938 kB / 0.695 GB, free: 0.9219 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_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_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)