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.001/0.001, allocations: 106.5 kB / 16.41 MB, free: 6.473 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.00104/0.00104, allocations: 187 kB / 17.34 MB, free: 5.75 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.24/1.24, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002206/0.002206, allocations: 293.3 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8786/0.8786, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 95.84 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3845, allocations: 86.97 MB / 0.767 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005038/0.3896, allocations: 4.013 MB / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001892/0.3898, allocations: 155.5 kB / 0.7711 GB, free: 15.7 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.311e-05/0.3899, allocations: 0 / 0.7711 GB, free: 15.7 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 8.818e-05/0.39, allocations: 3.938 kB / 0.7711 GB, free: 15.7 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.818e-05/0.3901, allocations: 11.97 kB / 0.7711 GB, free: 15.69 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003297/0.3904, allocations: 91.06 kB / 0.7712 GB, free: 15.6 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.801e-05/0.3905, allocations: 31.86 kB / 0.7712 GB, free: 15.57 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.918e-05/0.3905, allocations: 4 kB / 0.7712 GB, free: 15.57 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.941e-05/0.3906, allocations: 23.84 kB / 0.7712 GB, free: 15.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.892e-05/0.3906, allocations: 8 kB / 0.7713 GB, free: 15.54 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.3906, allocations: 0 / 0.7713 GB, free: 15.54 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.3908, allocations: 63.8 kB / 0.7713 GB, free: 15.47 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.015e-05/0.3909, allocations: 7.984 kB / 0.7713 GB, free: 15.46 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.711e-05/0.3909, allocations: 11.94 kB / 0.7713 GB, free: 15.45 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.3911, allocations: 43.61 kB / 0.7714 GB, free: 15.41 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3911, allocations: 0 / 0.7714 GB, free: 15.41 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3911, allocations: 0 / 0.7714 GB, free: 15.41 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.319e-06/0.3911, allocations: 0 / 0.7714 GB, free: 15.41 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.0003469/0.3914, allocations: 331.5 kB / 0.7717 GB, free: 15.04 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.3915, allocations: 8.031 kB / 0.7717 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.983e-05/0.3915, allocations: 12.88 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.3916, allocations: 174.8 kB / 0.7719 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.439e-05/0.3917, allocations: 26.27 kB / 0.7719 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.3917, allocations: 4.375 kB / 0.7719 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.3918, allocations: 41.62 kB / 0.772 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.3918, allocations: 0 / 0.772 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.3919, allocations: 0 / 0.772 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.3919, allocations: 7.984 kB / 0.772 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.822e-05/0.3919, allocations: 15.98 kB / 0.772 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004284/0.3924, allocations: 342 kB / 0.7723 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.482e-05/0.3924, allocations: 18.52 kB / 0.7723 GB, free: 14.28 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.6e-05/0.3924, allocations: 8.859 kB / 0.7723 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.409e-05/0.3925, allocations: 89.16 kB / 0.7724 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.3926, allocations: 34.56 kB / 0.7724 GB, free: 14.12 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3926, allocations: 0 / 0.7724 GB, free: 14.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001342/0.3927, allocations: 41.64 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.3928, allocations: 51.41 kB / 0.7725 GB, free: 14.01 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.428e-05/0.3928, allocations: 105.8 kB / 0.7726 GB, free: 13.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.3929, allocations: 25.7 kB / 0.7727 GB, free: 13.87 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.077e-05/0.3929, allocations: 84.14 kB / 0.7727 GB, free: 13.78 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.412e-06/0.3929, allocations: 3.906 kB / 0.7727 GB, free: 13.78 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.72e-05/0.393, allocations: 21.7 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.393, allocations: 318.9 kB / 0.7731 GB, free: 13.43 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.334e-05/0.3931, allocations: 4 kB / 0.7731 GB, free: 13.43 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.197e-05/0.3931, allocations: 17.72 kB / 0.7731 GB, free: 13.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.071e-05/0.3931, allocations: 21.64 kB / 0.7731 GB, free: 13.38 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3931, allocations: 0 / 0.7731 GB, free: 13.38 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.223e-05/0.3932, allocations: 49.69 kB / 0.7732 GB, free: 13.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.3932, allocations: 10.88 kB / 0.7732 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3932, allocations: 3.938 kB / 0.7732 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.3933, allocations: 0 / 0.7732 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.346e-05/0.3933, allocations: 8 kB / 0.7732 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3933, allocations: 3.938 kB / 0.7732 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.987e-05/0.3933, allocations: 3.938 kB / 0.7732 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.3934, allocations: 0 / 0.7732 GB, free: 13.29 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.06e-05/0.3934, allocations: 120.2 kB / 0.7733 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.69e-05/0.3935, allocations: 7.844 kB / 0.7733 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.3936, allocations: 124.9 kB / 0.7734 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.937e-05/0.3936, allocations: 180.2 kB / 0.7736 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.699e-05/0.3937, allocations: 184.3 kB / 0.7738 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.236e-05/0.3937, allocations: 180.2 kB / 0.7739 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.394, allocations: 413.1 kB / 0.7743 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-05/0.394, allocations: 105 kB / 0.7744 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.756e-05/0.394, allocations: 112.9 kB / 0.7745 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-05/0.3941, allocations: 176.3 kB / 0.7747 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.269e-05/0.3941, allocations: 180.3 kB / 0.7749 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.518e-05/0.3942, allocations: 180.2 kB / 0.7751 GB, free: 11.24 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-05/0.3943, allocations: 184.2 kB / 0.7752 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.3944, allocations: 307.7 kB / 0.7755 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.208e-05/0.3945, allocations: 186 kB / 0.7757 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.162e-05/0.3945, allocations: 180.2 kB / 0.7759 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.3947, allocations: 105 kB / 0.776 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.3948, allocations: 188.2 kB / 0.7762 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.315e-05/0.3948, allocations: 101 kB / 0.7763 GB, free: 9.93 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.171e-05/0.3949, allocations: 83.27 kB / 0.7763 GB, free: 9.848 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3949, allocations: 0 / 0.7763 GB, free: 9.848 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002419/0.3951, allocations: 12 kB / 0.7763 GB, free: 9.836 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.0002359/0.3954, allocations: 210.4 kB / 0.7765 GB, free: 9.621 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.343e-05/0.3955, allocations: 7.938 kB / 0.7766 GB, free: 9.613 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3955, allocations: 0 / 0.7766 GB, free: 9.613 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.353e-06/0.3955, allocations: 4 kB / 0.7766 GB, free: 9.609 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.3958, allocations: 459.7 kB / 0.777 GB, free: 9.156 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002436/0.3961, allocations: 203.7 kB / 0.7772 GB, free: 8.922 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.3963, allocations: 0.6806 MB / 0.7779 GB, free: 8.215 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.435e-05/0.3963, allocations: 11.44 kB / 0.7779 GB, free: 8.203 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.3964, allocations: 0 / 0.7779 GB, free: 8.203 MB / 0.545 GB Notification: Performance of Templates: time 0.001917/0.3983, allocations: 0.7479 MB / 0.7786 GB, free: 7.457 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)