Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_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.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.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_OM_adaptions_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_OM_adaptions_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.001773/0.001773, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.538/1.538, allocations: 205.2 MB / 218.5 MB, free: 9.203 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.0008702/0.00087, allocations: 81.02 kB / 266.6 MB, free: 9.277 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.7894/0.7894, allocations: 90.34 MB / 405 MB, free: 8.629 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.109e-05/3.126e-05, allocations: 4 kB / 479.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.411, allocations: 66.25 MB / 0.5326 GB, free: 28.62 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.047/9.458, allocations: 3.575 GB / 4.108 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/9.459, allocations: 83.77 kB / 4.108 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.549/12.01, allocations: 0.6457 GB / 4.754 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.507e-06/12.01, allocations: 0 / 4.754 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002463/12.01, allocations: 43.19 kB / 4.754 GB, free: 60.95 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: 385 * Number of variables: 385 Notification: Performance of Generate backend data structure: time 0.01476/12.02, allocations: 3.173 MB / 4.757 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/12.02, allocations: 7.812 kB / 4.757 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002842/12.03, allocations: 378.5 kB / 4.757 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003012/12.03, allocations: 0.9436 MB / 4.758 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/12.03, allocations: 121.8 kB / 4.758 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005284/12.03, allocations: 157.3 kB / 4.758 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00424/12.03, allocations: 1.878 MB / 4.76 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.445e-05/12.03, allocations: 1.25 kB / 4.76 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/12.03, allocations: 65.16 kB / 4.76 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.636e-05/12.03, allocations: 64.73 kB / 4.76 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003475/12.04, allocations: 1.57 MB / 4.762 GB, free: 58.97 MB / 0.6042 GB Warning: The model contains alias variables with conflicting start and/or 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.01173/12.05, allocations: 8.045 MB / 4.77 GB, free: 54.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002907/12.05, allocations: 1.324 MB / 4.771 GB, free: 54 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000793/12.05, allocations: 0.5797 MB / 4.771 GB, free: 53.99 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06346/12.12, allocations: 36.07 MB / 4.807 GB, free: 33.23 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00277/12.12, allocations: 0.912 MB / 4.808 GB, free: 33.16 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=135): time 4.939e-06/12.12, allocations: 0 / 4.808 GB, free: 33.16 MB / 0.6042 GB Notification: Performance of matching and sorting (n=135): time 0.005543/12.12, allocations: 1.901 MB / 4.809 GB, free: 32.98 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/12.13, allocations: 118.8 kB / 4.81 GB, free: 32.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/12.13, allocations: 0.7331 MB / 4.81 GB, free: 32.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001703/12.13, allocations: 54.83 kB / 4.81 GB, free: 32.66 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008733/12.13, allocations: 0.6732 MB / 4.811 GB, free: 32.38 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006019/12.13, allocations: 458.4 kB / 4.811 GB, free: 32.09 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.532e-05/12.13, allocations: 23.81 kB / 4.811 GB, free: 32.09 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001237/12.13, allocations: 358.6 kB / 4.812 GB, free: 31.79 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007442/12.13, allocations: 416.3 kB / 4.812 GB, free: 31.79 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008332/12.13, allocations: 0.6282 MB / 4.813 GB, free: 31.58 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008225/12.13, allocations: 0.5424 MB / 4.813 GB, free: 31.5 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/12.13, allocations: 0 / 4.813 GB, free: 31.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.002584/12.13, allocations: 1.525 MB / 4.815 GB, free: 31.26 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004076/12.13, allocations: 1.806 MB / 4.817 GB, free: 29.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/12.13, allocations: 3.188 kB / 4.817 GB, free: 29.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006274/12.13, allocations: 201.9 kB / 4.817 GB, free: 29.36 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/12.14, allocations: 302.4 kB / 4.817 GB, free: 29.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003969/12.14, allocations: 5.946 MB / 4.823 GB, free: 24.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/12.14, allocations: 187.9 kB / 4.823 GB, free: 24.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/12.14, allocations: 62.22 kB / 4.823 GB, free: 24.25 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/12.14, allocations: 6.75 kB / 4.823 GB, free: 24.25 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002319/12.14, allocations: 1.394 MB / 4.824 GB, free: 24.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/12.14, allocations: 6.969 kB / 4.824 GB, free: 24.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000527/12.14, allocations: 201.6 kB / 4.825 GB, free: 24.08 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/12.15, allocations: 288.3 kB / 4.825 GB, free: 24.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005635/12.15, allocations: 5.952 MB / 4.831 GB, free: 35.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/12.15, allocations: 175.8 kB / 4.831 GB, free: 34.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/12.15, allocations: 57.48 kB / 4.831 GB, free: 34.98 MB / 0.6198 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 () * 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.000549/12.15, allocations: 195.3 kB / 4.831 GB, free: 34.87 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002898/12.15, allocations: 127.9 kB / 4.831 GB, free: 34.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005855/12.16, allocations: 4.031 MB / 4.835 GB, free: 34.38 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.313e-05/12.16, allocations: 53.08 kB / 4.835 GB, free: 34.38 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.665e-05/12.16, allocations: 7.703 kB / 4.835 GB, free: 34.38 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.885e-05/12.16, allocations: 12.31 kB / 4.835 GB, free: 34.38 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008305/12.17, allocations: 6.173 MB / 4.841 GB, free: 33.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/12.17, allocations: 3.656 kB / 4.841 GB, free: 33.78 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009505/12.17, allocations: 222 kB / 4.842 GB, free: 33.78 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/12.17, allocations: 0.847 MB / 4.842 GB, free: 33.7 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/12.17, allocations: 46.39 kB / 4.842 GB, free: 33.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005382/12.18, allocations: 6.951 MB / 4.849 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/12.18, allocations: 3.312 kB / 4.849 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005889/12.18, allocations: 4.241 MB / 4.853 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009525/12.18, allocations: 418.8 kB / 4.854 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003238/12.18, allocations: 37.38 kB / 4.854 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/12.18, allocations: 135.6 kB / 4.854 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003234/12.18, allocations: 130.7 kB / 4.854 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/12.18, allocations: 46.91 kB / 4.854 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0008939/12.19, allocations: 0.55 MB / 4.855 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.01e-07/12.19, allocations: 0 / 4.855 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.008251/12.19, allocations: 1.828 MB / 4.856 GB, free: 26.95 MB / 0.6198 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) * 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.01009/12.2, allocations: 2.082 MB / 4.858 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006679/12.21, allocations: 3.504 MB / 4.862 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/12.21, allocations: 6.312 kB / 4.862 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002452/12.21, allocations: 1.693 MB / 4.864 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002671/12.22, allocations: 436.8 kB / 4.864 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007183/12.22, allocations: 3.524 MB / 4.867 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001342/12.22, allocations: 1.531 MB / 4.869 GB, free: 23.08 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002536/12.23, allocations: 1.091 MB / 4.87 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003501/12.23, allocations: 100.7 kB / 4.87 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of SimCode: time 9.41e-07/12.23, allocations: 0 / 4.87 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of Templates: time 0.08964/12.32, allocations: 64.77 MB / 4.933 GB, free: 14.85 MB / 0.6198 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches