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.004262/0.004262, allocations: 99.53 kB / 15.73 MB, free: 5.996 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.001055/0.001055, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.286/1.286, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00204/0.00204, allocations: 296.1 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.9151/0.9151, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 99.83 kB / 0.6814 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3972, allocations: 86.97 MB / 0.7664 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005246/0.4025, allocations: 4.009 MB / 0.7703 GB, free: 15.92 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001944/0.4027, allocations: 159.4 kB / 0.7704 GB, free: 15.77 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.979e-05/0.4028, allocations: 0 / 0.7704 GB, free: 15.77 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 6.661e-05/0.4028, allocations: 0 / 0.7704 GB, free: 15.77 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.036e-05/0.4029, allocations: 19.92 kB / 0.7704 GB, free: 15.75 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.4032, allocations: 83.67 kB / 0.7705 GB, free: 15.66 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.11e-05/0.4033, allocations: 31.91 kB / 0.7706 GB, free: 15.63 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.115e-05/0.4034, allocations: 4 kB / 0.7706 GB, free: 15.63 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.218e-05/0.4034, allocations: 19.86 kB / 0.7706 GB, free: 15.61 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.092e-05/0.4035, allocations: 7.984 kB / 0.7706 GB, free: 15.6 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.4035, allocations: 4 kB / 0.7706 GB, free: 15.6 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.4037, allocations: 59.81 kB / 0.7707 GB, free: 15.54 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.458e-05/0.4037, allocations: 11.97 kB / 0.7707 GB, free: 15.53 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.469e-05/0.4037, allocations: 11.94 kB / 0.7707 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.4039, allocations: 43.61 kB / 0.7707 GB, free: 15.48 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.4039, allocations: 0 / 0.7707 GB, free: 15.48 MB / 0.545 GB Notification: Performance of FrontEnd: time 7.72e-07/0.4039, allocations: 0 / 0.7707 GB, free: 15.48 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.4039, allocations: 3.938 kB / 0.7707 GB, free: 15.47 MB / 0.545 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.0003221/0.4042, allocations: 339.4 kB / 0.771 GB, free: 15.09 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.4043, allocations: 8.031 kB / 0.7711 GB, free: 15.09 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.4043, allocations: 8.938 kB / 0.7711 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.4044, allocations: 166.9 kB / 0.7712 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/0.4045, allocations: 30.2 kB / 0.7712 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.056e-06/0.4045, allocations: 4.375 kB / 0.7713 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.4046, allocations: 45.62 kB / 0.7713 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.4046, allocations: 0 / 0.7713 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.4046, allocations: 4 kB / 0.7713 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.4046, allocations: 0 / 0.7713 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.777e-05/0.4047, allocations: 15.98 kB / 0.7713 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003616/0.405, allocations: 338 kB / 0.7716 GB, free: 14.37 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.104e-05/0.4051, allocations: 18.52 kB / 0.7717 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.406e-05/0.4051, allocations: 8.859 kB / 0.7717 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 7.601e-05/0.4052, allocations: 85.17 kB / 0.7717 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.4052, allocations: 38.55 kB / 0.7718 GB, free: 14.18 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.4052, allocations: 4 kB / 0.7718 GB, free: 14.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001124/0.4053, allocations: 33.7 kB / 0.7718 GB, free: 14.14 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.4054, allocations: 55.34 kB / 0.7719 GB, free: 14.07 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.233e-05/0.4055, allocations: 105.8 kB / 0.772 GB, free: 13.96 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.4055, allocations: 25.7 kB / 0.772 GB, free: 13.93 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.423e-05/0.4055, allocations: 84.14 kB / 0.7721 GB, free: 13.84 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.753e-06/0.4055, allocations: 3.906 kB / 0.7721 GB, free: 13.84 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.4056, allocations: 17.72 kB / 0.7721 GB, free: 13.82 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.4057, allocations: 322.9 kB / 0.7724 GB, free: 13.49 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.403e-05/0.4057, allocations: 4 kB / 0.7724 GB, free: 13.49 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.745e-05/0.4057, allocations: 17.72 kB / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.113e-05/0.4058, allocations: 17.7 kB / 0.7724 GB, free: 13.44 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4058, allocations: 0 / 0.7724 GB, free: 13.44 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.444e-05/0.4058, allocations: 53.67 kB / 0.7725 GB, free: 13.38 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.4059, allocations: 4 kB / 0.7725 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.4059, allocations: 0 / 0.7725 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.4059, allocations: 3.984 kB / 0.7725 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.851e-05/0.4059, allocations: 8 kB / 0.7725 GB, free: 13.37 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.4059, allocations: 0 / 0.7725 GB, free: 13.37 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.999e-05/0.406, allocations: 3.938 kB / 0.7725 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.406, allocations: 3.938 kB / 0.7725 GB, free: 13.36 MB / 0.545 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.236e-05/0.406, allocations: 125 kB / 0.7726 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.627e-05/0.4061, allocations: 7.938 kB / 0.7726 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.087e-05/0.4062, allocations: 117 kB / 0.7728 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.377e-05/0.4062, allocations: 176.3 kB / 0.7729 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.633e-05/0.4063, allocations: 192.1 kB / 0.7731 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.445e-05/0.4063, allocations: 176.3 kB / 0.7733 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.4066, allocations: 417.1 kB / 0.7737 GB, free: 12.08 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.688e-05/0.4066, allocations: 105.2 kB / 0.7738 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.931e-05/0.4066, allocations: 108.9 kB / 0.7739 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-05/0.4067, allocations: 176.3 kB / 0.774 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.468e-05/0.4067, allocations: 180.3 kB / 0.7742 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.337e-05/0.4068, allocations: 180.2 kB / 0.7744 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.433e-05/0.4069, allocations: 180.3 kB / 0.7746 GB, free: 11.12 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.407, allocations: 315.7 kB / 0.7749 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-05/0.4071, allocations: 178.1 kB / 0.775 GB, free: 10.59 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.092e-05/0.4071, allocations: 184.2 kB / 0.7752 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.4073, allocations: 121 kB / 0.7753 GB, free: 10.28 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.915e-05/0.4074, allocations: 180.2 kB / 0.7755 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.4074, allocations: 101 kB / 0.7756 GB, free: 9.992 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.155e-05/0.4074, allocations: 83.27 kB / 0.7757 GB, free: 9.91 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4074, allocations: 0 / 0.7757 GB, free: 9.91 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002289/0.4077, allocations: 16 kB / 0.7757 GB, free: 9.895 MB / 0.545 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.0002086/0.4079, allocations: 210.4 kB / 0.7759 GB, free: 9.68 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 5.771e-05/0.408, allocations: 7.938 kB / 0.7759 GB, free: 9.672 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.408, allocations: 0 / 0.7759 GB, free: 9.672 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.785e-06/0.408, allocations: 4 kB / 0.7759 GB, free: 9.668 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.4083, allocations: 455.7 kB / 0.7763 GB, free: 9.219 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002244/0.4086, allocations: 182 kB / 0.7765 GB, free: 9.012 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.4088, allocations: 0.6768 MB / 0.7772 GB, free: 8.309 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.596e-05/0.4088, allocations: 4 kB / 0.7772 GB, free: 8.305 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.637e-05/0.4088, allocations: 11.44 kB / 0.7772 GB, free: 8.293 MB / 0.545 GB Notification: Performance of SimCode: time 1.493e-06/0.4088, allocations: 0 / 0.7772 GB, free: 8.293 MB / 0.545 GB Notification: Performance of Templates: time 0.002419/0.4113, allocations: 0.6432 MB / 0.7778 GB, free: 7.652 MB / 0.545 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)