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.005444/0.005444, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001407/0.001407, allocations: 197 kB / 16.67 MB, free: 5.973 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002588/0.002588, allocations: 287 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 103.8 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1848, allocations: 86.97 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.005175/0.19, allocations: 3.284 MB / 0.7691 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000111/0.1901, allocations: 63.78 kB / 0.7692 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.644e-05/0.1902, allocations: 0 / 0.7692 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.505e-05/0.1903, allocations: 3.938 kB / 0.7692 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.757e-05/0.1903, allocations: 7.922 kB / 0.7692 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.1909, allocations: 183.3 kB / 0.7694 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.191, allocations: 35.86 kB / 0.7694 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.933e-05/0.191, allocations: 3.984 kB / 0.7694 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.299e-05/0.1911, allocations: 11.98 kB / 0.7694 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.84e-05/0.1912, allocations: 19.92 kB / 0.7694 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.1912, allocations: 0 / 0.7694 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003431/0.1915, allocations: 179.5 kB / 0.7696 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.123e-05/0.1916, allocations: 4 kB / 0.7696 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.122e-05/0.1916, allocations: 7.938 kB / 0.7696 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.1919, allocations: 139.9 kB / 0.7697 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1919, allocations: 0 / 0.7697 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.507e-06/0.1919, allocations: 3.984 kB / 0.7698 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.357e-06/0.1919, allocations: 4 kB / 0.7698 GB, free: 4.992 MB / 0.5606 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.0004331/0.1923, allocations: 347.3 kB / 0.7701 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.1924, allocations: 8.031 kB / 0.7701 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.1924, allocations: 34.75 kB / 0.7701 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/0.1925, allocations: 4.938 kB / 0.7701 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.1926, allocations: 168.3 kB / 0.7703 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.326e-05/0.1927, allocations: 26.27 kB / 0.7703 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.1927, allocations: 4.125 kB / 0.7703 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.1928, allocations: 53.61 kB / 0.7704 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.1929, allocations: 0 / 0.7704 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.1929, allocations: 0 / 0.7704 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.1929, allocations: 0 / 0.7704 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.141e-05/0.193, allocations: 23.98 kB / 0.7704 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007153/0.1937, allocations: 0.5794 MB / 0.771 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.215e-05/0.1937, allocations: 22.45 kB / 0.771 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.576e-05/0.1938, allocations: 8.922 kB / 0.771 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002763/0.194, allocations: 340.4 kB / 0.7713 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.1941, allocations: 34.56 kB / 0.7713 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1941, allocations: 0 / 0.7713 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001567/0.1943, allocations: 41.64 kB / 0.7714 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.1943, allocations: 55.34 kB / 0.7714 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.049e-05/0.1944, allocations: 105.8 kB / 0.7715 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.1944, allocations: 25.7 kB / 0.7716 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.491e-05/0.1945, allocations: 92.09 kB / 0.7717 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.765e-06/0.1945, allocations: 7.922 kB / 0.7717 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.1945, allocations: 17.84 kB / 0.7717 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1947, allocations: 322.8 kB / 0.772 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.449e-05/0.1947, allocations: 3.984 kB / 0.772 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.523e-05/0.1947, allocations: 13.72 kB / 0.772 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.359e-05/0.1948, allocations: 21.72 kB / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1948, allocations: 0 / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.538e-05/0.1949, allocations: 53.62 kB / 0.7721 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.1949, allocations: 4 kB / 0.7721 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1949, allocations: 4 kB / 0.7721 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.1949, allocations: 0 / 0.7721 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.127e-05/0.195, allocations: 7.984 kB / 0.7721 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.195, allocations: 0 / 0.7721 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.55e-05/0.195, allocations: 3.953 kB / 0.7721 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.195, allocations: 7.938 kB / 0.7721 GB, free: 2.191 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.802e-05/0.1951, allocations: 117.8 kB / 0.7722 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.832e-05/0.1952, allocations: 4 kB / 0.7722 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.1953, allocations: 121 kB / 0.7723 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.1e-05/0.1954, allocations: 180.2 kB / 0.7725 GB, free: 1.754 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.92e-05/0.1955, allocations: 176.3 kB / 0.7727 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-05/0.1955, allocations: 176.3 kB / 0.7728 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002933/0.1958, allocations: 417.1 kB / 0.7732 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.988e-05/0.1959, allocations: 101 kB / 0.7733 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.155e-05/0.1959, allocations: 112.9 kB / 0.7734 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.112e-05/0.196, allocations: 176.3 kB / 0.7736 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.861e-05/0.1961, allocations: 180.3 kB / 0.7738 GB, free: 352 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.703e-05/0.1962, allocations: 188.2 kB / 0.774 GB, free: 156 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3248/0.521, allocations: 180.3 kB / 0.7741 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001019/0.5212, allocations: 301.6 kB / 0.7744 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.5212, allocations: 183.3 kB / 0.7746 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.5213, allocations: 180.9 kB / 0.7748 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.5214, allocations: 109.7 kB / 0.7749 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.47e-05/0.5215, allocations: 188.3 kB / 0.7751 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.5215, allocations: 105.6 kB / 0.7752 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.657e-05/0.5215, allocations: 86.75 kB / 0.7752 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5215, allocations: 0 / 0.7752 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004054/0.5219, allocations: 31.58 kB / 0.7753 GB, free: 14.21 MB / 0.5606 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 (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.0003619/0.5223, allocations: 0.8688 MB / 0.7761 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.586e-05/0.5224, allocations: 15.58 kB / 0.7761 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5224, allocations: 0 / 0.7761 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.886e-06/0.5224, allocations: 1.578 kB / 0.7761 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.5228, allocations: 464.9 kB / 0.7766 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007979/0.5236, allocations: 1.339 MB / 0.7779 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.681e-05/0.5237, allocations: 0.6753 MB / 0.7785 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.071e-05/0.5238, allocations: 7.75 kB / 0.7786 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.876e-05/0.5238, allocations: 11.22 kB / 0.7786 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.5238, allocations: 5.094 kB / 0.7786 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.5466, allocations: 2.175 MB / 0.7807 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.669/8.215, allocations: 15.39 kB / 0.7807 GB, free: 10.57 MB / 0.5606 GB (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)