Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 2.079/2.079, allocations: 390.4 MB / 397.7 MB, free: 11.2 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.001148/0.001148, allocations: 173.4 kB / 490.8 MB, free: 1.895 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.301/1.301, allocations: 221.3 MB / 0.7863 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000895/0.0008952, allocations: 98.19 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.354e-06/7.514e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2312, allocations: 143 MB / 1.212 GB, free: 40.06 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8196/1.051, allocations: 401.2 MB / 1.603 GB, free: 13.92 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/1.051, allocations: 86.2 kB / 1.603 GB, free: 13.88 MB / 1.026 GB Notification: Performance of FrontEnd: time 0.9778/2.029, allocations: 258.9 MB / 1.856 GB, free: 348.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.158e-05/2.029, allocations: 23.83 kB / 1.856 GB, free: 348.9 MB / 1.151 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.00219/2.031, allocations: 0.9138 MB / 1.857 GB, free: 348.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/2.031, allocations: 10.41 kB / 1.857 GB, free: 348.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/2.032, allocations: 194.3 kB / 1.857 GB, free: 348 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.027/2.059, allocations: 12.06 MB / 1.869 GB, free: 338 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003349/2.06, allocations: 96.7 kB / 1.869 GB, free: 337.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/2.06, allocations: 24 kB / 1.869 GB, free: 337.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006354/2.061, allocations: 285.5 kB / 1.869 GB, free: 337.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/2.061, allocations: 416.5 kB / 1.87 GB, free: 337.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/2.061, allocations: 7.922 kB / 1.87 GB, free: 337.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/2.061, allocations: 0 / 1.87 GB, free: 337.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/2.061, allocations: 20.55 kB / 1.87 GB, free: 337.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002917/2.064, allocations: 2.234 MB / 1.872 GB, free: 334.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/2.065, allocations: 258.8 kB / 1.872 GB, free: 334.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/2.065, allocations: 177.8 kB / 1.872 GB, free: 334.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002361/2.065, allocations: 344.6 kB / 1.873 GB, free: 333.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002746/2.065, allocations: 238.8 kB / 1.873 GB, free: 333.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 1.703e-06/2.065, allocations: 0 / 1.873 GB, free: 333.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001006/2.066, allocations: 450 kB / 1.873 GB, free: 333.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.738e-05/2.066, allocations: 81.11 kB / 1.874 GB, free: 333.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/2.067, allocations: 369.3 kB / 1.874 GB, free: 332.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.438e-05/2.067, allocations: 33.7 kB / 1.874 GB, free: 332.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 9.861e-05/2.067, allocations: 204.3 kB / 1.874 GB, free: 332.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 8.126e-05/2.067, allocations: 106.4 kB / 1.874 GB, free: 332.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/2.067, allocations: 0 / 1.874 GB, free: 332.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.245e-05/2.067, allocations: 362.8 kB / 1.875 GB, free: 332 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/2.067, allocations: 117.5 kB / 1.875 GB, free: 331.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/2.068, allocations: 223.1 kB / 1.875 GB, free: 331.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003497/2.068, allocations: 176.5 kB / 1.875 GB, free: 331.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/2.068, allocations: 0 / 1.875 GB, free: 331.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.00089/2.069, allocations: 465.3 kB / 1.876 GB, free: 331 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/2.069, allocations: 0.6201 MB / 1.876 GB, free: 330.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/2.069, allocations: 0 / 1.876 GB, free: 330.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000191/2.069, allocations: 44.84 kB / 1.876 GB, free: 330.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004543/2.07, allocations: 87.97 kB / 1.876 GB, free: 330.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004163/2.07, allocations: 0.6136 MB / 1.877 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007077/2.071, allocations: 75.7 kB / 1.877 GB, free: 329.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/2.071, allocations: 24.05 kB / 1.877 GB, free: 329.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.065e-06/2.071, allocations: 4 kB / 1.877 GB, free: 329.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008286/2.072, allocations: 368.7 kB / 1.877 GB, free: 329.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/2.072, allocations: 0 / 1.877 GB, free: 329.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001733/2.072, allocations: 52.73 kB / 1.877 GB, free: 329.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004471/2.072, allocations: 84.03 kB / 1.877 GB, free: 329 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/2.074, allocations: 1.509 MB / 1.879 GB, free: 327.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006425/2.074, allocations: 67.77 kB / 1.879 GB, free: 327.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/2.074, allocations: 19.98 kB / 1.879 GB, free: 327.3 MB / 1.151 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.0001576/2.074, allocations: 150.7 kB / 1.879 GB, free: 327.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.552e-05/2.075, allocations: 55.34 kB / 1.879 GB, free: 327 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/2.076, allocations: 0.4893 MB / 1.88 GB, free: 326.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/2.076, allocations: 4 kB / 1.88 GB, free: 326.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/2.076, allocations: 0 / 1.88 GB, free: 326.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008371/2.076, allocations: 0.6528 MB / 1.88 GB, free: 325.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/2.078, allocations: 1.105 MB / 1.881 GB, free: 324.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/2.078, allocations: 0 / 1.881 GB, free: 324.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003453/2.078, allocations: 75.98 kB / 1.881 GB, free: 324.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.239e-05/2.078, allocations: 39 kB / 1.881 GB, free: 324.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/2.079, allocations: 11.98 kB / 1.882 GB, free: 324.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002362/2.079, allocations: 0.5835 MB / 1.882 GB, free: 323.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/2.079, allocations: 3.984 kB / 1.882 GB, free: 323.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009639/2.08, allocations: 0.8001 MB / 1.883 GB, free: 323.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002392/2.08, allocations: 188.3 kB / 1.883 GB, free: 322.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/2.08, allocations: 8.25 kB / 1.883 GB, free: 322.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/2.081, allocations: 71.84 kB / 1.883 GB, free: 322.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/2.081, allocations: 19.97 kB / 1.883 GB, free: 322.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/2.081, allocations: 19.98 kB / 1.883 GB, free: 322.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0002417/2.081, allocations: 290.9 kB / 1.883 GB, free: 322.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001142/2.082, allocations: 359.3 kB / 1.884 GB, free: 322.1 MB / 1.151 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.0007754/2.083, allocations: 433.6 kB / 1.884 GB, free: 321.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0009855/2.084, allocations: 0.7082 MB / 1.885 GB, free: 321 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.084, allocations: 0 / 1.885 GB, free: 321 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003355/2.084, allocations: 242.3 kB / 1.885 GB, free: 320.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/2.085, allocations: 210.9 kB / 1.885 GB, free: 320.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/2.087, allocations: 0.775 MB / 1.886 GB, free: 319.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004018/2.087, allocations: 0.9486 MB / 1.887 GB, free: 318.8 MB / 1.151 GB Notification: Performance of SimCode: time 3.2e-07/2.087, allocations: 0 / 1.887 GB, free: 318.8 MB / 1.151 GB Notification: Performance of Templates: time 0.01839/2.106, allocations: 12.83 MB / 1.9 GB, free: 306.1 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_ConservationEquation.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches