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.00972/0.00972, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.001185/0.001185, allocations: 94.83 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.9887/0.9887, allocations: 90.58 MB / 408.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003829/0.000383, allocations: 8 kB / 485.2 MB, free: 2.074 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5585/0.5589, allocations: 66.27 MB / 0.5386 GB, free: 45.43 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.039/9.598, allocations: 3.575 GB / 4.114 GB, free: 99.84 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003853/9.598, allocations: 87.95 kB / 4.114 GB, free: 99.75 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.778/12.38, allocations: 0.6475 GB / 4.761 GB, free: 49.61 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.156e-06/12.38, allocations: 3.312 kB / 4.761 GB, free: 49.61 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0002638/12.38, allocations: 38.94 kB / 4.761 GB, free: 49.61 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.01502/12.39, allocations: 3.336 MB / 4.765 GB, free: 47.93 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/12.39, allocations: 9.219 kB / 4.765 GB, free: 47.93 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002887/12.39, allocations: 382 kB / 4.765 GB, free: 47.82 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003194/12.4, allocations: 0.9473 MB / 4.766 GB, free: 47.49 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/12.4, allocations: 121 kB / 4.766 GB, free: 47.48 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007846/12.4, allocations: 159.7 kB / 4.766 GB, free: 47.48 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006744/12.41, allocations: 1.923 MB / 4.768 GB, free: 47.27 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.758e-05/12.41, allocations: 3.156 kB / 4.768 GB, free: 47.27 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004041/12.41, allocations: 63.91 kB / 4.768 GB, free: 47.27 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/12.41, allocations: 62.2 kB / 4.768 GB, free: 47.27 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004691/12.41, allocations: 1.697 MB / 4.77 GB, free: 47.25 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.01015/12.42, allocations: 8.051 MB / 4.778 GB, free: 42.3 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003075/12.42, allocations: 1.44 MB / 4.779 GB, free: 42.25 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06394/12.49, allocations: 35.89 MB / 4.814 GB, free: 20.82 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003139/12.49, allocations: 0.9286 MB / 4.815 GB, free: 20.75 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=135): time 4.779e-06/12.49, allocations: 0 / 4.815 GB, free: 20.75 MB / 0.5886 GB Notification: Performance of matching and sorting (n=135): time 0.009575/12.5, allocations: 3.219 MB / 4.818 GB, free: 35.95 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/12.5, allocations: 125 kB / 4.818 GB, free: 35.82 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/12.5, allocations: 0.7367 MB / 4.819 GB, free: 35.68 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.000139/12.5, allocations: 52.28 kB / 4.819 GB, free: 35.64 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005434/12.5, allocations: 0.6672 MB / 4.82 GB, free: 35.36 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.000368/12.5, allocations: 464.1 kB / 4.82 GB, free: 35.07 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-05/12.5, allocations: 27.41 kB / 4.82 GB, free: 35.06 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001799/12.5, allocations: 359.5 kB / 4.821 GB, free: 34.76 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009967/12.5, allocations: 0.4951 MB / 4.821 GB, free: 34.75 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/12.51, allocations: 0.7196 MB / 4.822 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/12.51, allocations: 0.6226 MB / 4.822 GB, free: 34.45 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/12.51, allocations: 6.656 kB / 4.822 GB, free: 34.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.003435/12.51, allocations: 1.703 MB / 4.824 GB, free: 34.17 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008071/12.51, allocations: 1.814 MB / 4.826 GB, free: 32.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/12.51, allocations: 3.969 kB / 4.826 GB, free: 32.27 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006796/12.51, allocations: 207.7 kB / 4.826 GB, free: 32.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/12.51, allocations: 295 kB / 4.826 GB, free: 32.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005142/12.52, allocations: 6.033 MB / 4.832 GB, free: 27.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/12.52, allocations: 190.2 kB / 4.832 GB, free: 27.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/12.52, allocations: 58.59 kB / 4.833 GB, free: 27.05 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/12.52, allocations: 3.344 kB / 4.833 GB, free: 27.05 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002947/12.52, allocations: 1.529 MB / 4.834 GB, free: 26.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/12.52, allocations: 3.938 kB / 4.834 GB, free: 26.87 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005481/12.52, allocations: 197.8 kB / 4.834 GB, free: 26.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/12.52, allocations: 291.6 kB / 4.835 GB, free: 26.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004968/12.53, allocations: 6.033 MB / 4.84 GB, free: 21.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/12.53, allocations: 171 kB / 4.841 GB, free: 21.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/12.53, allocations: 59.23 kB / 4.841 GB, free: 21.29 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.001101/12.53, allocations: 428.7 kB / 4.841 GB, free: 20.95 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/12.53, allocations: 127.7 kB / 4.841 GB, free: 20.89 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005463/12.54, allocations: 4.149 MB / 4.845 GB, free: 18.96 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-05/12.54, allocations: 64.19 kB / 4.845 GB, free: 18.94 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/12.54, allocations: 3.812 kB / 4.845 GB, free: 18.94 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/12.54, allocations: 11.77 kB / 4.845 GB, free: 18.93 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008036/12.55, allocations: 6.216 MB / 4.851 GB, free: 16.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/12.55, allocations: 7.812 kB / 4.851 GB, free: 16.01 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009458/12.55, allocations: 222 kB / 4.852 GB, free: 15.99 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001181/12.55, allocations: 0.7532 MB / 4.852 GB, free: 15.81 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/12.55, allocations: 42.48 kB / 4.852 GB, free: 15.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006583/12.56, allocations: 6.98 MB / 4.859 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/12.56, allocations: 3.953 kB / 4.859 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006809/12.56, allocations: 4.106 MB / 4.863 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/12.56, allocations: 419.4 kB / 4.864 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/12.56, allocations: 31.06 kB / 4.864 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009901/12.56, allocations: 139.2 kB / 4.864 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003057/12.57, allocations: 129.2 kB / 4.864 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.271e-05/12.57, allocations: 47.39 kB / 4.864 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0007521/12.57, allocations: 0.5592 MB / 4.864 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/12.57, allocations: 0 / 4.864 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.007596/12.57, allocations: 1.841 MB / 4.866 GB, free: 22.35 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) * 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.008511/12.58, allocations: 2.07 MB / 4.868 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006441/12.59, allocations: 3.731 MB / 4.872 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/12.59, allocations: 7.938 kB / 4.872 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002422/12.59, allocations: 1.788 MB / 4.874 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/12.59, allocations: 430.4 kB / 4.874 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007574/12.6, allocations: 5.37 MB / 4.879 GB, free: 12.25 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/12.6, allocations: 1.523 MB / 4.881 GB, free: 10.99 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002272/12.6, allocations: 1.008 MB / 4.882 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003503/12.6, allocations: 111.2 kB / 4.882 GB, free: 10.28 MB / 0.6198 GB Notification: Performance of SimCode: time 8.22e-07/12.6, allocations: 0 / 4.882 GB, free: 10.28 MB / 0.6198 GB Notification: Performance of Templates: time 0.4999/13.1, allocations: 59.13 MB / 4.94 GB, free: 74.67 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