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.001369/0.001369, allocations: 107.6 kB / 16.41 MB, free: 6.508 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.001376/0.001376, allocations: 187 kB / 17.34 MB, free: 5.742 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.278/1.278, allocations: 222.9 MB / 241 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.002032/0.002032, allocations: 290.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8926/0.8926, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 103.8 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4007/0.4024, allocations: 86.97 MB / 0.767 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004697/0.4071, allocations: 4.009 MB / 0.7709 GB, free: 15.91 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001813/0.4073, allocations: 167.5 kB / 0.7711 GB, free: 15.75 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.124e-05/0.4074, allocations: 0 / 0.7711 GB, free: 15.75 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 9.092e-05/0.4075, allocations: 7.875 kB / 0.7711 GB, free: 15.74 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.445e-05/0.4075, allocations: 4 kB / 0.7711 GB, free: 15.74 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.4078, allocations: 89.67 kB / 0.7712 GB, free: 15.65 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.054e-05/0.4079, allocations: 35.84 kB / 0.7712 GB, free: 15.62 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.874e-05/0.408, allocations: 0 / 0.7712 GB, free: 15.62 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.776e-05/0.408, allocations: 16 kB / 0.7712 GB, free: 15.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.491e-05/0.4081, allocations: 15.91 kB / 0.7713 GB, free: 15.59 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.4081, allocations: 4 kB / 0.7713 GB, free: 15.58 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.4083, allocations: 55.81 kB / 0.7713 GB, free: 15.53 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.861e-05/0.4083, allocations: 7.984 kB / 0.7713 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.579e-05/0.4084, allocations: 11.92 kB / 0.7713 GB, free: 15.51 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.4085, allocations: 43.61 kB / 0.7714 GB, free: 15.47 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4085, allocations: 4 kB / 0.7714 GB, free: 15.46 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.383e-06/0.4085, allocations: 0 / 0.7714 GB, free: 15.46 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.4085, allocations: 0 / 0.7714 GB, free: 15.46 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.0003509/0.4089, allocations: 335.5 kB / 0.7717 GB, free: 15.09 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.4089, allocations: 8.031 kB / 0.7717 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.4089, allocations: 4.938 kB / 0.7717 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.4091, allocations: 166.9 kB / 0.7719 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.194e-05/0.4091, allocations: 34.2 kB / 0.7719 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-06/0.4091, allocations: 384 / 0.7719 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.4092, allocations: 53.61 kB / 0.772 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.4093, allocations: 0 / 0.772 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.4093, allocations: 0 / 0.772 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.4093, allocations: 0 / 0.772 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.485e-05/0.4093, allocations: 19.98 kB / 0.772 GB, free: 14.76 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003766/0.4097, allocations: 330 kB / 0.7723 GB, free: 14.37 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.437e-05/0.4098, allocations: 30.55 kB / 0.7723 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.486e-05/0.4098, allocations: 8.859 kB / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-05/0.4099, allocations: 81.17 kB / 0.7724 GB, free: 14.22 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.4099, allocations: 34.56 kB / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.4099, allocations: 0 / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001275/0.41, allocations: 37.62 kB / 0.7725 GB, free: 14.14 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.4101, allocations: 59.53 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.125e-05/0.4101, allocations: 105.8 kB / 0.7726 GB, free: 13.95 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.4102, allocations: 25.7 kB / 0.7727 GB, free: 13.92 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.803e-05/0.4102, allocations: 88.12 kB / 0.7727 GB, free: 13.83 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.853e-06/0.4102, allocations: 7.906 kB / 0.7728 GB, free: 13.82 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.743e-05/0.4103, allocations: 13.72 kB / 0.7728 GB, free: 13.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.4104, allocations: 318.8 kB / 0.7731 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.447e-05/0.4104, allocations: 3.984 kB / 0.7731 GB, free: 13.48 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.264e-05/0.4104, allocations: 21.66 kB / 0.7731 GB, free: 13.45 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.069e-05/0.4104, allocations: 25.66 kB / 0.7731 GB, free: 13.42 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4105, allocations: 0 / 0.7731 GB, free: 13.42 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.572e-05/0.4105, allocations: 45.69 kB / 0.7732 GB, free: 13.37 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.4105, allocations: 10.5 kB / 0.7732 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.4105, allocations: 0 / 0.7732 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.4106, allocations: 64 / 0.7732 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.86e-05/0.4106, allocations: 8 kB / 0.7732 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.4106, allocations: 7.922 kB / 0.7732 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.757e-05/0.4106, allocations: 7.938 kB / 0.7732 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.4107, allocations: 0 / 0.7732 GB, free: 13.34 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 6.648e-05/0.4107, allocations: 117.3 kB / 0.7733 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/0.4108, allocations: 3.906 kB / 0.7733 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.507e-05/0.4109, allocations: 121 kB / 0.7734 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.131e-05/0.4109, allocations: 188.1 kB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.011e-05/0.411, allocations: 176.3 kB / 0.7738 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.502e-05/0.411, allocations: 180.3 kB / 0.7739 GB, free: 12.53 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.4112, allocations: 409.1 kB / 0.7743 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.209e-05/0.4113, allocations: 105 kB / 0.7744 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.114e-05/0.4113, allocations: 112.9 kB / 0.7745 GB, free: 11.85 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.097e-05/0.4114, allocations: 180.2 kB / 0.7747 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.314e-05/0.4114, allocations: 180.3 kB / 0.7749 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.458e-05/0.4115, allocations: 184.2 kB / 0.7751 GB, free: 11.29 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.652e-05/0.4115, allocations: 176.3 kB / 0.7752 GB, free: 11.11 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000118/0.4116, allocations: 315.7 kB / 0.7755 GB, free: 10.78 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.949e-05/0.4117, allocations: 182 kB / 0.7757 GB, free: 10.58 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.407e-05/0.4118, allocations: 180.3 kB / 0.7759 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.4119, allocations: 105 kB / 0.776 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.412, allocations: 184.2 kB / 0.7762 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.412, allocations: 109 kB / 0.7763 GB, free: 9.984 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.949e-05/0.4121, allocations: 83.28 kB / 0.7763 GB, free: 9.902 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4121, allocations: 0 / 0.7763 GB, free: 9.902 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002279/0.4123, allocations: 15.98 kB / 0.7764 GB, free: 9.887 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.0002265/0.4125, allocations: 198.4 kB / 0.7765 GB, free: 9.684 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.464e-05/0.4126, allocations: 23.92 kB / 0.7766 GB, free: 9.66 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4126, allocations: 0 / 0.7766 GB, free: 9.66 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.173e-06/0.4126, allocations: 0 / 0.7766 GB, free: 9.66 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/0.413, allocations: 455.7 kB / 0.777 GB, free: 9.211 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002387/0.4132, allocations: 207.5 kB / 0.7772 GB, free: 8.973 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.4135, allocations: 0.6807 MB / 0.7779 GB, free: 8.266 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.992e-05/0.4135, allocations: 15.36 kB / 0.7779 GB, free: 8.25 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4135, allocations: 0 / 0.7779 GB, free: 8.25 MB / 0.545 GB Notification: Performance of Templates: time 0.001869/0.4154, allocations: 0.7501 MB / 0.7786 GB, free: 7.508 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)