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.3.1-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-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.0008787/0.0008787, allocations: 179.2 kB / 16.12 MB, free: 5.57 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.435/1.435, allocations: 205.4 MB / 222.3 MB, free: 13.76 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.00082/0.0008201, allocations: 90.28 kB / 270.6 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-OM_adaptions/package.mo): time 0.6983/0.6983, allocations: 89.62 MB / 408.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003918, allocations: 16 kB / 485.2 MB, free: 2.973 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1425, allocations: 66.01 MB / 0.5383 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.834/6.976, allocations: 3.575 GB / 4.113 GB, free: 120 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003901/6.977, allocations: 92.27 kB / 4.114 GB, free: 120 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.14/9.117, allocations: 0.6219 GB / 4.735 GB, free: 45.4 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.384e-06/9.117, allocations: 3 kB / 4.735 GB, free: 45.4 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0002043/9.118, allocations: 41.16 kB / 4.735 GB, free: 45.4 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.01239/9.13, allocations: 3.318 MB / 4.739 GB, free: 43.83 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/9.13, allocations: 7.688 kB / 4.739 GB, free: 43.83 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002542/9.133, allocations: 374.8 kB / 4.739 GB, free: 43.73 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00257/9.135, allocations: 0.9914 MB / 4.74 GB, free: 43.35 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/9.135, allocations: 119.8 kB / 4.74 GB, free: 43.34 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005156/9.136, allocations: 168.7 kB / 4.74 GB, free: 43.34 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004943/9.141, allocations: 1.923 MB / 4.742 GB, free: 43.13 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.853e-05/9.141, allocations: 2.75 kB / 4.742 GB, free: 43.13 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/9.141, allocations: 68.33 kB / 4.742 GB, free: 43.12 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.085e-05/9.141, allocations: 58.38 kB / 4.742 GB, free: 43.12 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0043/9.146, allocations: 1.697 MB / 4.744 GB, free: 43.11 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.01003/9.156, allocations: 8.063 MB / 4.752 GB, free: 38.15 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003407/9.159, allocations: 1.432 MB / 4.753 GB, free: 38.11 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/9.16, allocations: 0.6744 MB / 4.754 GB, free: 38.1 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06224/9.223, allocations: 35.9 MB / 4.789 GB, free: 33.26 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003003/9.226, allocations: 0.9282 MB / 4.79 GB, free: 33.19 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=135): time 5.089e-06/9.226, allocations: 0 / 4.79 GB, free: 33.19 MB / 0.6042 GB Notification: Performance of matching and sorting (n=135): time 0.008095/9.234, allocations: 3.143 MB / 4.793 GB, free: 32.5 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/9.234, allocations: 119.9 kB / 4.793 GB, free: 32.37 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/9.235, allocations: 0.8506 MB / 4.794 GB, free: 32.21 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001695/9.235, allocations: 56.86 kB / 4.794 GB, free: 32.18 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005947/9.236, allocations: 0.6603 MB / 4.795 GB, free: 31.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003905/9.236, allocations: 465.3 kB / 4.795 GB, free: 31.6 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.737e-05/9.237, allocations: 27.5 kB / 4.795 GB, free: 31.6 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001541/9.237, allocations: 357.8 kB / 4.795 GB, free: 31.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/9.238, allocations: 0.4959 MB / 4.796 GB, free: 31.29 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/9.239, allocations: 0.7239 MB / 4.797 GB, free: 31.07 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00212/9.241, allocations: 1.29 MB / 4.798 GB, free: 30.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/9.241, allocations: 3.938 kB / 4.798 GB, free: 30.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.003226/9.244, allocations: 1.707 MB / 4.8 GB, free: 30.55 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001673/9.244, allocations: 278.8 kB / 4.8 GB, free: 30.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/9.245, allocations: 10.81 kB / 4.8 GB, free: 30.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006276/9.245, allocations: 203.7 kB / 4.8 GB, free: 30.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/9.246, allocations: 297.6 kB / 4.8 GB, free: 30.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005062/9.251, allocations: 5.971 MB / 4.806 GB, free: 25.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/9.253, allocations: 189.2 kB / 4.806 GB, free: 25.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002549/9.253, allocations: 59.83 kB / 4.806 GB, free: 25.07 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/9.253, allocations: 3.938 kB / 4.806 GB, free: 25.07 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003238/9.256, allocations: 1.53 MB / 4.808 GB, free: 24.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/9.256, allocations: 3.469 kB / 4.808 GB, free: 24.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005242/9.257, allocations: 204.3 kB / 4.808 GB, free: 24.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/9.258, allocations: 283 kB / 4.808 GB, free: 24.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00487/9.263, allocations: 5.976 MB / 4.814 GB, free: 19.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/9.264, allocations: 169.9 kB / 4.814 GB, free: 19.76 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/9.265, allocations: 57.94 kB / 4.814 GB, free: 19.76 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.001018/9.266, allocations: 415.3 kB / 4.815 GB, free: 19.57 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/9.266, allocations: 134.5 kB / 4.815 GB, free: 19.5 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005408/9.271, allocations: 4.149 MB / 4.819 GB, free: 19.05 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.64e-05/9.271, allocations: 53.11 kB / 4.819 GB, free: 19.05 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/9.271, allocations: 3.938 kB / 4.819 GB, free: 19.05 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/9.271, allocations: 6.703 kB / 4.819 GB, free: 19.05 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007997/9.279, allocations: 6.227 MB / 4.825 GB, free: 18.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/9.279, allocations: 0 / 4.825 GB, free: 18.44 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008789/9.28, allocations: 220.4 kB / 4.825 GB, free: 18.44 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/9.281, allocations: 0.7516 MB / 4.826 GB, free: 18.37 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/9.282, allocations: 41.41 kB / 4.826 GB, free: 18.37 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006255/9.288, allocations: 6.94 MB / 4.833 GB, free: 28.75 MB / 0.6199 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/9.288, allocations: 0 / 4.833 GB, free: 28.75 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00587/9.294, allocations: 4.068 MB / 4.837 GB, free: 28.29 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008309/9.295, allocations: 423.3 kB / 4.837 GB, free: 28.04 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003026/9.295, allocations: 32.47 kB / 4.837 GB, free: 28.04 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/9.296, allocations: 139.8 kB / 4.837 GB, free: 28.02 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/9.296, allocations: 131.7 kB / 4.838 GB, free: 28.02 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.503e-05/9.296, allocations: 48.11 kB / 4.838 GB, free: 28.02 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.0008323/9.297, allocations: 0.5583 MB / 4.838 GB, free: 27.91 MB / 0.6199 GB Notification: Performance of sort global known variables: time 1.2e-07/9.297, allocations: 0 / 4.838 GB, free: 27.91 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.007321/9.305, allocations: 1.836 MB / 4.84 GB, free: 27.62 MB / 0.6199 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.01084/9.316, allocations: 2.064 MB / 4.842 GB, free: 27.15 MB / 0.6199 GB Notification: Performance of simCode: created initialization part: time 0.007065/9.323, allocations: 3.742 MB / 4.846 GB, free: 25.86 MB / 0.6199 GB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/9.323, allocations: 4.125 kB / 4.846 GB, free: 25.86 MB / 0.6199 GB Notification: Performance of simCode: created simulation system equations: time 0.00259/9.325, allocations: 1.79 MB / 4.847 GB, free: 25.34 MB / 0.6199 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/9.328, allocations: 443.3 kB / 4.848 GB, free: 25.32 MB / 0.6199 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007889/9.336, allocations: 5.372 MB / 4.853 GB, free: 22.87 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/9.337, allocations: 1.486 MB / 4.854 GB, free: 22.11 MB / 0.6199 GB Notification: Performance of simCode: alias equations: time 0.002266/9.34, allocations: 1.011 MB / 4.855 GB, free: 22.07 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004363/9.34, allocations: 117.8 kB / 4.856 GB, free: 22.06 MB / 0.6199 GB Notification: Performance of SimCode: time 1.974e-06/9.34, allocations: 0 / 4.856 GB, free: 22.06 MB / 0.6199 GB Notification: Performance of Templates: time 0.08458/9.425, allocations: 61.55 MB / 4.916 GB, free: 2.754 MB / 0.6199 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