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.001657/0.001657, allocations: 111.1 kB / 16.41 MB, free: 6.457 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.001777/0.001777, allocations: 189.2 kB / 17.34 MB, free: 5.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.409/1.409, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002574/0.002574, allocations: 291.6 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.008/1.008, allocations: 169.3 MB / 0.499 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 95.84 kB / 0.6821 GB, free: 6.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3901/0.3929, allocations: 86.97 MB / 0.767 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005985/0.3989, allocations: 4.021 MB / 0.771 GB, free: 15.83 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002222/0.3991, allocations: 159.5 kB / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.417e-05/0.3991, allocations: 0 / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.3992, allocations: 7.938 kB / 0.7711 GB, free: 15.67 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.725e-05/0.3993, allocations: 7.969 kB / 0.7711 GB, free: 15.66 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.3997, allocations: 83.69 kB / 0.7712 GB, free: 15.58 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.434e-05/0.3998, allocations: 31.84 kB / 0.7713 GB, free: 15.55 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.547e-05/0.3998, allocations: 8 kB / 0.7713 GB, free: 15.54 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.619e-05/0.3999, allocations: 15.98 kB / 0.7713 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.894e-05/0.3999, allocations: 15.92 kB / 0.7713 GB, free: 15.51 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.3999, allocations: 0 / 0.7713 GB, free: 15.51 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.4001, allocations: 55.81 kB / 0.7713 GB, free: 15.45 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.344e-05/0.4002, allocations: 7.984 kB / 0.7713 GB, free: 15.45 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.992e-05/0.4002, allocations: 11.92 kB / 0.7714 GB, free: 15.43 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.4004, allocations: 43.7 kB / 0.7714 GB, free: 15.39 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.4004, allocations: 0 / 0.7714 GB, free: 15.39 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4004, allocations: 0 / 0.7714 GB, free: 15.39 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.4004, allocations: 4 kB / 0.7714 GB, free: 15.39 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.0004996/0.4009, allocations: 337.2 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4009, allocations: 12.03 kB / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.471e-05/0.401, allocations: 0.9375 kB / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.4011, allocations: 172.2 kB / 0.7719 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.834e-05/0.4012, allocations: 30.27 kB / 0.7719 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-06/0.4012, allocations: 384 / 0.7719 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/0.4013, allocations: 49.61 kB / 0.772 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.4014, allocations: 4 kB / 0.772 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.4014, allocations: 0 / 0.772 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.182e-05/0.4014, allocations: 7.984 kB / 0.772 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.744e-05/0.4014, allocations: 15.98 kB / 0.772 GB, free: 14.68 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.4019, allocations: 338 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.403e-05/0.402, allocations: 18.52 kB / 0.7723 GB, free: 14.26 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.007e-05/0.402, allocations: 16.92 kB / 0.7724 GB, free: 14.24 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.4021, allocations: 85.09 kB / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.4021, allocations: 30.56 kB / 0.7725 GB, free: 14.1 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.372e-06/0.4022, allocations: 0 / 0.7725 GB, free: 14.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001509/0.4023, allocations: 45.59 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.4023, allocations: 51.41 kB / 0.7726 GB, free: 13.98 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.799e-05/0.4024, allocations: 97.84 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.4025, allocations: 29.83 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.616e-05/0.4025, allocations: 92.09 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.177e-06/0.4025, allocations: 0 / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-05/0.4026, allocations: 17.7 kB / 0.7728 GB, free: 13.73 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.4027, allocations: 318.8 kB / 0.7731 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.585e-05/0.4027, allocations: 4 kB / 0.7731 GB, free: 13.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.459e-05/0.4027, allocations: 13.72 kB / 0.7731 GB, free: 13.38 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.537e-05/0.4028, allocations: 29.64 kB / 0.7731 GB, free: 13.35 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.4028, allocations: 0 / 0.7731 GB, free: 13.35 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.699e-05/0.4029, allocations: 45.7 kB / 0.7732 GB, free: 13.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.4029, allocations: 7.984 kB / 0.7732 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.4029, allocations: 0 / 0.7732 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.4029, allocations: 0 / 0.7732 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.443e-05/0.4029, allocations: 8 kB / 0.7732 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.403, allocations: 3.938 kB / 0.7732 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.181e-05/0.403, allocations: 11.95 kB / 0.7732 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.403, allocations: 4 kB / 0.7732 GB, free: 13.26 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 9.854e-05/0.4031, allocations: 112.2 kB / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.4031, allocations: 3.938 kB / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.4032, allocations: 124.9 kB / 0.7734 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.885e-05/0.4033, allocations: 180.2 kB / 0.7736 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.872e-05/0.4034, allocations: 184.3 kB / 0.7738 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.692e-05/0.4035, allocations: 180.2 kB / 0.774 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.4038, allocations: 409.1 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.682e-05/0.4038, allocations: 105 kB / 0.7745 GB, free: 11.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.808e-05/0.4039, allocations: 108.9 kB / 0.7746 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.628e-05/0.404, allocations: 176.3 kB / 0.7747 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-05/0.4041, allocations: 188.3 kB / 0.7749 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001044/0.4042, allocations: 180.2 kB / 0.7751 GB, free: 11.22 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.569e-05/0.4042, allocations: 180.2 kB / 0.7753 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.4044, allocations: 307.7 kB / 0.7755 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.4045, allocations: 190 kB / 0.7757 GB, free: 10.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.994e-05/0.4046, allocations: 180.2 kB / 0.7759 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.4048, allocations: 105 kB / 0.776 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.676e-05/0.4049, allocations: 180.2 kB / 0.7762 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/0.4049, allocations: 105 kB / 0.7763 GB, free: 9.914 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.057e-05/0.405, allocations: 87.27 kB / 0.7764 GB, free: 9.828 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.405, allocations: 8 kB / 0.7764 GB, free: 9.82 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002381/0.4052, allocations: 11.94 kB / 0.7764 GB, free: 9.809 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.0002485/0.4055, allocations: 202.4 kB / 0.7766 GB, free: 9.602 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 7.44e-05/0.4055, allocations: 11.94 kB / 0.7766 GB, free: 9.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4055, allocations: 0 / 0.7766 GB, free: 9.59 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.727e-06/0.4056, allocations: 4.125 kB / 0.7766 GB, free: 9.586 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.406, allocations: 465.2 kB / 0.777 GB, free: 9.133 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002709/0.4062, allocations: 180.6 kB / 0.7772 GB, free: 8.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.4066, allocations: 0.6844 MB / 0.7779 GB, free: 8.219 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.922e-05/0.4066, allocations: 8 kB / 0.7779 GB, free: 8.211 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.831e-05/0.4066, allocations: 11.44 kB / 0.7779 GB, free: 8.199 MB / 0.545 GB Notification: Performance of SimCode: time 3e-07/0.4066, allocations: 0 / 0.7779 GB, free: 8.199 MB / 0.545 GB Notification: Performance of Templates: time 0.003144/0.4098, allocations: 0.6416 MB / 0.7785 GB, free: 7.562 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)