Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) 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) Running command: translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [: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/Complex 4.0.0+maint.om/package.mo): time 0.002327/0.002327, allocations: 171.8 kB / 7.456 MB, free: 2.156 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9737/0.9737, allocations: 221.4 MB / 229.3 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007874/0.0007874, allocations: 101.1 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.006715/0.006715, allocations: 1.565 MB / 332.5 MB, free: 12.89 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.3726/0.3726, allocations: 90.04 MB / 473.6 MB, free: 7.277 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 4.097e-06/4.117e-06, allocations: 0 / 0.5369 GB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09351/0.09352, allocations: 69.35 MB / 0.6046 GB, free: 8.895 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5867/0.6803, allocations: 431.1 MB / 1.026 GB, free: 1.066 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001783/0.6805, allocations: 77.83 kB / 1.026 GB, free: 1.027 MB / 0.573 GB Notification: Performance of FrontEnd: time 0.2364/0.9169, allocations: 48 MB / 1.073 GB, free: 214 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.9169, allocations: 0 / 1.073 GB, free: 214 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005866/0.9175, allocations: 0.5219 MB / 1.073 GB, free: 213.6 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.829e-05/0.9176, allocations: 7.375 kB / 1.073 GB, free: 213.6 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.78e-05/0.9176, allocations: 18.84 kB / 1.073 GB, free: 213.6 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.9178, allocations: 225 kB / 1.073 GB, free: 213.4 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.9178, allocations: 3.875 kB / 1.073 GB, free: 213.4 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.9179, allocations: 7.75 kB / 1.073 GB, free: 213.4 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001292/0.918, allocations: 63.45 kB / 1.073 GB, free: 213.4 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001536/0.9182, allocations: 128.3 kB / 1.073 GB, free: 213.3 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.9182, allocations: 0 / 1.073 GB, free: 213.3 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.9182, allocations: 3.906 kB / 1.073 GB, free: 213.3 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.9182, allocations: 7.625 kB / 1.073 GB, free: 213.3 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006172/0.9188, allocations: 0.7384 MB / 1.074 GB, free: 212.7 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 8.523e-05/0.9189, allocations: 42.88 kB / 1.074 GB, free: 212.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.862e-05/0.919, allocations: 30.3 kB / 1.074 GB, free: 212.7 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.024e-05/0.9191, allocations: 95.14 kB / 1.074 GB, free: 212.6 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.695e-05/0.9191, allocations: 66.94 kB / 1.074 GB, free: 212.6 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=9): time 1.913e-06/0.9192, allocations: 3.781 kB / 1.074 GB, free: 212.6 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9): time 0.000189/0.9194, allocations: 91.89 kB / 1.075 GB, free: 212.5 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.858e-05/0.9194, allocations: 56.12 kB / 1.075 GB, free: 212.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.657e-05/0.9195, allocations: 158.6 kB / 1.075 GB, free: 212.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/0.9195, allocations: 26.83 kB / 1.075 GB, free: 212.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.885e-05/0.9196, allocations: 132.7 kB / 1.075 GB, free: 212.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.9196, allocations: 27.22 kB / 1.075 GB, free: 212.2 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-06/0.9196, allocations: 0 / 1.075 GB, free: 212.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.844e-05/0.9196, allocations: 330.9 kB / 1.075 GB, free: 211.9 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.597e-05/0.9197, allocations: 35.38 kB / 1.075 GB, free: 211.9 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.32e-05/0.9198, allocations: 76.33 kB / 1.075 GB, free: 211.9 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.608e-05/0.9198, allocations: 37.3 kB / 1.075 GB, free: 211.9 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.9199, allocations: 0 / 1.075 GB, free: 211.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001977/0.9201, allocations: 137.1 kB / 1.075 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.867e-06/0.9201, allocations: 6 kB / 1.075 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.9201, allocations: 3.062 kB / 1.075 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.9201, allocations: 7.312 kB / 1.076 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.9203, allocations: 37.27 kB / 1.076 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.9203, allocations: 3.938 kB / 1.076 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.9204, allocations: 29.41 kB / 1.076 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.9204, allocations: 9.375 kB / 1.076 GB, free: 211.8 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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 4.594e-05/0.9205, allocations: 112.2 kB / 1.076 GB, free: 211.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.785e-05/0.9205, allocations: 17.41 kB / 1.076 GB, free: 211.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.9207, allocations: 105.8 kB / 1.076 GB, free: 211.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.9207, allocations: 4.219 kB / 1.076 GB, free: 211.7 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.9207, allocations: 3.328 kB / 1.076 GB, free: 211.7 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.9207, allocations: 0 / 1.076 GB, free: 211.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.9208, allocations: 199.1 kB / 1.076 GB, free: 211.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.9208, allocations: 1.094 kB / 1.076 GB, free: 211.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.921, allocations: 23.62 kB / 1.076 GB, free: 211.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.921, allocations: 3.938 kB / 1.076 GB, free: 211.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.921, allocations: 0 / 1.076 GB, free: 211.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.921, allocations: 3.688 kB / 1.076 GB, free: 211.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.921, allocations: 0 / 1.076 GB, free: 211.5 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001848/0.9212, allocations: 157.4 kB / 1.076 GB, free: 211.4 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.645e-05/0.9212, allocations: 95.69 kB / 1.076 GB, free: 211.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.9213, allocations: 3.875 kB / 1.076 GB, free: 211.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.9214, allocations: 24.17 kB / 1.076 GB, free: 211.3 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.293e-05/0.9214, allocations: 15.03 kB / 1.076 GB, free: 211.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.9214, allocations: 3.625 kB / 1.076 GB, free: 211.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5.266e-05/0.9215, allocations: 128.1 kB / 1.076 GB, free: 211.2 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002228/0.9217, allocations: 43.53 kB / 1.076 GB, free: 211.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0001914/0.9219, allocations: 228.6 kB / 1.077 GB, free: 211.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001459/0.9221, allocations: 104.9 kB / 1.077 GB, free: 211.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.9221, allocations: 3.969 kB / 1.077 GB, free: 211.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 5.132e-05/0.9221, allocations: 34.19 kB / 1.077 GB, free: 211.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002206/0.9224, allocations: 37.62 kB / 1.077 GB, free: 211.1 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004836/0.9229, allocations: 246.6 kB / 1.077 GB, free: 211 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.923, allocations: 0.7366 MB / 1.078 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.923, allocations: 3.938 kB / 1.078 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of Templates: time 0.004312/0.9273, allocations: 2.707 MB / 1.08 GB, free: 210.2 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches