Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.231/1.231, allocations: 249.4 MB / 256.7 MB, free: 7.066 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 189.2 kB / 316 MB, free: 3.605 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.082/1.082, allocations: 205.1 MB / 0.5667 GB, free: 15.75 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008619/0.0008619, allocations: 90.45 kB / 0.671 GB, free: 4.879 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.38e-06/5.39e-06, allocations: 0 / 0.7807 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1605, allocations: 106.3 MB / 0.8845 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6347/0.7953, allocations: 370.3 MB / 1.246 GB, free: 0.7188 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.7955, allocations: 73.12 kB / 1.246 GB, free: 0.6797 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.02172/0.8173, allocations: 11.38 MB / 1.257 GB, free: 7.992 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.8173, allocations: 0 / 1.257 GB, free: 7.992 MB / 0.8698 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.0002656/0.8176, allocations: 338.2 kB / 1.258 GB, free: 7.621 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.8176, allocations: 8.031 kB / 1.258 GB, free: 7.613 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.8177, allocations: 0 / 1.258 GB, free: 7.613 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.8178, allocations: 163.1 kB / 1.258 GB, free: 7.414 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.83e-05/0.8179, allocations: 25.7 kB / 1.258 GB, free: 7.383 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.8179, allocations: 3.906 kB / 1.258 GB, free: 7.379 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.853e-05/0.818, allocations: 19.92 kB / 1.258 GB, free: 7.359 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.865e-05/0.818, allocations: 37.56 kB / 1.258 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.818, allocations: 0 / 1.258 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.8181, allocations: 4 kB / 1.258 GB, free: 7.316 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.8181, allocations: 7.938 kB / 1.258 GB, free: 7.309 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003587/0.8185, allocations: 310.2 kB / 1.258 GB, free: 6.957 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 2.661e-05/0.8185, allocations: 18.58 kB / 1.258 GB, free: 6.93 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.369e-05/0.8185, allocations: 4.859 kB / 1.258 GB, free: 6.922 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 6.869e-05/0.8186, allocations: 81.17 kB / 1.258 GB, free: 6.824 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.8186, allocations: 46.44 kB / 1.258 GB, free: 6.77 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=1): time 1.553e-06/0.8186, allocations: 0 / 1.258 GB, free: 6.77 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1): time 0.0001538/0.8188, allocations: 33.69 kB / 1.258 GB, free: 6.73 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.8188, allocations: 55.22 kB / 1.259 GB, free: 6.668 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.078e-05/0.8189, allocations: 89 kB / 1.259 GB, free: 6.574 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.8189, allocations: 29.7 kB / 1.259 GB, free: 6.539 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.819, allocations: 91.91 kB / 1.259 GB, free: 6.449 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.22e-06/0.819, allocations: 3.906 kB / 1.259 GB, free: 6.445 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.819, allocations: 4.031 kB / 1.259 GB, free: 6.441 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.32e-05/0.819, allocations: 310.8 kB / 1.259 GB, free: 6.129 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.121e-05/0.8191, allocations: 4 kB / 1.259 GB, free: 6.125 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.849e-05/0.8191, allocations: 17.53 kB / 1.259 GB, free: 6.105 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.057e-05/0.8191, allocations: 7.984 kB / 1.259 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.8192, allocations: 0 / 1.259 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001079/0.8193, allocations: 53.62 kB / 1.259 GB, free: 6.039 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.8193, allocations: 7.906 kB / 1.259 GB, free: 6.031 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.8193, allocations: 0 / 1.259 GB, free: 6.031 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.8193, allocations: 0 / 1.259 GB, free: 6.031 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.385e-05/0.8194, allocations: 8 kB / 1.259 GB, free: 6.023 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.8194, allocations: 0 / 1.259 GB, free: 6.023 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.8194, allocations: 3.938 kB / 1.259 GB, free: 6.02 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.8194, allocations: 3.984 kB / 1.259 GB, free: 6.016 MB / 0.8698 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 () * 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 5.968e-05/0.8195, allocations: 113.8 kB / 1.259 GB, free: 5.906 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.8195, allocations: 11.91 kB / 1.259 GB, free: 5.895 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.8196, allocations: 117 kB / 1.259 GB, free: 5.773 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.126e-05/0.8197, allocations: 180.2 kB / 1.26 GB, free: 5.59 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.847e-05/0.8197, allocations: 184.2 kB / 1.26 GB, free: 5.402 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.623e-05/0.8198, allocations: 176.3 kB / 1.26 GB, free: 5.223 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.8199, allocations: 389.6 kB / 1.26 GB, free: 4.801 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.666e-05/0.82, allocations: 108.9 kB / 1.26 GB, free: 4.688 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.887e-05/0.82, allocations: 101 kB / 1.26 GB, free: 4.582 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.54e-05/0.8201, allocations: 184.2 kB / 1.261 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.586e-05/0.8201, allocations: 180.2 kB / 1.261 GB, free: 4.211 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-05/0.8202, allocations: 188.2 kB / 1.261 GB, free: 4.02 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.763e-05/0.8202, allocations: 180 kB / 1.261 GB, free: 3.84 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001065/0.8203, allocations: 304 kB / 1.261 GB, free: 3.52 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.786e-05/0.8204, allocations: 187.4 kB / 1.262 GB, free: 3.312 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.959e-05/0.8205, allocations: 188.1 kB / 1.262 GB, free: 3.125 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.8206, allocations: 109 kB / 1.262 GB, free: 3.012 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.8207, allocations: 184.2 kB / 1.262 GB, free: 2.824 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/0.8207, allocations: 104.9 kB / 1.262 GB, free: 2.715 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3.839e-05/0.8207, allocations: 79.28 kB / 1.262 GB, free: 2.637 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002157/0.821, allocations: 19.69 kB / 1.262 GB, free: 2.621 MB / 0.8698 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 () * 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.00019/0.8212, allocations: 210.5 kB / 1.262 GB, free: 2.402 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 5.997e-05/0.8212, allocations: 8 kB / 1.262 GB, free: 2.395 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.8212, allocations: 0 / 1.262 GB, free: 2.395 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 2.685e-06/0.8212, allocations: 4.125 kB / 1.262 GB, free: 2.391 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.8215, allocations: 0.5261 MB / 1.263 GB, free: 1.863 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.8217, allocations: 127.2 kB / 1.263 GB, free: 1.715 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/0.8219, allocations: 0.688 MB / 1.264 GB, free: 1 MB / 0.8698 GB Notification: Performance of SimCode: time 2.1e-07/0.8219, allocations: 4 kB / 1.264 GB, free: 0.9961 MB / 0.8698 GB Notification: Performance of Templates: time 0.002531/0.8245, allocations: 0.6925 MB / 1.264 GB, free: 324 kB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches