Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_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.001045/0.001045, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001195/0.001195, allocations: 168.7 kB / 15.95 MB, free: 204 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.526/1.526, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.914/2.914, allocations: 437.7 MB / 0.7117 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004298/0.0004301, allocations: 8 kB / 0.8722 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7654/0.7658, allocations: 153.8 MB / 1.022 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004257/0.7701, allocations: 3.564 MB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0001799/0.7703, allocations: 143.6 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.042e-05/0.7704, allocations: 0 / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.7705, allocations: 4 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.742e-05/0.7706, allocations: 15.91 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002737/0.7709, allocations: 71.72 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.323e-05/0.7709, allocations: 43.83 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.553e-05/0.771, allocations: 3.984 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.809e-05/0.771, allocations: 12 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.007e-05/0.7711, allocations: 19.91 kB / 1.026 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.7712, allocations: 0 / 1.026 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.7714, allocations: 27.92 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.386e-05/0.7714, allocations: 15.97 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.553e-05/0.7715, allocations: 25.7 kB / 1.026 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.816e-05/0.7716, allocations: 23.98 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.7716, allocations: 4 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.222e-06/0.7716, allocations: 0 / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.7716, allocations: 0 / 1.026 GB, free: 12.07 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.0003746/0.772, allocations: 335 kB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.772, allocations: 11.97 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.7721, allocations: 7.938 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.7722, allocations: 163.1 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.606e-05/0.7723, allocations: 29.66 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.7723, allocations: 4 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001219/0.7725, allocations: 41.69 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.7725, allocations: 0 / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.7725, allocations: 0 / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.7725, allocations: 3.984 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.017e-05/0.7726, allocations: 19.98 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004509/0.773, allocations: 342 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.564e-05/0.7731, allocations: 18.58 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.883e-05/0.7731, allocations: 8.844 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.7732, allocations: 81.17 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.7733, allocations: 34.56 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.7733, allocations: 0 / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.00015/0.7734, allocations: 49.53 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.7735, allocations: 51.41 kB / 1.027 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.7736, allocations: 97.86 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.7736, allocations: 25.7 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.868e-05/0.7737, allocations: 92.03 kB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.033e-06/0.7737, allocations: 4 kB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-06/0.7737, allocations: 0 / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.7738, allocations: 314.8 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.416e-05/0.7738, allocations: 8.125 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.256e-05/0.7739, allocations: 13.72 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.969e-05/0.7739, allocations: 7.984 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7739, allocations: 4 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.121e-05/0.774, allocations: 45.64 kB / 1.028 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.774, allocations: 7.984 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.774, allocations: 0 / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.774, allocations: 4.062 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.168e-05/0.7741, allocations: 12 kB / 1.028 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.7741, allocations: 0 / 1.028 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.88e-05/0.7741, allocations: 3.938 kB / 1.028 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.7741, allocations: 4 kB / 1.028 GB, free: 10 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.309e-05/0.7742, allocations: 117.8 kB / 1.028 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.64e-05/0.7742, allocations: 11.78 kB / 1.028 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.7743, allocations: 121 kB / 1.028 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.397e-05/0.7744, allocations: 180.3 kB / 1.028 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.284e-05/0.7745, allocations: 184.3 kB / 1.029 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.798e-05/0.7745, allocations: 184.2 kB / 1.029 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.7747, allocations: 413.1 kB / 1.029 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.228e-05/0.7748, allocations: 105 kB / 1.029 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-05/0.7749, allocations: 109 kB / 1.029 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-05/0.7749, allocations: 184.2 kB / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.859e-05/0.775, allocations: 176.3 kB / 1.03 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.629e-05/0.7751, allocations: 180.2 kB / 1.03 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.567e-05/0.7751, allocations: 180.2 kB / 1.03 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.7753, allocations: 311.7 kB / 1.03 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/0.7755, allocations: 186.1 kB / 1.031 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.251e-05/0.7756, allocations: 180.2 kB / 1.031 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.7757, allocations: 109 kB / 1.031 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.7758, allocations: 184.2 kB / 1.031 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.7759, allocations: 109 kB / 1.031 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001084/0.776, allocations: 79.28 kB / 1.031 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.776, allocations: 0 / 1.031 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002773/0.7763, allocations: 16 kB / 1.031 GB, free: 6.527 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.000164/0.7765, allocations: 186.5 kB / 1.031 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.883e-05/0.7765, allocations: 11.94 kB / 1.031 GB, free: 6.324 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.7765, allocations: 4.125 kB / 1.031 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.809e-06/0.7766, allocations: 3.984 kB / 1.031 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.777, allocations: 0.5263 MB / 1.032 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002564/0.7773, allocations: 191.8 kB / 1.032 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.7775, allocations: 0.6731 MB / 1.033 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.513e-05/0.7776, allocations: 7.984 kB / 1.033 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.985e-05/0.7776, allocations: 7.438 kB / 1.033 GB, free: 4.852 MB / 0.7794 GB Notification: Performance of SimCode: time 5.01e-07/0.7776, allocations: 0 / 1.033 GB, free: 4.852 MB / 0.7794 GB Notification: Performance of Templates: time 0.002961/0.7806, allocations: 0.56 MB / 1.033 GB, free: 4.297 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches