Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation.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.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.191/1.191, allocations: 249.4 MB / 256.7 MB, free: 7.004 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.00101/0.001011, allocations: 192.4 kB / 316 MB, free: 3.559 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.079/1.079, allocations: 205.2 MB / 0.5667 GB, free: 15.6 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.0007732/0.0007732, allocations: 81.08 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.815e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1635, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6493/0.8128, allocations: 381.9 MB / 1.258 GB, free: 4.941 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.8131, allocations: 85.64 kB / 1.258 GB, free: 4.898 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.6886/1.502, allocations: 246.4 MB / 1.498 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.1e-05/1.502, allocations: 23.98 kB / 1.498 GB, free: 117.4 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001418/1.503, allocations: 0.9092 MB / 1.499 GB, free: 116.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/1.503, allocations: 12.03 kB / 1.499 GB, free: 116.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007808/1.504, allocations: 191 kB / 1.499 GB, free: 116.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0218/1.526, allocations: 11.47 MB / 1.511 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/1.526, allocations: 88.72 kB / 1.511 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.029e-05/1.526, allocations: 28 kB / 1.511 GB, free: 104.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004948/1.527, allocations: 297.5 kB / 1.511 GB, free: 104.1 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005093/1.527, allocations: 396.5 kB / 1.511 GB, free: 103.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/1.527, allocations: 4 kB / 1.511 GB, free: 103.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/1.527, allocations: 4 kB / 1.511 GB, free: 103.7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.261e-05/1.527, allocations: 19.94 kB / 1.511 GB, free: 103.7 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/1.53, allocations: 2.218 MB / 1.513 GB, free: 101.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004348/1.53, allocations: 266.8 kB / 1.514 GB, free: 101 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/1.531, allocations: 173.8 kB / 1.514 GB, free: 100.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002512/1.531, allocations: 348.7 kB / 1.514 GB, free: 100.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/1.531, allocations: 238.7 kB / 1.514 GB, free: 100.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=33): time 2.615e-06/1.531, allocations: 0 / 1.514 GB, free: 100.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=33): time 0.001024/1.532, allocations: 430.1 kB / 1.515 GB, free: 99.76 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/1.532, allocations: 85.11 kB / 1.515 GB, free: 99.66 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003518/1.533, allocations: 369.3 kB / 1.515 GB, free: 99.29 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/1.533, allocations: 25.7 kB / 1.515 GB, free: 99.26 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.832e-05/1.533, allocations: 216.1 kB / 1.516 GB, free: 99.04 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.134e-05/1.533, allocations: 102.5 kB / 1.516 GB, free: 98.94 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.978e-05/1.533, allocations: 4 kB / 1.516 GB, free: 98.93 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.692e-05/1.533, allocations: 362.8 kB / 1.516 GB, free: 98.57 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/1.533, allocations: 123.7 kB / 1.516 GB, free: 98.45 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/1.533, allocations: 215.1 kB / 1.516 GB, free: 98.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/1.534, allocations: 171.7 kB / 1.516 GB, free: 98.03 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/1.534, allocations: 0 / 1.516 GB, free: 98.03 MB / 0.8698 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007958/1.534, allocations: 481.7 kB / 1.517 GB, free: 97.55 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/1.535, allocations: 0.6124 MB / 1.518 GB, free: 96.89 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/1.535, allocations: 0 / 1.518 GB, free: 96.89 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001839/1.535, allocations: 52.84 kB / 1.518 GB, free: 96.84 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/1.535, allocations: 87.88 kB / 1.518 GB, free: 96.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003738/1.536, allocations: 0.603 MB / 1.518 GB, free: 96.12 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005811/1.536, allocations: 75.78 kB / 1.518 GB, free: 96.05 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.545e-05/1.536, allocations: 20.05 kB / 1.518 GB, free: 96.03 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.626e-06/1.536, allocations: 7.906 kB / 1.518 GB, free: 96.02 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000684/1.537, allocations: 368.2 kB / 1.519 GB, free: 95.66 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/1.537, allocations: 4 kB / 1.519 GB, free: 95.65 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000141/1.537, allocations: 52.95 kB / 1.519 GB, free: 95.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000347/1.537, allocations: 91.88 kB / 1.519 GB, free: 95.51 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/1.538, allocations: 1.49 MB / 1.52 GB, free: 93.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005024/1.539, allocations: 79.69 kB / 1.52 GB, free: 93.82 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.019e-05/1.539, allocations: 24.05 kB / 1.52 GB, free: 93.8 MB / 0.8698 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.0001544/1.539, allocations: 146.6 kB / 1.521 GB, free: 93.64 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-05/1.539, allocations: 55.34 kB / 1.521 GB, free: 93.59 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008958/1.54, allocations: 0.4928 MB / 1.521 GB, free: 93.09 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/1.54, allocations: 0 / 1.521 GB, free: 93.09 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/1.54, allocations: 4 kB / 1.521 GB, free: 93.08 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006757/1.541, allocations: 0.6475 MB / 1.522 GB, free: 92.36 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/1.542, allocations: 1.087 MB / 1.523 GB, free: 91.22 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/1.542, allocations: 0 / 1.523 GB, free: 91.22 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003406/1.543, allocations: 76.03 kB / 1.523 GB, free: 91.14 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.106e-05/1.543, allocations: 40.78 kB / 1.523 GB, free: 91.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/1.543, allocations: 8 kB / 1.523 GB, free: 91.09 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002331/1.543, allocations: 0.5796 MB / 1.523 GB, free: 90.49 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/1.543, allocations: 0 / 1.523 GB, free: 90.49 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009428/1.544, allocations: 0.8113 MB / 1.524 GB, free: 89.63 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/1.544, allocations: 184.3 kB / 1.524 GB, free: 89.43 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.76e-05/1.544, allocations: 12.06 kB / 1.524 GB, free: 89.42 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00054/1.545, allocations: 59.94 kB / 1.524 GB, free: 89.36 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.235e-05/1.545, allocations: 19.88 kB / 1.525 GB, free: 89.34 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-05/1.545, allocations: 27.98 kB / 1.525 GB, free: 89.31 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002276/1.545, allocations: 286.9 kB / 1.525 GB, free: 89.04 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001027/1.546, allocations: 367.3 kB / 1.525 GB, free: 88.68 MB / 0.8698 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.0006622/1.547, allocations: 420 kB / 1.526 GB, free: 88.27 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000934/1.548, allocations: 0.7077 MB / 1.526 GB, free: 87.54 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.548, allocations: 0 / 1.526 GB, free: 87.54 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002791/1.548, allocations: 245.3 kB / 1.526 GB, free: 87.29 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/1.549, allocations: 209.3 kB / 1.527 GB, free: 87.09 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/1.551, allocations: 0.7668 MB / 1.527 GB, free: 86.29 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003609/1.551, allocations: 0.9446 MB / 1.528 GB, free: 85.32 MB / 0.8698 GB Notification: Performance of SimCode: time 2.41e-07/1.551, allocations: 0 / 1.528 GB, free: 85.32 MB / 0.8698 GB Notification: Performance of Templates: time 0.01666/1.568, allocations: 12.76 MB / 1.541 GB, free: 72.65 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Interfaces_Examples_ConservationEquation.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches