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.001019/0.001019, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001081/0.001081, allocations: 194.5 kB / 16.14 MB, free: 6.707 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.194/1.194, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001916/0.001916, allocations: 283.1 kB / 290.2 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8535/0.8535, allocations: 169.2 MB / 0.4977 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 96.83 kB / 0.5946 GB, free: 28.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1231, allocations: 86.98 MB / 0.6795 GB, free: 1.109 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004367/0.1275, allocations: 4.038 MB / 0.6835 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001632/0.1277, allocations: 153.5 kB / 0.6836 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.214e-05/0.1277, allocations: 4 kB / 0.6836 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.35e-05/0.1278, allocations: 7.984 kB / 0.6836 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.685e-05/0.1279, allocations: 8.656 kB / 0.6836 GB, free: 12.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.1281, allocations: 75.75 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.266e-05/0.1282, allocations: 67.75 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.929e-05/0.1282, allocations: 0 / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.947e-05/0.1283, allocations: 11.98 kB / 0.6838 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.165e-05/0.1283, allocations: 15.98 kB / 0.6838 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.057e-05/0.1284, allocations: 0 / 0.6838 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.1285, allocations: 79.78 kB / 0.6839 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.083e-05/0.1286, allocations: 19.91 kB / 0.6839 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.1286, allocations: 4 kB / 0.6839 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.1287, allocations: 48.11 kB / 0.684 GB, free: 12.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1288, allocations: 0 / 0.684 GB, free: 12.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 5.41e-07/0.1288, allocations: 0 / 0.684 GB, free: 12.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1288, allocations: 0 / 0.684 GB, free: 12.57 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.0002868/0.1291, allocations: 331.5 kB / 0.6843 GB, free: 12.2 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.1291, allocations: 12.03 kB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.073e-05/0.1291, allocations: 38.67 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.1292, allocations: 8.844 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.153e-05/0.1293, allocations: 172.3 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.867e-05/0.1293, allocations: 30.27 kB / 0.6845 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.1293, allocations: 4.125 kB / 0.6845 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.881e-05/0.1294, allocations: 37.69 kB / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.6e-06/0.1294, allocations: 4 kB / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-06/0.1295, allocations: 0 / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.1295, allocations: 0 / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.835e-05/0.1295, allocations: 19.92 kB / 0.6846 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003415/0.1299, allocations: 338 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.953e-05/0.1299, allocations: 18.58 kB / 0.6849 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.224e-05/0.1299, allocations: 8.859 kB / 0.6849 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.273e-05/0.13, allocations: 85.16 kB / 0.685 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.13, allocations: 34.56 kB / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.13, allocations: 8 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001146/0.1301, allocations: 37.64 kB / 0.6851 GB, free: 11.19 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.699e-05/0.1302, allocations: 51.41 kB / 0.6851 GB, free: 11.13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.019e-05/0.1302, allocations: 105.8 kB / 0.6852 GB, free: 11.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.1303, allocations: 25.7 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.263e-05/0.1303, allocations: 87.98 kB / 0.6853 GB, free: 10.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.763e-06/0.1303, allocations: 3.906 kB / 0.6853 GB, free: 10.89 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.85e-05/0.1304, allocations: 21.7 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.114e-05/0.1304, allocations: 322.9 kB / 0.6857 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.2e-05/0.1305, allocations: 0 / 0.6857 GB, free: 10.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.009e-05/0.1305, allocations: 17.7 kB / 0.6857 GB, free: 10.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.367e-05/0.1305, allocations: 25.66 kB / 0.6857 GB, free: 10.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1305, allocations: 0 / 0.6857 GB, free: 10.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.853e-05/0.1306, allocations: 49.72 kB / 0.6858 GB, free: 10.43 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.1306, allocations: 4 kB / 0.6858 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.1306, allocations: 7.938 kB / 0.6858 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/0.1306, allocations: 0 / 0.6858 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.559e-05/0.1307, allocations: 4 kB / 0.6858 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1307, allocations: 0 / 0.6858 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.633e-05/0.1307, allocations: 0 / 0.6858 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.1307, allocations: 4 kB / 0.6858 GB, free: 10.41 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 5.952e-05/0.1308, allocations: 119.1 kB / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.62e-05/0.1308, allocations: 4 kB / 0.6859 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.494e-05/0.1309, allocations: 117 kB / 0.686 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.804e-05/0.131, allocations: 180.2 kB / 0.6862 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-05/0.131, allocations: 180.2 kB / 0.6864 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.824e-05/0.1311, allocations: 184.2 kB / 0.6865 GB, free: 9.605 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.1313, allocations: 413.1 kB / 0.6869 GB, free: 9.145 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.834e-05/0.1313, allocations: 101 kB / 0.687 GB, free: 9.039 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.692e-05/0.1313, allocations: 108.9 kB / 0.6871 GB, free: 8.926 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.714e-05/0.1314, allocations: 180.3 kB / 0.6873 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-05/0.1314, allocations: 180.2 kB / 0.6875 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.653e-05/0.1315, allocations: 180.2 kB / 0.6876 GB, free: 8.375 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-05/0.1315, allocations: 188.2 kB / 0.6878 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.1316, allocations: 308 kB / 0.6881 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.302e-05/0.1317, allocations: 186.2 kB / 0.6883 GB, free: 7.652 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.936e-05/0.1318, allocations: 184.2 kB / 0.6885 GB, free: 7.465 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.1319, allocations: 117 kB / 0.6886 GB, free: 7.344 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.66e-05/0.132, allocations: 176.3 kB / 0.6887 GB, free: 7.164 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.132, allocations: 113 kB / 0.6889 GB, free: 7.047 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.994e-05/0.132, allocations: 83.28 kB / 0.6889 GB, free: 6.965 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1321, allocations: 3.938 kB / 0.6889 GB, free: 6.961 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.1323, allocations: 23.88 kB / 0.689 GB, free: 6.938 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.0004109/0.1327, allocations: 0.8321 MB / 0.6898 GB, free: 6.078 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.382e-05/0.1328, allocations: 12 kB / 0.6898 GB, free: 6.066 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1328, allocations: 0 / 0.6898 GB, free: 6.066 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.986e-06/0.1328, allocations: 3.938 kB / 0.6898 GB, free: 6.062 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.1331, allocations: 0.5226 MB / 0.6903 GB, free: 5.535 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008042/0.1339, allocations: 1.314 MB / 0.6916 GB, free: 4.133 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001846/0.1341, allocations: 0.6809 MB / 0.6922 GB, free: 3.426 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.366e-05/0.1342, allocations: 7.938 kB / 0.6923 GB, free: 3.418 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.88e-05/0.1342, allocations: 15.44 kB / 0.6923 GB, free: 3.406 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1342, allocations: 0 / 0.6923 GB, free: 3.406 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2141/0.3483, allocations: 1.378 MB / 0.6936 GB, free: 2.172 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.3485, allocations: 221.5 kB / 0.6938 GB, free: 1.922 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.71/2.058, allocations: 0 / 0.6938 GB, free: 1.922 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)