Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.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.SteamTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion",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.006815/0.006815, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001594/0.001594, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002053/0.002053, allocations: 275.1 kB / 290.8 MB, free: 1.801 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9273/0.9273, allocations: 169.3 MB / 0.4983 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002449/0.00245, allocations: 99.84 kB / 0.6809 GB, free: 36 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1671, allocations: 86.98 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.4702/0.6374, allocations: 135.4 MB / 0.8981 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0001703/0.6376, allocations: 54.34 kB / 0.8982 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.818e-05/0.6376, allocations: 0 / 0.8982 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.6377, allocations: 3.938 kB / 0.8982 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.155e-05/0.6378, allocations: 11.92 kB / 0.8982 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008266/0.6387, allocations: 250.1 kB / 0.8984 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 7.801e-05/0.6388, allocations: 35.84 kB / 0.8985 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 3.357e-05/0.6388, allocations: 4 kB / 0.8985 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 3.278e-05/0.6389, allocations: 12 kB / 0.8985 GB, free: 11.47 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.344e-05/0.6389, allocations: 19.8 kB / 0.8985 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.026e-05/0.6389, allocations: 0 / 0.8985 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004543/0.6394, allocations: 246.4 kB / 0.8987 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.95e-05/0.6394, allocations: 7.984 kB / 0.8987 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.607e-05/0.6395, allocations: 10.84 kB / 0.8987 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003613/0.6398, allocations: 190.6 kB / 0.8989 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.6399, allocations: 0 / 0.8989 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6399, allocations: 0 / 0.8989 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.6399, allocations: 0 / 0.8989 GB, free: 11.02 MB / 0.6544 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.0004364/0.6403, allocations: 373.9 kB / 0.8993 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.6404, allocations: 12.03 kB / 0.8993 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.6404, allocations: 30.75 kB / 0.8993 GB, free: 10.55 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.078e-05/0.6404, allocations: 0.9375 kB / 0.8993 GB, free: 10.55 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.6406, allocations: 168.4 kB / 0.8995 GB, free: 10.35 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.69e-05/0.6406, allocations: 28.89 kB / 0.8995 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.776e-06/0.6406, allocations: 3.938 kB / 0.8995 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001287/0.6408, allocations: 57.61 kB / 0.8996 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.6408, allocations: 0 / 0.8996 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.6408, allocations: 4 kB / 0.8996 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.6408, allocations: 0 / 0.8996 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.535e-05/0.6409, allocations: 11.98 kB / 0.8996 GB, free: 10.24 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007541/0.6416, allocations: 0.6028 MB / 0.9002 GB, free: 9.512 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 3.698e-05/0.6417, allocations: 18.52 kB / 0.9002 GB, free: 9.484 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.473e-05/0.6417, allocations: 9.734 kB / 0.9002 GB, free: 9.473 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001957/0.6419, allocations: 336.5 kB / 0.9005 GB, free: 9.07 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.6419, allocations: 30.56 kB / 0.9006 GB, free: 9.031 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.6419, allocations: 0 / 0.9006 GB, free: 9.031 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1): time 0.0001371/0.6421, allocations: 41.69 kB / 0.9006 GB, free: 8.984 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.6421, allocations: 51.41 kB / 0.9006 GB, free: 8.922 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.045e-05/0.6422, allocations: 101.8 kB / 0.9007 GB, free: 8.812 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.6422, allocations: 33.83 kB / 0.9008 GB, free: 8.773 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.11e-05/0.6423, allocations: 88.06 kB / 0.9009 GB, free: 8.684 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.434e-06/0.6423, allocations: 7.844 kB / 0.9009 GB, free: 8.676 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.6423, allocations: 17.72 kB / 0.9009 GB, free: 8.652 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.6425, allocations: 314.8 kB / 0.9012 GB, free: 8.336 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.866e-05/0.6425, allocations: 7.984 kB / 0.9012 GB, free: 8.328 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.335e-05/0.6425, allocations: 17.66 kB / 0.9012 GB, free: 8.305 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.382e-05/0.6425, allocations: 21.72 kB / 0.9012 GB, free: 8.277 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6426, allocations: 4 kB / 0.9012 GB, free: 8.273 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.402e-05/0.6426, allocations: 49.62 kB / 0.9013 GB, free: 8.219 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.6427, allocations: 4 kB / 0.9013 GB, free: 8.215 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.6427, allocations: 1.188 kB / 0.9013 GB, free: 8.215 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.6427, allocations: 7.938 kB / 0.9013 GB, free: 8.207 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.396e-05/0.6427, allocations: 7.984 kB / 0.9013 GB, free: 8.199 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.6427, allocations: 0 / 0.9013 GB, free: 8.199 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.762e-05/0.6428, allocations: 4.062 kB / 0.9013 GB, free: 8.195 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.6428, allocations: 7.938 kB / 0.9013 GB, free: 8.188 MB / 0.6544 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 6.782e-05/0.6429, allocations: 110.5 kB / 0.9014 GB, free: 8.07 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.6429, allocations: 3.906 kB / 0.9014 GB, free: 8.066 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.643, allocations: 120.9 kB / 0.9015 GB, free: 7.938 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.363e-05/0.6431, allocations: 180.3 kB / 0.9017 GB, free: 7.754 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.005e-05/0.6432, allocations: 188.2 kB / 0.9019 GB, free: 7.562 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.6e-05/0.6432, allocations: 180.3 kB / 0.9021 GB, free: 7.379 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.6434, allocations: 410.8 kB / 0.9024 GB, free: 6.922 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.332e-05/0.6435, allocations: 101 kB / 0.9025 GB, free: 6.816 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.795e-05/0.6435, allocations: 101 kB / 0.9026 GB, free: 6.711 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.253e-05/0.6436, allocations: 196.2 kB / 0.9028 GB, free: 6.512 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-05/0.6437, allocations: 176.3 kB / 0.903 GB, free: 6.332 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.976e-05/0.6437, allocations: 180.2 kB / 0.9032 GB, free: 6.148 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.159e-05/0.6438, allocations: 176.3 kB / 0.9033 GB, free: 5.969 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.6439, allocations: 315.7 kB / 0.9036 GB, free: 5.637 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.184e-05/0.644, allocations: 186.1 kB / 0.9038 GB, free: 5.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.638e-05/0.6441, allocations: 180.2 kB / 0.904 GB, free: 5.246 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.6442, allocations: 109.2 kB / 0.9041 GB, free: 5.133 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.295e-05/0.6443, allocations: 176.3 kB / 0.9043 GB, free: 4.953 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.6443, allocations: 109.7 kB / 0.9044 GB, free: 4.84 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.355e-05/0.6444, allocations: 91.22 kB / 0.9044 GB, free: 4.75 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.6444, allocations: 0 / 0.9044 GB, free: 4.75 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002969/0.6447, allocations: 55.92 kB / 0.9045 GB, free: 4.695 MB / 0.6544 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.0005612/0.6453, allocations: 0.8906 MB / 0.9054 GB, free: 3.777 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 7.308e-05/0.6453, allocations: 11.92 kB / 0.9054 GB, free: 3.766 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6454, allocations: 0 / 0.9054 GB, free: 3.766 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.6454, allocations: 0 / 0.9054 GB, free: 3.766 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.6458, allocations: 463.8 kB / 0.9058 GB, free: 3.309 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.6468, allocations: 1.346 MB / 0.9071 GB, free: 1.875 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.6471, allocations: 0.6729 MB / 0.9078 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.195e-05/0.6472, allocations: 13.3 kB / 0.9078 GB, free: 1.164 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.462e-05/0.6472, allocations: 11.44 kB / 0.9078 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of SimCode: time 5.21e-07/0.6472, allocations: 3.938 kB / 0.9078 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.6657, allocations: 2.234 MB / 0.91 GB, free: 15.07 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.001/7.666, allocations: 14.31 kB / 0.91 GB, free: 15.05 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)