Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001706/0.001706, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.557/2.557, allocations: 436.5 MB / 0.7104 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.000327, allocations: 12 kB / 0.8707 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.577/0.5774, allocations: 153.7 MB / 1.021 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004019/0.5814, allocations: 3.389 MB / 1.024 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0001616/0.5816, allocations: 127.7 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.329e-05/0.5816, allocations: 0 / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 8.887e-05/0.5818, allocations: 7.938 kB / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.568e-05/0.5818, allocations: 11.98 kB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002822/0.5821, allocations: 62.77 kB / 1.024 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.281e-05/0.5822, allocations: 19.95 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.5822, allocations: 3.938 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.61e-05/0.5822, allocations: 15.94 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.256e-05/0.5823, allocations: 7.984 kB / 1.024 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.196e-05/0.5823, allocations: 4 kB / 1.024 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000172/0.5825, allocations: 39.91 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.947e-05/0.5825, allocations: 0 / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.531e-05/0.5826, allocations: 29.7 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.058e-05/0.5827, allocations: 23.97 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.5827, allocations: 0 / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.183e-06/0.5827, allocations: 0 / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.536e-06/0.5827, allocations: 0 / 1.024 GB, free: 13.32 MB / 0.7794 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.0003652/0.5831, allocations: 337.2 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.5831, allocations: 19.98 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.5831, allocations: 0 / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.5833, allocations: 163.1 kB / 1.025 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.548e-05/0.5833, allocations: 33.66 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-06/0.5834, allocations: 0 / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.5835, allocations: 45.62 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.5835, allocations: 0 / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.5835, allocations: 0 / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.5835, allocations: 4 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.275e-05/0.5836, allocations: 15.98 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004359/0.584, allocations: 334 kB / 1.025 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.443e-05/0.5841, allocations: 18.58 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.9e-05/0.5842, allocations: 85.17 kB / 1.025 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.5842, allocations: 42.42 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.5842, allocations: 0 / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001341/0.5844, allocations: 37.61 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.5844, allocations: 55.41 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.874e-05/0.5845, allocations: 101.8 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.5845, allocations: 25.7 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.237e-05/0.5846, allocations: 95.98 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.309e-06/0.5846, allocations: 0 / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-06/0.5846, allocations: 0 / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.5847, allocations: 314.9 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.631e-05/0.5847, allocations: 11.98 kB / 1.026 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.19e-05/0.5848, allocations: 21.66 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.772e-05/0.5848, allocations: 4 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5848, allocations: 0 / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.125e-05/0.5849, allocations: 45.69 kB / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.5849, allocations: 4 kB / 1.026 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.5849, allocations: 0 / 1.026 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.5849, allocations: 8.062 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.479e-05/0.585, allocations: 7.938 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.585, allocations: 0 / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.172e-05/0.585, allocations: 7.938 kB / 1.026 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.585, allocations: 7.984 kB / 1.026 GB, free: 11.25 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.337e-05/0.5851, allocations: 109.8 kB / 1.026 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.5851, allocations: 7.906 kB / 1.026 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.5852, allocations: 117 kB / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.577e-05/0.5853, allocations: 188.2 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.52e-05/0.5854, allocations: 176.3 kB / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.325e-05/0.5854, allocations: 180.5 kB / 1.027 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.5857, allocations: 409.2 kB / 1.027 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-05/0.5857, allocations: 101 kB / 1.027 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.935e-05/0.5857, allocations: 108.9 kB / 1.028 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.039e-05/0.5858, allocations: 184.2 kB / 1.028 GB, free: 9.586 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-05/0.5859, allocations: 188.2 kB / 1.028 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.788e-05/0.5859, allocations: 176.3 kB / 1.028 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.673e-05/0.586, allocations: 176.3 kB / 1.028 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001359/0.5861, allocations: 311.7 kB / 1.029 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.666e-05/0.5862, allocations: 198 kB / 1.029 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.5863, allocations: 176.3 kB / 1.029 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.5865, allocations: 109 kB / 1.029 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.469e-05/0.5865, allocations: 184.2 kB / 1.029 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.222e-05/0.5866, allocations: 109 kB / 1.029 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.011e-05/0.5866, allocations: 79.28 kB / 1.029 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5866, allocations: 0 / 1.029 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002489/0.5869, allocations: 15.98 kB / 1.029 GB, free: 7.801 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001708/0.587, allocations: 190.5 kB / 1.03 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.767e-05/0.5871, allocations: 15.94 kB / 1.03 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.5871, allocations: 4.125 kB / 1.03 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.5871, allocations: 0 / 1.03 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.5875, allocations: 0.5224 MB / 1.03 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002398/0.5878, allocations: 199.7 kB / 1.03 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.588, allocations: 0.677 MB / 1.031 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.71e-05/0.5881, allocations: 4 kB / 1.031 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.848e-05/0.5881, allocations: 11.44 kB / 1.031 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.5881, allocations: 0 / 1.031 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of Templates: time 0.002472/0.5906, allocations: 0.5419 MB / 1.031 GB, free: 5.574 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches