Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Media.Examples.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck") translateModel(Buildings.Media.Examples.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck") [: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 9.1.1-maint.9.1.x/package.mo): time 1.953/1.953, allocations: 387.2 MB / 394.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 177.3 kB / 487 MB, free: 5.383 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008877/0.0008877, allocations: 94 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.759e-06/4.779e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2049, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8166/1.022, allocations: 456.3 MB / 1.651 GB, free: 240 kB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/1.022, allocations: 69.78 kB / 1.651 GB, free: 208 kB / 1.073 GB Notification: Performance of FrontEnd: time 0.08809/1.11, allocations: 35.92 MB / 1.686 GB, free: 1.477 MB / 1.104 GB Notification: Performance of Transformations before backend: time 5.981e-06/1.11, allocations: 4 kB / 1.686 GB, free: 1.473 MB / 1.104 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004644/1.11, allocations: 366.2 kB / 1.686 GB, free: 1.074 MB / 1.104 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/1.11, allocations: 11.97 kB / 1.686 GB, free: 1.062 MB / 1.104 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/1.111, allocations: 19.39 kB / 1.686 GB, free: 1.047 MB / 1.104 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/1.111, allocations: 163.1 kB / 1.686 GB, free: 0.8477 MB / 1.104 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/1.111, allocations: 0 / 1.686 GB, free: 0.8477 MB / 1.104 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.17e-05/1.111, allocations: 4 kB / 1.686 GB, free: 0.8438 MB / 1.104 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.323e-05/1.111, allocations: 23.8 kB / 1.687 GB, free: 0.8242 MB / 1.104 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.077e-05/1.111, allocations: 53.08 kB / 1.687 GB, free: 0.7695 MB / 1.104 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/1.111, allocations: 4 kB / 1.687 GB, free: 0.7656 MB / 1.104 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/1.111, allocations: 0 / 1.687 GB, free: 0.7656 MB / 1.104 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/1.111, allocations: 0 / 1.687 GB, free: 0.7656 MB / 1.104 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001462/1.111, allocations: 134.1 kB / 1.687 GB, free: 0.6016 MB / 1.104 GB Notification: Performance of preOpt comSubExp (simulation): time 6.745e-05/1.111, allocations: 37.52 kB / 1.687 GB, free: 0.5625 MB / 1.104 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.627e-05/1.111, allocations: 16.8 kB / 1.687 GB, free: 0.5469 MB / 1.104 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009948/1.121, allocations: 3.088 MB / 1.69 GB, free: 13.41 MB / 1.12 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/1.121, allocations: 46.41 kB / 1.69 GB, free: 13.36 MB / 1.12 GB Notification: Performance of pre-optimization done (n=7): time 1.873e-06/1.121, allocations: 0 / 1.69 GB, free: 13.36 MB / 1.12 GB Notification: Performance of matching and sorting (n=11): time 0.02479/1.146, allocations: 6.477 MB / 1.696 GB, free: 6.809 MB / 1.12 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/1.146, allocations: 51.41 kB / 1.696 GB, free: 6.746 MB / 1.12 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.526e-05/1.146, allocations: 92.94 kB / 1.696 GB, free: 6.648 MB / 1.12 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/1.146, allocations: 29.7 kB / 1.696 GB, free: 6.613 MB / 1.12 GB Notification: Performance of collectInitialEqns (initialization): time 2.654e-05/1.146, allocations: 80.14 kB / 1.696 GB, free: 6.531 MB / 1.12 GB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/1.146, allocations: 39.08 kB / 1.696 GB, free: 6.5 MB / 1.12 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-06/1.146, allocations: 0 / 1.696 GB, free: 6.5 MB / 1.12 GB Notification: Performance of setup shared object (initialization): time 0.0001046/1.146, allocations: 310.8 kB / 1.697 GB, free: 6.188 MB / 1.12 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.658e-05/1.147, allocations: 23.86 kB / 1.697 GB, free: 6.172 MB / 1.12 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.895e-05/1.147, allocations: 15.94 kB / 1.697 GB, free: 6.16 MB / 1.12 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.958e-05/1.147, allocations: 25.8 kB / 1.697 GB, free: 6.145 MB / 1.12 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/1.147, allocations: 4 kB / 1.697 GB, free: 6.141 MB / 1.12 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002046/1.147, allocations: 97.08 kB / 1.697 GB, free: 6.051 MB / 1.12 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/1.147, allocations: 4 kB / 1.697 GB, free: 6.047 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/1.147, allocations: 0 / 1.697 GB, free: 6.047 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/1.147, allocations: 4 kB / 1.697 GB, free: 6.043 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/1.147, allocations: 23.92 kB / 1.697 GB, free: 6.02 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/1.147, allocations: 4 kB / 1.697 GB, free: 6.016 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.864e-05/1.147, allocations: 0 / 1.697 GB, free: 6.016 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/1.147, allocations: 4 kB / 1.697 GB, free: 6.012 MB / 1.12 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (14): * Single equations (assignments): 14 * 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.532e-05/1.147, allocations: 110.8 kB / 1.697 GB, free: 5.898 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.476e-05/1.147, allocations: 4 kB / 1.697 GB, free: 5.895 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003078/1.148, allocations: 136 kB / 1.697 GB, free: 5.77 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/1.148, allocations: 4 kB / 1.697 GB, free: 5.766 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/1.148, allocations: 0 / 1.697 GB, free: 5.766 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/1.148, allocations: 3.984 kB / 1.697 GB, free: 5.762 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/1.148, allocations: 146.1 kB / 1.697 GB, free: 5.59 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/1.148, allocations: 0 / 1.697 GB, free: 5.59 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/1.148, allocations: 27.98 kB / 1.697 GB, free: 5.562 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/1.148, allocations: 8 kB / 1.697 GB, free: 5.555 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/1.148, allocations: 3.984 kB / 1.697 GB, free: 5.551 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/1.148, allocations: 3.906 kB / 1.697 GB, free: 5.547 MB / 1.12 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.148, allocations: 0 / 1.697 GB, free: 5.547 MB / 1.12 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002599/1.148, allocations: 135.8 kB / 1.697 GB, free: 5.414 MB / 1.12 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/1.148, allocations: 96.64 kB / 1.698 GB, free: 5.309 MB / 1.12 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/1.148, allocations: 3.906 kB / 1.698 GB, free: 5.305 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/1.148, allocations: 15.98 kB / 1.698 GB, free: 5.289 MB / 1.12 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.973e-05/1.149, allocations: 12.03 kB / 1.698 GB, free: 5.277 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/1.149, allocations: 4 kB / 1.698 GB, free: 5.273 MB / 1.12 GB Notification: Performance of sort global known variables: time 3.579e-05/1.149, allocations: 79.28 kB / 1.698 GB, free: 5.195 MB / 1.12 GB Notification: Performance of remove unused functions: time 0.001768/1.15, allocations: 0.5888 MB / 1.698 GB, free: 4.629 MB / 1.12 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hVapSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.003742/1.154, allocations: 0.8384 MB / 1.699 GB, free: 3.809 MB / 1.12 GB Notification: Performance of simCode: created initialization part: time 0.0001217/1.154, allocations: 55.38 kB / 1.699 GB, free: 3.766 MB / 1.12 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/1.154, allocations: 0 / 1.699 GB, free: 3.766 MB / 1.12 GB Notification: Performance of simCode: created simulation system equations: time 3.93e-05/1.154, allocations: 35.67 kB / 1.699 GB, free: 3.738 MB / 1.12 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/1.154, allocations: 4.234 kB / 1.699 GB, free: 3.734 MB / 1.12 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000472/1.155, allocations: 278 kB / 1.699 GB, free: 3.445 MB / 1.12 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/1.155, allocations: 0.7114 MB / 1.7 GB, free: 2.707 MB / 1.12 GB Notification: Performance of SimCode: time 2.4e-07/1.155, allocations: 0 / 1.7 GB, free: 2.707 MB / 1.12 GB Notification: Performance of Templates: time 0.3392/1.494, allocations: 28.23 MB / 1.728 GB, free: 493.3 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","../files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches