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.001232/0.001231, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001349/0.001349, allocations: 188.1 kB / 16.25 MB, free: 6.617 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.254/1.254, allocations: 222.9 MB / 239.9 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001938/0.001938, allocations: 286.8 kB / 290.4 MB, free: 2.047 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8711/0.8711, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00153/0.001531, allocations: 90.5 kB / 0.5948 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1426, allocations: 86.97 MB / 0.6797 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004461/0.1471, allocations: 4.039 MB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001585/0.1473, allocations: 152.2 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.755e-05/0.1473, allocations: 0.5312 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.245e-05/0.1474, allocations: 13.14 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.363e-05/0.1475, allocations: 11.92 kB / 0.6838 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.1478, allocations: 80.59 kB / 0.6839 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.855e-05/0.1479, allocations: 35.84 kB / 0.6839 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.924e-05/0.1479, allocations: 0 / 0.6839 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.916e-05/0.1479, allocations: 12 kB / 0.6839 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.399e-05/0.148, allocations: 19.97 kB / 0.684 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.477e-06/0.148, allocations: 3.938 kB / 0.684 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.1482, allocations: 59.75 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.405e-05/0.1482, allocations: 8 kB / 0.684 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.562e-05/0.1482, allocations: 7.984 kB / 0.684 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.1483, allocations: 52.05 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1484, allocations: 4 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1484, allocations: 0 / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1484, allocations: 4 kB / 0.6841 GB, free: 12.44 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.0003038/0.1487, allocations: 327.6 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.1487, allocations: 8.031 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.633e-05/0.1487, allocations: 30.75 kB / 0.6845 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.156e-05/0.1488, allocations: 12.83 kB / 0.6845 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.791e-05/0.1489, allocations: 168.3 kB / 0.6846 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.844e-05/0.1489, allocations: 34.27 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.1489, allocations: 8.125 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.1491, allocations: 45.67 kB / 0.6847 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.1491, allocations: 0 / 0.6847 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.1491, allocations: 0 / 0.6847 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.1491, allocations: 0 / 0.6847 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.896e-05/0.1491, allocations: 23.92 kB / 0.6847 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003396/0.1495, allocations: 330 kB / 0.685 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.825e-05/0.1495, allocations: 22.58 kB / 0.6851 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.214e-05/0.1495, allocations: 4.859 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.277e-05/0.1496, allocations: 89.16 kB / 0.6852 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.1496, allocations: 30.56 kB / 0.6852 GB, free: 11.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1497, allocations: 0 / 0.6852 GB, free: 11.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001121/0.1498, allocations: 37.64 kB / 0.6852 GB, free: 11.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.1498, allocations: 63.53 kB / 0.6853 GB, free: 11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.132e-05/0.1499, allocations: 101.8 kB / 0.6854 GB, free: 10.89 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.1499, allocations: 25.7 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.601e-05/0.1499, allocations: 92.05 kB / 0.6855 GB, free: 10.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.01e-06/0.1499, allocations: 3.906 kB / 0.6855 GB, free: 10.76 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.15, allocations: 17.7 kB / 0.6855 GB, free: 10.74 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.323e-05/0.1501, allocations: 318.8 kB / 0.6858 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.3e-05/0.1501, allocations: 4 kB / 0.6858 GB, free: 10.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.988e-05/0.1501, allocations: 17.72 kB / 0.6858 GB, free: 10.39 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.076e-05/0.1502, allocations: 25.64 kB / 0.6859 GB, free: 10.36 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1502, allocations: 0 / 0.6859 GB, free: 10.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.532e-05/0.1502, allocations: 49.62 kB / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.238e-06/0.1502, allocations: 8 kB / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-06/0.1503, allocations: 0 / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.646e-06/0.1503, allocations: 4.062 kB / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.62e-05/0.1503, allocations: 4 kB / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.1503, allocations: 7.938 kB / 0.6859 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.538e-05/0.1503, allocations: 0 / 0.6859 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.1504, allocations: 0 / 0.6859 GB, free: 10.28 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.046e-05/0.1504, allocations: 115.1 kB / 0.686 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.1504, allocations: 0 / 0.686 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.701e-05/0.1505, allocations: 124.9 kB / 0.6862 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.625e-05/0.1506, allocations: 180.3 kB / 0.6863 GB, free: 9.848 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.565e-05/0.1506, allocations: 176.3 kB / 0.6865 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-05/0.1507, allocations: 188.2 kB / 0.6867 GB, free: 9.477 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.1509, allocations: 405.2 kB / 0.6871 GB, free: 9.023 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.523e-05/0.1509, allocations: 108.9 kB / 0.6872 GB, free: 8.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.424e-05/0.1509, allocations: 105 kB / 0.6873 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.394e-05/0.151, allocations: 176.3 kB / 0.6874 GB, free: 8.621 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.743e-05/0.151, allocations: 184.2 kB / 0.6876 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.521e-05/0.1511, allocations: 180.3 kB / 0.6878 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.547e-05/0.1511, allocations: 184.2 kB / 0.688 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001027/0.1512, allocations: 311.9 kB / 0.6883 GB, free: 7.734 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.509e-05/0.1513, allocations: 186.1 kB / 0.6884 GB, free: 7.527 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.206e-05/0.1514, allocations: 192.2 kB / 0.6886 GB, free: 7.332 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.1515, allocations: 104.9 kB / 0.6887 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.1516, allocations: 180.3 kB / 0.6889 GB, free: 7.039 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.1516, allocations: 108.9 kB / 0.689 GB, free: 6.926 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.881e-05/0.1516, allocations: 91.2 kB / 0.6891 GB, free: 6.836 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1516, allocations: 0 / 0.6891 GB, free: 6.836 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002215/0.1519, allocations: 23.88 kB / 0.6891 GB, free: 6.812 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.0003903/0.1523, allocations: 0.8244 MB / 0.6899 GB, free: 5.961 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.815e-05/0.1523, allocations: 11.92 kB / 0.6899 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1523, allocations: 0 / 0.6899 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/0.1523, allocations: 0 / 0.6899 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.1527, allocations: 465.8 kB / 0.6904 GB, free: 5.492 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007876/0.1535, allocations: 1.328 MB / 0.6917 GB, free: 4.078 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000178/0.1537, allocations: 0.6729 MB / 0.6923 GB, free: 3.379 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.807e-05/0.1537, allocations: 8 kB / 0.6923 GB, free: 3.371 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.843e-05/0.1537, allocations: 13.19 kB / 0.6923 GB, free: 3.363 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1537, allocations: 0 / 0.6923 GB, free: 3.363 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5195/0.6733, allocations: 1.421 MB / 0.6937 GB, free: 2.109 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/0.6735, allocations: 216.8 kB / 0.6939 GB, free: 1.859 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.746/3.42, allocations: 4 kB / 0.6939 GB, free: 1.855 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)