Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.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.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dyn.Q_flow|dyn.medium.T|ste.sta_b.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dyn.Q_flow|dyn.medium.T|ste.sta_b.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation") [: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 2.064/2.064, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001394/0.001394, allocations: 181.2 kB / 487 MB, free: 5.344 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.601/1.601, allocations: 221.3 MB / 0.7819 GB, free: 1.41 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.001239/0.001239, allocations: 92.95 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.869e-06/9.888e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3313, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.098/1.429, allocations: 400.4 MB / 1.596 GB, free: 6.754 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/1.429, allocations: 90.42 kB / 1.596 GB, free: 6.707 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.168/2.598, allocations: 258.9 MB / 1.849 GB, free: 317 MB / 1.135 GB Notification: Performance of Transformations before backend: time 6.188e-05/2.598, allocations: 19.75 kB / 1.849 GB, free: 317 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.00164/2.599, allocations: 0.9172 MB / 1.85 GB, free: 316 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/2.6, allocations: 9.031 kB / 1.85 GB, free: 316 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008371/2.6, allocations: 195 kB / 1.85 GB, free: 315.8 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02457/2.625, allocations: 12.07 MB / 1.862 GB, free: 303.8 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000326/2.625, allocations: 84.72 kB / 1.862 GB, free: 303.7 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.827e-05/2.625, allocations: 24 kB / 1.862 GB, free: 303.6 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005364/2.626, allocations: 301.4 kB / 1.862 GB, free: 303.3 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005599/2.626, allocations: 408.5 kB / 1.863 GB, free: 302.9 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/2.627, allocations: 11.84 kB / 1.863 GB, free: 302.9 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.083e-05/2.627, allocations: 0 / 1.863 GB, free: 302.9 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/2.627, allocations: 12.66 kB / 1.863 GB, free: 302.9 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002581/2.629, allocations: 2.242 MB / 1.865 GB, free: 300.5 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/2.63, allocations: 267.7 kB / 1.865 GB, free: 300.2 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/2.63, allocations: 166 kB / 1.865 GB, free: 300.1 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000225/2.63, allocations: 348.6 kB / 1.866 GB, free: 299.6 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002625/2.63, allocations: 242.8 kB / 1.866 GB, free: 299.4 MB / 1.135 GB Notification: Performance of pre-optimization done (n=33): time 3.036e-06/2.63, allocations: 0 / 1.866 GB, free: 299.4 MB / 1.135 GB Notification: Performance of matching and sorting (n=33): time 0.0009443/2.631, allocations: 438 kB / 1.866 GB, free: 299 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/2.631, allocations: 89.11 kB / 1.866 GB, free: 298.9 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/2.632, allocations: 373.3 kB / 1.867 GB, free: 298.5 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/2.632, allocations: 25.7 kB / 1.867 GB, free: 298.5 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 9.826e-05/2.632, allocations: 208.2 kB / 1.867 GB, free: 298.2 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 6.799e-05/2.632, allocations: 106.5 kB / 1.867 GB, free: 298.1 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.911e-05/2.632, allocations: 0 / 1.867 GB, free: 298.1 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 6.92e-05/2.632, allocations: 358.8 kB / 1.867 GB, free: 297.8 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/2.632, allocations: 120 kB / 1.868 GB, free: 297.7 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/2.632, allocations: 227.5 kB / 1.868 GB, free: 297.4 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/2.633, allocations: 164 kB / 1.868 GB, free: 297.2 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/2.633, allocations: 0 / 1.868 GB, free: 297.2 MB / 1.135 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.00081/2.634, allocations: 477.1 kB / 1.868 GB, free: 296.8 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/2.634, allocations: 0.6164 MB / 1.869 GB, free: 296.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/2.634, allocations: 7.938 kB / 1.869 GB, free: 296.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001701/2.634, allocations: 44.84 kB / 1.869 GB, free: 296 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/2.634, allocations: 91.88 kB / 1.869 GB, free: 296 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003633/2.635, allocations: 0.6069 MB / 1.87 GB, free: 295.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005426/2.635, allocations: 75.69 kB / 1.87 GB, free: 295.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.75e-05/2.635, allocations: 20.05 kB / 1.87 GB, free: 295.2 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 5.811e-06/2.635, allocations: 4 kB / 1.87 GB, free: 295.2 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006639/2.636, allocations: 372.3 kB / 1.87 GB, free: 294.9 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-06/2.636, allocations: 4 kB / 1.87 GB, free: 294.9 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001344/2.636, allocations: 44.83 kB / 1.87 GB, free: 294.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003481/2.636, allocations: 88.06 kB / 1.87 GB, free: 294.7 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/2.637, allocations: 1.497 MB / 1.872 GB, free: 293.1 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/2.638, allocations: 79.73 kB / 1.872 GB, free: 293 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.065e-05/2.638, allocations: 16.17 kB / 1.872 GB, free: 293 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001518/2.638, allocations: 147.6 kB / 1.872 GB, free: 292.9 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.413e-05/2.638, allocations: 55.34 kB / 1.872 GB, free: 292.8 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008679/2.639, allocations: 0.4952 MB / 1.873 GB, free: 292.3 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/2.639, allocations: 7.906 kB / 1.873 GB, free: 292.3 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/2.639, allocations: 0 / 1.873 GB, free: 292.3 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006733/2.64, allocations: 0.6476 MB / 1.873 GB, free: 291.6 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/2.641, allocations: 1.091 MB / 1.874 GB, free: 290.4 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/2.641, allocations: 0 / 1.874 GB, free: 290.4 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/2.642, allocations: 79.97 kB / 1.874 GB, free: 290.4 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.807e-05/2.642, allocations: 36.84 kB / 1.874 GB, free: 290.3 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.069e-05/2.642, allocations: 4 kB / 1.874 GB, free: 290.3 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002529/2.642, allocations: 0.5874 MB / 1.875 GB, free: 289.7 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/2.642, allocations: 4 kB / 1.875 GB, free: 289.7 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009483/2.643, allocations: 0.8124 MB / 1.876 GB, free: 288.8 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/2.643, allocations: 188.3 kB / 1.876 GB, free: 288.6 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.144e-05/2.643, allocations: 8 kB / 1.876 GB, free: 288.6 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005429/2.644, allocations: 71.84 kB / 1.876 GB, free: 288.6 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.445e-05/2.644, allocations: 19.91 kB / 1.876 GB, free: 288.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.35e-05/2.644, allocations: 23.98 kB / 1.876 GB, free: 288.5 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0002402/2.644, allocations: 286.9 kB / 1.876 GB, free: 288.2 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.001258/2.646, allocations: 359.3 kB / 1.877 GB, free: 287.9 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007277/2.646, allocations: 435.8 kB / 1.877 GB, free: 287.5 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001022/2.647, allocations: 0.6979 MB / 1.878 GB, free: 286.8 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/2.647, allocations: 4 kB / 1.878 GB, free: 286.8 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0002785/2.648, allocations: 234.5 kB / 1.878 GB, free: 286.5 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/2.649, allocations: 220.7 kB / 1.878 GB, free: 286.3 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/2.65, allocations: 0.7746 MB / 1.879 GB, free: 285.5 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003877/2.651, allocations: 0.9563 MB / 1.88 GB, free: 284.5 MB / 1.135 GB Notification: Performance of SimCode: time 2.6e-07/2.651, allocations: 0 / 1.88 GB, free: 284.5 MB / 1.135 GB Notification: Performance of Templates: time 0.01781/2.668, allocations: 12.82 MB / 1.892 GB, free: 271.9 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_ConservationEquation.csv","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches