Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) 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) Running command: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") [: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 3.2.3+maint.om/package.mo): time 0.002262/0.002262, allocations: 177 kB / 7.456 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9811/0.9811, allocations: 205.2 MB / 213.1 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008003/0.0008003, allocations: 98.03 kB / 261.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.502/0.502, allocations: 90.34 MB / 399.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.22e-06/5.25e-06, allocations: 0 / 471.7 MB, free: 3.801 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2323, allocations: 66.26 MB / 0.5253 GB, free: 28.73 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6716/0.9039, allocations: 435.6 MB / 0.9507 GB, free: 163.7 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001709/0.9042, allocations: 74.39 kB / 0.9508 GB, free: 163.7 MB / 0.5886 GB Notification: Performance of FrontEnd: time 0.119/1.023, allocations: 69.79 MB / 1.019 GB, free: 133.2 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.643e-05/1.023, allocations: 11.98 kB / 1.019 GB, free: 133.2 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0008633/1.024, allocations: 0.6329 MB / 1.02 GB, free: 132.5 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 2.967e-05/1.024, allocations: 8.031 kB / 1.02 GB, free: 132.5 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.001e-05/1.024, allocations: 35.61 kB / 1.02 GB, free: 132.4 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/1.024, allocations: 265.5 kB / 1.02 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/1.025, allocations: 11.98 kB / 1.02 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.798e-05/1.025, allocations: 16 kB / 1.02 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002518/1.025, allocations: 176.8 kB / 1.02 GB, free: 131.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/1.025, allocations: 190.4 kB / 1.02 GB, free: 131.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/1.025, allocations: 7.875 kB / 1.02 GB, free: 131.7 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/1.025, allocations: 0 / 1.02 GB, free: 131.7 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/1.025, allocations: 8 kB / 1.02 GB, free: 131.7 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008893/1.026, allocations: 0.9825 MB / 1.021 GB, free: 130.6 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/1.026, allocations: 113.7 kB / 1.021 GB, free: 130.5 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/1.026, allocations: 100.8 kB / 1.021 GB, free: 130.4 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006448/1.027, allocations: 0.8488 MB / 1.022 GB, free: 129.5 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/1.027, allocations: 131.4 kB / 1.022 GB, free: 129.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/1.027, allocations: 0 / 1.022 GB, free: 129.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25): time 0.0005287/1.028, allocations: 246.5 kB / 1.023 GB, free: 129.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.874e-05/1.028, allocations: 59.41 kB / 1.023 GB, free: 129 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/1.028, allocations: 184.1 kB / 1.023 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/1.028, allocations: 25.7 kB / 1.023 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.861e-05/1.028, allocations: 136.2 kB / 1.023 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.855e-05/1.028, allocations: 82.84 kB / 1.023 GB, free: 128.6 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.226e-05/1.028, allocations: 0 / 1.023 GB, free: 128.6 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 4.213e-05/1.028, allocations: 338.7 kB / 1.023 GB, free: 128.2 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.806e-05/1.028, allocations: 67.98 kB / 1.023 GB, free: 128.2 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/1.028, allocations: 103.3 kB / 1.024 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/1.028, allocations: 78.7 kB / 1.024 GB, free: 128 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.028, allocations: 4 kB / 1.024 GB, free: 128 MB / 0.5886 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004629/1.029, allocations: 272.2 kB / 1.024 GB, free: 127.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/1.029, allocations: 7.906 kB / 1.024 GB, free: 127.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/1.029, allocations: 0 / 1.024 GB, free: 127.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001587/1.029, allocations: 44.89 kB / 1.024 GB, free: 127.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000197/1.029, allocations: 47.91 kB / 1.024 GB, free: 127.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007322/1.03, allocations: 1.338 MB / 1.025 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/1.03, allocations: 31.88 kB / 1.025 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/1.03, allocations: 12 kB / 1.025 GB, free: 126.1 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (26): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.591e-05/1.03, allocations: 108.9 kB / 1.025 GB, free: 126 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/1.03, allocations: 23.72 kB / 1.025 GB, free: 126 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005782/1.031, allocations: 310.9 kB / 1.026 GB, free: 125.7 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/1.031, allocations: 4 kB / 1.026 GB, free: 125.7 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/1.031, allocations: 0 / 1.026 GB, free: 125.7 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/1.031, allocations: 0 / 1.026 GB, free: 125.7 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008002/1.032, allocations: 0.6655 MB / 1.026 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.032, allocations: 4.031 kB / 1.026 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/1.032, allocations: 39.97 kB / 1.026 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/1.032, allocations: 40.73 kB / 1.027 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/1.032, allocations: 7.984 kB / 1.027 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006666/1.033, allocations: 1.342 MB / 1.028 GB, free: 123.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.033, allocations: 4.031 kB / 1.028 GB, free: 123.4 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005726/1.033, allocations: 482.9 kB / 1.028 GB, free: 122.9 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/1.033, allocations: 96.81 kB / 1.028 GB, free: 122.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/1.033, allocations: 7.906 kB / 1.028 GB, free: 122.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/1.034, allocations: 23.98 kB / 1.028 GB, free: 122.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/1.034, allocations: 27.89 kB / 1.028 GB, free: 122.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/1.034, allocations: 12 kB / 1.028 GB, free: 122.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.797e-05/1.034, allocations: 148.4 kB / 1.029 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003706/1.034, allocations: 127.8 kB / 1.029 GB, free: 122.4 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (checkValve.inlet.m_flow) * 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 (23): * Single equations (assignments): 19 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003316/1.035, allocations: 313.1 kB / 1.029 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004343/1.035, allocations: 368.9 kB / 1.029 GB, free: 121.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/1.035, allocations: 0 / 1.029 GB, free: 121.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0002733/1.035, allocations: 243.5 kB / 1.03 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/1.036, allocations: 76.67 kB / 1.03 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007202/1.036, allocations: 382.2 kB / 1.03 GB, free: 121 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/1.037, allocations: 0.7982 MB / 1.031 GB, free: 120.2 MB / 0.5886 GB Notification: Performance of SimCode: time 2.21e-07/1.037, allocations: 0 / 1.031 GB, free: 120.2 MB / 0.5886 GB Notification: Performance of Templates: time 0.008189/1.045, allocations: 5.86 MB / 1.037 GB, free: 114.4 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches