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: translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001912/0.001912, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002006/0.002006, allocations: 191.1 kB / 16.14 MB, free: 6.715 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.433/1.433, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00263/0.002631, allocations: 291.1 kB / 290.2 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.083/1.083, allocations: 178.6 MB / 0.5068 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003957/0.003957, allocations: 99.55 kB / 0.6057 GB, free: 25.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2052, allocations: 89.16 MB / 0.6928 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006297/0.2115, allocations: 4.049 MB / 0.6967 GB, free: 0.793 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002275/0.2118, allocations: 155.5 kB / 0.6969 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.936e-05/0.2118, allocations: 4 kB / 0.6969 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.212, allocations: 7.938 kB / 0.6969 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.101e-05/0.2121, allocations: 15.91 kB / 0.6969 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.2124, allocations: 67.83 kB / 0.697 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.2125, allocations: 55.83 kB / 0.697 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.142e-05/0.2126, allocations: 3.984 kB / 0.697 GB, free: 500 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.266e-05/0.2126, allocations: 15.98 kB / 0.697 GB, free: 484 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.117e-05/0.2127, allocations: 19.92 kB / 0.6971 GB, free: 464 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/0.2127, allocations: 4 kB / 0.6971 GB, free: 460 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002457/0.213, allocations: 71.78 kB / 0.6971 GB, free: 388 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.337e-05/0.213, allocations: 11.92 kB / 0.6971 GB, free: 376 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.213, allocations: 4 kB / 0.6972 GB, free: 372 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.2132, allocations: 52.11 kB / 0.6972 GB, free: 320 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2132, allocations: 0 / 0.6972 GB, free: 320 kB / 494.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.2132, allocations: 0 / 0.6972 GB, free: 320 kB / 494.1 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.2132, allocations: 0 / 0.6972 GB, free: 320 kB / 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.0004196/0.2136, allocations: 343.5 kB / 0.6975 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.2137, allocations: 12.03 kB / 0.6975 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.2137, allocations: 0.9375 kB / 0.6975 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.2139, allocations: 164.3 kB / 0.6977 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-05/0.2139, allocations: 30.27 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.687e-06/0.214, allocations: 384 / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.2141, allocations: 49.56 kB / 0.6978 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2141, allocations: 0 / 0.6978 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.2141, allocations: 15.95 kB / 0.6978 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.2141, allocations: 4 kB / 0.6978 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.593e-05/0.2142, allocations: 12 kB / 0.6978 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004724/0.2147, allocations: 334 kB / 0.6981 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.791e-05/0.2147, allocations: 18.64 kB / 0.6981 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.072e-05/0.2148, allocations: 12.84 kB / 0.6982 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.02e-05/0.2148, allocations: 88.98 kB / 0.6982 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.2149, allocations: 34.56 kB / 0.6983 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.2149, allocations: 0 / 0.6983 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001417/0.215, allocations: 41.69 kB / 0.6983 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.2151, allocations: 51.41 kB / 0.6984 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.084e-05/0.2152, allocations: 105.7 kB / 0.6985 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.2152, allocations: 25.7 kB / 0.6985 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.018e-05/0.2153, allocations: 88.12 kB / 0.6986 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.304e-06/0.2153, allocations: 8.031 kB / 0.6986 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/0.2153, allocations: 13.72 kB / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.2155, allocations: 318.8 kB / 0.6989 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.449e-05/0.2155, allocations: 4 kB / 0.6989 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.624e-05/0.2155, allocations: 21.64 kB / 0.6989 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.876e-05/0.2156, allocations: 21.72 kB / 0.6989 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2156, allocations: 4 kB / 0.6989 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.312e-05/0.2157, allocations: 49.62 kB / 0.699 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.2157, allocations: 4 kB / 0.699 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.2157, allocations: 4 kB / 0.699 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.2157, allocations: 0 / 0.699 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.265e-05/0.2158, allocations: 4 kB / 0.699 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.2158, allocations: 0 / 0.699 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.806e-05/0.2158, allocations: 0 / 0.699 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.2158, allocations: 7.984 kB / 0.699 GB, free: 14.18 MB / 0.4981 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.994e-05/0.2159, allocations: 113.8 kB / 0.6991 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.2159, allocations: 7.906 kB / 0.6991 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.2161, allocations: 120.9 kB / 0.6992 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.033e-05/0.2162, allocations: 180.2 kB / 0.6994 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-05/0.2162, allocations: 180.2 kB / 0.6996 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.493e-05/0.2163, allocations: 180.3 kB / 0.6998 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.2166, allocations: 409.2 kB / 0.7001 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.574e-05/0.2167, allocations: 104.9 kB / 0.7002 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.348e-05/0.2167, allocations: 104.9 kB / 0.7003 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001383/0.2169, allocations: 184.2 kB / 0.7005 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000121/0.217, allocations: 184.2 kB / 0.7007 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.155e-05/0.2171, allocations: 180.3 kB / 0.7009 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-05/0.2172, allocations: 184.2 kB / 0.701 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.2174, allocations: 315.6 kB / 0.7013 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.971e-05/0.2174, allocations: 182.1 kB / 0.7015 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.851e-05/0.2176, allocations: 180.3 kB / 0.7017 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.2177, allocations: 108.9 kB / 0.7018 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.85e-05/0.2178, allocations: 180.2 kB / 0.702 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.146e-05/0.2179, allocations: 105.2 kB / 0.7021 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.232e-05/0.2179, allocations: 91.28 kB / 0.7022 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2179, allocations: 0 / 0.7022 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002513/0.2182, allocations: 19.94 kB / 0.7022 GB, free: 10.72 MB / 0.4981 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.0002668/0.2185, allocations: 198.4 kB / 0.7024 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.197e-05/0.2185, allocations: 15.98 kB / 0.7024 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2186, allocations: 0 / 0.7024 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.497e-06/0.2186, allocations: 3.938 kB / 0.7024 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.219, allocations: 0.5226 MB / 0.7029 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002734/0.2193, allocations: 183.7 kB / 0.7031 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.2196, allocations: 0.6731 MB / 0.7037 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.58e-05/0.2197, allocations: 12.27 kB / 0.7037 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.2197, allocations: 11.44 kB / 0.7037 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of SimCode: time 4.41e-07/0.2197, allocations: 3.938 kB / 0.7038 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of Templates: time 0.003204/0.2229, allocations: 0.6129 MB / 0.7044 GB, free: 8.422 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (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 & ./BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)