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") [: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.002298/0.002298, allocations: 174.2 kB / 7.458 MB, free: 2.488 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.9563/0.9563, allocations: 205.2 MB / 213.1 MB, free: 13.87 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.0007744/0.0007744, allocations: 88.97 kB / 261.1 MB, free: 13.62 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.4939/0.4939, allocations: 90.35 MB / 399.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.479e-06/4.509e-06, allocations: 0 / 471.7 MB, free: 3.828 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2302, allocations: 66.26 MB / 0.5253 GB, free: 28.89 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.672/4.902, allocations: 3.574 GB / 4.1 GB, free: 129.7 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/4.902, allocations: 81.36 kB / 4.1 GB, free: 129.7 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.405/6.307, allocations: 0.6426 GB / 4.742 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.971e-05/6.308, allocations: 42.19 kB / 4.743 GB, free: 12.98 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.006863/6.314, allocations: 3.219 MB / 4.746 GB, free: 9.699 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 2.74e-05/6.314, allocations: 12.03 kB / 4.746 GB, free: 9.688 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001304/6.316, allocations: 357.4 kB / 4.746 GB, free: 9.336 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/6.317, allocations: 0.9519 MB / 4.747 GB, free: 8.367 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/6.317, allocations: 59.91 kB / 4.747 GB, free: 8.309 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/6.317, allocations: 95.98 kB / 4.747 GB, free: 8.215 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001643/6.319, allocations: 1.22 MB / 4.748 GB, free: 6.992 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/6.321, allocations: 1.417 MB / 4.75 GB, free: 5.508 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.891e-05/6.321, allocations: 0 / 4.75 GB, free: 5.508 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/6.321, allocations: 0 / 4.75 GB, free: 5.508 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.556e-05/6.321, allocations: 62.86 kB / 4.75 GB, free: 5.445 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006299/6.327, allocations: 7.859 MB / 4.757 GB, free: 12.88 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009965/6.328, allocations: 0.6445 MB / 4.758 GB, free: 12.23 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007587/6.329, allocations: 0.5461 MB / 4.759 GB, free: 11.69 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2233/6.552, allocations: 45.12 MB / 4.803 GB, free: 81.47 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009365/6.553, allocations: 0.6014 MB / 4.803 GB, free: 81.41 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=135): time 2.856e-06/6.553, allocations: 0 / 4.803 GB, free: 81.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=135): time 0.003627/6.557, allocations: 1.605 MB / 4.805 GB, free: 81.31 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/6.557, allocations: 119.8 kB / 4.805 GB, free: 81.18 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006313/6.557, allocations: 0.6436 MB / 4.806 GB, free: 81.04 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.422e-05/6.557, allocations: 27.86 kB / 4.806 GB, free: 81.01 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000245/6.558, allocations: 0.4945 MB / 4.806 GB, free: 80.86 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002176/6.558, allocations: 444.5 kB / 4.806 GB, free: 80.62 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.923e-05/6.558, allocations: 0 / 4.806 GB, free: 80.62 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.275e-05/6.558, allocations: 364.2 kB / 4.807 GB, free: 80.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005862/6.559, allocations: 427.3 kB / 4.807 GB, free: 80.32 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006765/6.559, allocations: 0.6262 MB / 4.808 GB, free: 80.11 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/6.56, allocations: 0.5221 MB / 4.808 GB, free: 80.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/6.56, allocations: 7.234 kB / 4.808 GB, free: 80.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.003249/6.564, allocations: 1.7 MB / 4.81 GB, free: 79.94 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002051/6.564, allocations: 1.746 MB / 4.812 GB, free: 78.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/6.564, allocations: 3.656 kB / 4.812 GB, free: 78.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000543/6.565, allocations: 201 kB / 4.812 GB, free: 78.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/6.566, allocations: 304.5 kB / 4.812 GB, free: 78.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003126/6.569, allocations: 5.648 MB / 4.818 GB, free: 73.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009872/6.57, allocations: 170.7 kB / 4.818 GB, free: 73.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.946e-05/6.57, allocations: 54.7 kB / 4.818 GB, free: 73.27 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.827e-06/6.57, allocations: 3.438 kB / 4.818 GB, free: 73.27 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002447/6.572, allocations: 1.299 MB / 4.819 GB, free: 73.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/6.572, allocations: 3.656 kB / 4.819 GB, free: 73.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004628/6.573, allocations: 197.1 kB / 4.819 GB, free: 73.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/6.574, allocations: 289.6 kB / 4.82 GB, free: 73.17 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003011/6.577, allocations: 5.653 MB / 4.825 GB, free: 68.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008322/6.578, allocations: 145.7 kB / 4.825 GB, free: 68.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.4e-05/6.578, allocations: 56.27 kB / 4.825 GB, free: 68.34 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 () * 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%) 3,(1,100.0%) 3,(1,100.0%) 7,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001884/6.578, allocations: 150.6 kB / 4.826 GB, free: 68.23 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008488/6.579, allocations: 374.8 kB / 4.826 GB, free: 68.17 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004341/6.583, allocations: 3.825 MB / 4.83 GB, free: 67.82 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/6.583, allocations: 41.8 kB / 4.83 GB, free: 67.82 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/6.583, allocations: 3.906 kB / 4.83 GB, free: 67.82 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/6.583, allocations: 7.359 kB / 4.83 GB, free: 67.82 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005894/6.589, allocations: 5.69 MB / 4.835 GB, free: 67.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/6.589, allocations: 0 / 4.835 GB, free: 67.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009092/6.59, allocations: 238.9 kB / 4.835 GB, free: 67.32 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007191/6.591, allocations: 417.6 kB / 4.836 GB, free: 67.26 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.663e-05/6.591, allocations: 32.36 kB / 4.836 GB, free: 67.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003423/6.594, allocations: 6.454 MB / 4.842 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/6.594, allocations: 5.094 kB / 4.842 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005118/6.6, allocations: 4.181 MB / 4.846 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000389/6.6, allocations: 410.5 kB / 4.847 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/6.6, allocations: 9.625 kB / 4.847 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008408/6.601, allocations: 110.7 kB / 4.847 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/6.601, allocations: 110.4 kB / 4.847 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.782e-05/6.601, allocations: 56.12 kB / 4.847 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004055/6.602, allocations: 487.5 kB / 4.847 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.004337/6.606, allocations: 1.793 MB / 4.849 GB, free: 61.09 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: 26 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse24.phase,$cse24.region,$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 (136): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004359/6.61, allocations: 2.451 MB / 4.852 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003609/6.614, allocations: 3.703 MB / 4.855 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/6.614, allocations: 0 / 4.855 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001729/6.616, allocations: 2.124 MB / 4.857 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/6.617, allocations: 391.5 kB / 4.858 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004984/6.622, allocations: 3.643 MB / 4.861 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009469/6.623, allocations: 1.583 MB / 4.863 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of SimCode: time 2.5e-07/6.623, allocations: 0 / 4.863 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of Templates: time 0.06507/6.688, allocations: 62.47 MB / 4.924 GB, free: 54.31 MB / 0.6042 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)