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.001085/0.001085, 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.001117/0.001117, allocations: 196.6 kB / 16.53 MB, free: 6.391 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.24/1.24, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001994/0.001994, allocations: 278.6 kB / 290.7 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8995/0.8995, allocations: 169.3 MB / 0.4982 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 105 kB / 0.5953 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1366, allocations: 86.99 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004549/0.1411, allocations: 3.262 MB / 0.6835 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 9.796e-05/0.1413, allocations: 51.81 kB / 0.6835 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.182e-05/0.1413, allocations: 0 / 0.6835 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.854e-05/0.1414, allocations: 7.922 kB / 0.6835 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.354e-05/0.1415, allocations: 15.86 kB / 0.6836 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005427/0.142, allocations: 183.2 kB / 0.6837 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.424e-05/0.1421, allocations: 39.84 kB / 0.6838 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.265e-05/0.1421, allocations: 0 / 0.6838 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.007e-05/0.1422, allocations: 19.98 kB / 0.6838 GB, free: 12.99 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.843e-05/0.1423, allocations: 11.92 kB / 0.6838 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.1423, allocations: 0 / 0.6838 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003601/0.1426, allocations: 179.5 kB / 0.684 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.461e-05/0.1427, allocations: 15.97 kB / 0.684 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.632e-05/0.1427, allocations: 8 kB / 0.684 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000309/0.1431, allocations: 136 kB / 0.6841 GB, free: 12.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1431, allocations: 0 / 0.6841 GB, free: 12.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1431, allocations: 0 / 0.6841 GB, free: 12.65 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1431, allocations: 0 / 0.6841 GB, free: 12.65 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.0004087/0.1435, allocations: 339.5 kB / 0.6844 GB, free: 12.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.1435, allocations: 8.031 kB / 0.6845 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.26e-05/0.1436, allocations: 38.73 kB / 0.6845 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.312e-05/0.1436, allocations: 0.9375 kB / 0.6845 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.1438, allocations: 172.2 kB / 0.6847 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.626e-05/0.1438, allocations: 38.27 kB / 0.6847 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.1439, allocations: 4.125 kB / 0.6847 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.144, allocations: 45.61 kB / 0.6847 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.144, allocations: 0 / 0.6847 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.144, allocations: 0 / 0.6847 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/0.144, allocations: 4 kB / 0.6847 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.674e-05/0.1441, allocations: 15.98 kB / 0.6848 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006413/0.1447, allocations: 0.5794 MB / 0.6853 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.961e-05/0.1448, allocations: 30.5 kB / 0.6854 GB, free: 11.15 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.459e-05/0.1448, allocations: 4.859 kB / 0.6854 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002464/0.1451, allocations: 344.5 kB / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.1451, allocations: 30.56 kB / 0.6857 GB, free: 10.69 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1451, allocations: 0 / 0.6857 GB, free: 10.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.1453, allocations: 41.64 kB / 0.6858 GB, free: 10.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.1453, allocations: 55.41 kB / 0.6858 GB, free: 10.58 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.821e-05/0.1454, allocations: 101.8 kB / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.1454, allocations: 25.7 kB / 0.6859 GB, free: 10.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.167e-05/0.1455, allocations: 87.98 kB / 0.686 GB, free: 10.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.921e-06/0.1455, allocations: 7.906 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/0.1455, allocations: 21.7 kB / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.1456, allocations: 318.9 kB / 0.6863 GB, free: 9.992 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.553e-05/0.1457, allocations: 4 kB / 0.6863 GB, free: 9.988 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.151e-05/0.1457, allocations: 9.719 kB / 0.6864 GB, free: 9.973 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.73e-05/0.1457, allocations: 29.64 kB / 0.6864 GB, free: 9.938 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1457, allocations: 3.938 kB / 0.6864 GB, free: 9.934 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.467e-05/0.1458, allocations: 45.69 kB / 0.6864 GB, free: 9.883 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1459, allocations: 12.06 kB / 0.6864 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1459, allocations: 0 / 0.6864 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1459, allocations: 0 / 0.6864 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.492e-05/0.1459, allocations: 4 kB / 0.6864 GB, free: 9.867 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1459, allocations: 4 kB / 0.6865 GB, free: 9.863 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.04e-05/0.146, allocations: 3.938 kB / 0.6865 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.146, allocations: 3.938 kB / 0.6865 GB, free: 9.855 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 6.379e-05/0.146, allocations: 114.4 kB / 0.6866 GB, free: 9.734 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.1461, allocations: 4 kB / 0.6866 GB, free: 9.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.1462, allocations: 121 kB / 0.6867 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.486e-05/0.1463, allocations: 180.2 kB / 0.6869 GB, free: 9.418 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.734e-05/0.1463, allocations: 176.3 kB / 0.687 GB, free: 9.238 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.558e-05/0.1464, allocations: 184.2 kB / 0.6872 GB, free: 9.051 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.1466, allocations: 413.2 kB / 0.6876 GB, free: 8.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.079e-05/0.1466, allocations: 109 kB / 0.6877 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.461e-05/0.1467, allocations: 104.9 kB / 0.6878 GB, free: 8.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.483e-05/0.1467, allocations: 180.3 kB / 0.688 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.727e-05/0.1468, allocations: 176.3 kB / 0.6881 GB, free: 8.004 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.553e-05/0.1468, allocations: 184.2 kB / 0.6883 GB, free: 7.816 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.614e-05/0.1469, allocations: 184.2 kB / 0.6885 GB, free: 7.629 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001206/0.147, allocations: 315.6 kB / 0.6888 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.232e-05/0.1471, allocations: 178.1 kB / 0.689 GB, free: 7.098 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.042e-05/0.1472, allocations: 192.2 kB / 0.6891 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.1473, allocations: 101 kB / 0.6892 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.248e-05/0.1474, allocations: 188.2 kB / 0.6894 GB, free: 6.605 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.709e-05/0.1474, allocations: 105 kB / 0.6895 GB, free: 6.496 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.998e-05/0.1475, allocations: 83.27 kB / 0.6896 GB, free: 6.414 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1475, allocations: 0 / 0.6896 GB, free: 6.414 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002785/0.1478, allocations: 43.88 kB / 0.6896 GB, free: 6.371 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.0005152/0.1483, allocations: 0.8672 MB / 0.6905 GB, free: 5.473 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.592e-05/0.1483, allocations: 4 kB / 0.6905 GB, free: 5.469 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1484, allocations: 4 kB / 0.6905 GB, free: 5.465 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.573e-06/0.1484, allocations: 0 / 0.6905 GB, free: 5.465 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.1488, allocations: 467.6 kB / 0.6909 GB, free: 5.004 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.1499, allocations: 1.336 MB / 0.6922 GB, free: 3.582 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.1501, allocations: 0.6768 MB / 0.6929 GB, free: 2.879 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.559e-05/0.1502, allocations: 11.45 kB / 0.6929 GB, free: 2.871 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.588e-05/0.1502, allocations: 7.438 kB / 0.6929 GB, free: 2.863 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1502, allocations: 0 / 0.6929 GB, free: 2.863 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.1686, allocations: 2.147 MB / 0.695 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.782/6.951, allocations: 10.53 kB / 0.695 GB, free: 0.8984 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)