Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.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.3.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/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.Examples.Utilities.Tests.BoilerEspresso,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="PID1.I.y|PID2.I.y|Time|boilerEspresso.phaseSeparator2_1.M|boilerEspresso.phaseSeparator2_1.U_med|firstOrder1.y|firstOrder2.y|firstOrder3.y|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|tanValve1.inlet.m_flow|tanValve2.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso") translateModel(ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="PID1.I.y|PID2.I.y|Time|boilerEspresso.phaseSeparator2_1.M|boilerEspresso.phaseSeparator2_1.U_med|firstOrder1.y|firstOrder2.y|firstOrder3.y|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|tanValve1.inlet.m_flow|tanValve2.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001501/0.001501, allocations: 174.3 kB / 16.12 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 205.4 MB / 222.3 MB, free: 9.027 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.0008033/0.0008031, allocations: 90.36 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.9206/0.9206, allocations: 89.58 MB / 408.5 MB, free: 4.504 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.000369, allocations: 16 kB / 485.2 MB, free: 7.652 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3932, allocations: 66.01 MB / 0.5383 GB, free: 34.59 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.677/9.07, allocations: 3.575 GB / 4.113 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/9.07, allocations: 99.83 kB / 4.114 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.654/11.72, allocations: 0.6219 GB / 4.735 GB, free: 53.7 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.893e-06/11.72, allocations: 0 / 4.735 GB, free: 53.7 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001685/11.72, allocations: 38.12 kB / 4.735 GB, free: 53.7 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: 385 * Number of variables: 385 Notification: Performance of Generate backend data structure: time 0.01525/11.74, allocations: 3.317 MB / 4.739 GB, free: 51.8 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/11.74, allocations: 13.91 kB / 4.739 GB, free: 51.8 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002553/11.74, allocations: 375.8 kB / 4.739 GB, free: 51.66 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003127/11.75, allocations: 0.9923 MB / 4.74 GB, free: 51.04 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002369/11.75, allocations: 121 kB / 4.74 GB, free: 50.98 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008354/11.75, allocations: 164.2 kB / 4.74 GB, free: 50.93 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00607/11.75, allocations: 1.926 MB / 4.742 GB, free: 50.15 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.022e-05/11.75, allocations: 7.719 kB / 4.742 GB, free: 50.15 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003093/11.75, allocations: 67.66 kB / 4.742 GB, free: 50.1 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/11.75, allocations: 60.53 kB / 4.742 GB, free: 50.09 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004394/11.76, allocations: 1.702 MB / 4.744 GB, free: 49.59 MB / 0.5886 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01048/11.77, allocations: 8.042 MB / 4.752 GB, free: 43.23 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003152/11.77, allocations: 1.442 MB / 4.753 GB, free: 42.72 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/11.77, allocations: 0.6713 MB / 4.754 GB, free: 42.46 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06352/11.84, allocations: 35.9 MB / 4.789 GB, free: 8.535 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002749/11.84, allocations: 0.9345 MB / 4.79 GB, free: 7.586 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=135): time 4.138e-06/11.84, allocations: 0 / 4.79 GB, free: 7.586 MB / 0.5886 GB Notification: Performance of matching and sorting (n=135): time 0.007448/11.85, allocations: 3.137 MB / 4.793 GB, free: 4.336 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/11.85, allocations: 128.1 kB / 4.793 GB, free: 4.188 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/11.85, allocations: 0.8479 MB / 4.794 GB, free: 3.32 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001176/11.85, allocations: 49.7 kB / 4.794 GB, free: 3.266 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005198/11.85, allocations: 0.6666 MB / 4.795 GB, free: 2.59 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003582/11.85, allocations: 468.8 kB / 4.795 GB, free: 2.137 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.125e-05/11.85, allocations: 24 kB / 4.795 GB, free: 2.113 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000112/11.85, allocations: 361.9 kB / 4.795 GB, free: 1.754 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009157/11.85, allocations: 0.499 MB / 4.796 GB, free: 1.254 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/11.85, allocations: 0.7177 MB / 4.797 GB, free: 476 kB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002333/11.85, allocations: 1.287 MB / 4.798 GB, free: 15.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/11.85, allocations: 11.88 kB / 4.798 GB, free: 15.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.003843/11.86, allocations: 1.701 MB / 4.8 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002493/11.86, allocations: 278.2 kB / 4.8 GB, free: 13.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/11.86, allocations: 4 kB / 4.8 GB, free: 13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00075/11.86, allocations: 206.4 kB / 4.8 GB, free: 12.79 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/11.86, allocations: 299.6 kB / 4.8 GB, free: 12.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00577/11.86, allocations: 5.964 MB / 4.806 GB, free: 6.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/11.87, allocations: 194.7 kB / 4.806 GB, free: 5.828 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/11.87, allocations: 59.97 kB / 4.806 GB, free: 5.77 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/11.87, allocations: 0 / 4.806 GB, free: 5.77 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00347/11.87, allocations: 1.533 MB / 4.808 GB, free: 4.211 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/11.87, allocations: 4 kB / 4.808 GB, free: 4.207 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006961/11.87, allocations: 202.1 kB / 4.808 GB, free: 4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/11.87, allocations: 291.6 kB / 4.808 GB, free: 3.715 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.487/12.36, allocations: 5.955 MB / 4.814 GB, free: 69.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/12.36, allocations: 175.2 kB / 4.814 GB, free: 69.91 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/12.36, allocations: 55.61 kB / 4.814 GB, free: 69.91 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 22 (boilerEspresso.phaseSeparator2_1.state_out[1].phase,boilerEspresso.phaseSeparator2_1.state_out[2].phase,tanValve.outlet.state.phase,$whenCondition2,$whenCondition1,boilerEspresso.phaseSeparator2_1.medium.phase,source.outlet.state.phase,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,flowResistance2.outlet.state.phase,tanValve2.outlet.state.phase,flowResistance1.outlet.state.phase,tanValve1.outlet.state.phase,flowResistance.outlet.state.phase,PID1.I.local_reset,PID2.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001073/12.36, allocations: 425.6 kB / 4.815 GB, free: 69.72 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/12.36, allocations: 135.9 kB / 4.815 GB, free: 69.72 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006439/12.37, allocations: 4.143 MB / 4.819 GB, free: 69.4 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.711e-05/12.37, allocations: 52.39 kB / 4.819 GB, free: 69.4 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/12.37, allocations: 2.344 kB / 4.819 GB, free: 69.4 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.027e-05/12.37, allocations: 11.92 kB / 4.819 GB, free: 69.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/12.38, allocations: 6.224 MB / 4.825 GB, free: 68.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/12.38, allocations: 0 / 4.825 GB, free: 68.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009703/12.38, allocations: 229.8 kB / 4.825 GB, free: 68.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001297/12.38, allocations: 0.7499 MB / 4.826 GB, free: 68.87 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/12.38, allocations: 35.28 kB / 4.826 GB, free: 68.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005087/12.39, allocations: 6.927 MB / 4.833 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/12.39, allocations: 3.781 kB / 4.833 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008158/12.4, allocations: 4.073 MB / 4.837 GB, free: 62.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/12.4, allocations: 422.2 kB / 4.837 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/12.4, allocations: 35.12 kB / 4.837 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/12.4, allocations: 139.4 kB / 4.837 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000421/12.4, allocations: 131.5 kB / 4.837 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/12.4, allocations: 48.83 kB / 4.838 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001189/12.4, allocations: 0.5583 MB / 4.838 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.71e-07/12.4, allocations: 0 / 4.838 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0122/12.41, allocations: 1.834 MB / 4.84 GB, free: 62.52 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (boilerEspresso.phaseSeparator2_1.M,boilerEspresso.phaseSeparator2_1.U_med,flowResistance.inlet.m_flow,tanValve1.inlet.m_flow,firstOrder1.y,tanValve2.inlet.m_flow,firstOrder2.y,firstOrder3.y,PID2.I.y,PID1.I.y) * Number of discrete variables: 30 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse18.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse22.region3boundary,$cse23.region3boundary,$whenCondition2,$whenCondition1,boilerEspresso.phaseSeparator2_1.medium.phase,source.outlet.state.phase,pulse.T_start,pulse.count,pulse1.T_start,pulse1.count) * Number of discrete states: 2 (pulse1.count,pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 7} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01027/12.42, allocations: 2.076 MB / 4.842 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006843/12.43, allocations: 3.736 MB / 4.846 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/12.43, allocations: 0.9375 kB / 4.846 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003122/12.43, allocations: 1.779 MB / 4.847 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003218/12.44, allocations: 457.6 kB / 4.848 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008592/12.44, allocations: 5.357 MB / 4.853 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001194/12.45, allocations: 1.491 MB / 4.854 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.002225/12.45, allocations: 1.017 MB / 4.855 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/12.45, allocations: 112.8 kB / 4.856 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of SimCode: time 1.543e-06/12.45, allocations: 0 / 4.856 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of Templates: time 0.08566/12.53, allocations: 61.56 MB / 4.916 GB, free: 55.09 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.makefile (rm -f ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.sim & ./ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso_ref.mat","../files/ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches