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.004104/0.004104, allocations: 101.4 kB / 15.73 MB, free: 6.051 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.001065/0.001065, allocations: 188.3 kB / 16.67 MB, free: 5.969 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.291/1.291, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00208/0.00208, allocations: 282.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9452/0.9452, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 87.86 kB / 0.6809 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3865/0.3884, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1301/0.5185, allocations: 135.4 MB / 0.8981 GB, free: 11.89 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0002274/0.5188, allocations: 55.86 kB / 0.8982 GB, free: 11.84 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.11e-05/0.5188, allocations: 0 / 0.8982 GB, free: 11.84 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.519, allocations: 3.938 kB / 0.8982 GB, free: 11.83 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 9.598e-05/0.5191, allocations: 15.91 kB / 0.8982 GB, free: 11.82 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.5203, allocations: 253.1 kB / 0.8984 GB, free: 11.57 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.5204, allocations: 27.86 kB / 0.8985 GB, free: 11.54 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 5.113e-05/0.5205, allocations: 7.984 kB / 0.8985 GB, free: 11.54 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 5.137e-05/0.5205, allocations: 19.92 kB / 0.8985 GB, free: 11.52 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 8.736e-05/0.5206, allocations: 8 kB / 0.8985 GB, free: 11.51 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.5207, allocations: 7.984 kB / 0.8985 GB, free: 11.5 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006249/0.5213, allocations: 243.4 kB / 0.8987 GB, free: 11.26 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 5.285e-05/0.5214, allocations: 11.97 kB / 0.8988 GB, free: 11.25 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.932e-05/0.5214, allocations: 7.938 kB / 0.8988 GB, free: 11.24 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.5218, allocations: 184.7 kB / 0.8989 GB, free: 11.07 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.5218, allocations: 3.984 kB / 0.8989 GB, free: 11.07 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5218, allocations: 3.938 kB / 0.8989 GB, free: 11.06 MB / 0.67 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.5219, allocations: 0 / 0.8989 GB, free: 11.06 MB / 0.67 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.0003978/0.5223, allocations: 359.2 kB / 0.8993 GB, free: 10.66 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.5223, allocations: 16.03 kB / 0.8993 GB, free: 10.65 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.234e-05/0.5223, allocations: 34.75 kB / 0.8993 GB, free: 10.61 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.5224, allocations: 0.9375 kB / 0.8993 GB, free: 10.61 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.5225, allocations: 172.3 kB / 0.8995 GB, free: 10.4 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.619e-05/0.5226, allocations: 30.02 kB / 0.8995 GB, free: 10.36 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-06/0.5226, allocations: 0 / 0.8995 GB, free: 10.36 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.5227, allocations: 45.69 kB / 0.8996 GB, free: 10.31 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.5227, allocations: 3.984 kB / 0.8996 GB, free: 10.31 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.5227, allocations: 4 kB / 0.8996 GB, free: 10.3 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.5227, allocations: 4 kB / 0.8996 GB, free: 10.3 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.461e-05/0.5228, allocations: 15.92 kB / 0.8996 GB, free: 10.29 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007228/0.5235, allocations: 0.5989 MB / 0.9002 GB, free: 9.562 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 4.538e-05/0.5236, allocations: 14.58 kB / 0.9002 GB, free: 9.539 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.583e-05/0.5236, allocations: 4.859 kB / 0.9002 GB, free: 9.531 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001973/0.5238, allocations: 340.5 kB / 0.9005 GB, free: 9.125 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.5238, allocations: 30.56 kB / 0.9006 GB, free: 9.086 MB / 0.67 GB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.5238, allocations: 0 / 0.9006 GB, free: 9.086 MB / 0.67 GB Notification: Performance of matching and sorting (n=1): time 0.0001784/0.524, allocations: 49.58 kB / 0.9006 GB, free: 9.031 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.5241, allocations: 51.41 kB / 0.9007 GB, free: 8.969 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.005e-05/0.5242, allocations: 101.8 kB / 0.9008 GB, free: 8.859 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.5242, allocations: 29.7 kB / 0.9008 GB, free: 8.824 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 5.379e-05/0.5243, allocations: 92.16 kB / 0.9009 GB, free: 8.73 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 9.548e-06/0.5243, allocations: 0 / 0.9009 GB, free: 8.73 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/0.5243, allocations: 17.66 kB / 0.9009 GB, free: 8.707 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.5245, allocations: 318.8 kB / 0.9012 GB, free: 8.387 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.926e-05/0.5245, allocations: 7.984 kB / 0.9012 GB, free: 8.379 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.594e-05/0.5245, allocations: 13.72 kB / 0.9012 GB, free: 8.359 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.445e-05/0.5246, allocations: 25.66 kB / 0.9012 GB, free: 8.328 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5246, allocations: 4 kB / 0.9012 GB, free: 8.324 MB / 0.67 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.696e-05/0.5247, allocations: 49.62 kB / 0.9013 GB, free: 8.27 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.5247, allocations: 4 kB / 0.9013 GB, free: 8.266 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5247, allocations: 0 / 0.9013 GB, free: 8.266 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.5247, allocations: 4 kB / 0.9013 GB, free: 8.262 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.324e-05/0.5248, allocations: 7.984 kB / 0.9013 GB, free: 8.254 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.5248, allocations: 0 / 0.9013 GB, free: 8.254 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.635e-05/0.5248, allocations: 11.83 kB / 0.9013 GB, free: 8.242 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.5249, allocations: 8.062 kB / 0.9013 GB, free: 8.234 MB / 0.67 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 8.061e-05/0.525, allocations: 108.2 kB / 0.9014 GB, free: 8.121 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.525, allocations: 4 kB / 0.9014 GB, free: 8.117 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.5251, allocations: 120.9 kB / 0.9015 GB, free: 7.988 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.708e-05/0.5252, allocations: 180.3 kB / 0.9017 GB, free: 7.805 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.969e-05/0.5253, allocations: 180.3 kB / 0.9019 GB, free: 7.621 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.883e-05/0.5253, allocations: 184.1 kB / 0.9021 GB, free: 7.434 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.5255, allocations: 405.2 kB / 0.9024 GB, free: 6.98 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.992e-05/0.5256, allocations: 104.9 kB / 0.9025 GB, free: 6.871 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.547e-05/0.5256, allocations: 101 kB / 0.9026 GB, free: 6.766 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.262e-05/0.5257, allocations: 188.2 kB / 0.9028 GB, free: 6.574 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.523e-05/0.5257, allocations: 188.2 kB / 0.903 GB, free: 6.383 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.406e-05/0.5258, allocations: 176.3 kB / 0.9032 GB, free: 6.203 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.786e-05/0.5258, allocations: 180.2 kB / 0.9033 GB, free: 6.02 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.5259, allocations: 308 kB / 0.9036 GB, free: 5.695 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 5.901e-05/0.526, allocations: 190 kB / 0.9038 GB, free: 5.484 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.874e-05/0.5261, allocations: 180.3 kB / 0.904 GB, free: 5.301 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.5262, allocations: 116.9 kB / 0.9041 GB, free: 5.18 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.5263, allocations: 176.3 kB / 0.9043 GB, free: 5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.5263, allocations: 108.9 kB / 0.9044 GB, free: 4.887 MB / 0.67 GB Notification: Performance of sorting global known variables: time 4.421e-05/0.5264, allocations: 91.2 kB / 0.9045 GB, free: 4.797 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5264, allocations: 0 / 0.9045 GB, free: 4.797 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.000322/0.5267, allocations: 59.75 kB / 0.9045 GB, free: 4.738 MB / 0.67 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.0005633/0.5273, allocations: 0.8907 MB / 0.9054 GB, free: 3.816 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 7.503e-05/0.5274, allocations: 11.92 kB / 0.9054 GB, free: 3.805 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5274, allocations: 3.938 kB / 0.9054 GB, free: 3.801 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.5274, allocations: 0 / 0.9054 GB, free: 3.801 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.5278, allocations: 467.8 kB / 0.9059 GB, free: 3.34 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.5289, allocations: 1.344 MB / 0.9072 GB, free: 1.906 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.5292, allocations: 0.6729 MB / 0.9078 GB, free: 1.207 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 4.588e-05/0.5292, allocations: 11.98 kB / 0.9078 GB, free: 1.195 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.781e-05/0.5293, allocations: 11.44 kB / 0.9078 GB, free: 1.184 MB / 0.67 GB Notification: Performance of SimCode: time 2.2e-07/0.5293, allocations: 0 / 0.9078 GB, free: 1.184 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.5465, allocations: 2.221 MB / 0.91 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.142/7.689, allocations: 19.95 kB / 0.91 GB, free: 15.09 MB / 0.6856 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion_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_Examples_SteamTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)