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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.01072/0.01072, allocations: 178.3 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.673/2.673, allocations: 221.4 MB / 229.3 MB, free: 3.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 98.58 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01994/0.01994, allocations: 1.562 MB / 332.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 1.309/1.309, allocations: 90.05 MB / 473.7 MB, free: 7.254 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5852/1.894, allocations: 76.21 MB / 0.537 GB, free: 14.22 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/2.235, allocations: 69.36 MB / 0.6047 GB, free: 8.762 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 17.43/19.66, allocations: 3.794 GB / 4.399 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004538/19.66, allocations: 89.88 kB / 4.399 GB, free: 122 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 3.614/23.28, allocations: 0.6538 GB / 5.053 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/23.28, allocations: 6.281 kB / 5.053 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002699/23.28, allocations: 354.2 kB / 5.053 GB, free: 55.2 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00263/23.28, allocations: 0.9397 MB / 5.054 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/23.28, allocations: 62.58 kB / 5.054 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003226/23.28, allocations: 95.34 kB / 5.054 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002768/23.29, allocations: 1.221 MB / 5.055 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002647/23.29, allocations: 1.418 MB / 5.057 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.841e-05/23.29, allocations: 0 / 5.057 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/23.29, allocations: 7.781 kB / 5.057 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/23.29, allocations: 63.34 kB / 5.057 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01048/23.3, allocations: 7.865 MB / 5.064 GB, free: 49.68 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/23.3, allocations: 0.6505 MB / 5.065 GB, free: 49.66 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008793/23.3, allocations: 0.5424 MB / 5.065 GB, free: 49.66 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09715/23.4, allocations: 45.13 MB / 5.11 GB, free: 23.92 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001494/23.4, allocations: 0.5929 MB / 5.11 GB, free: 23.86 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=135): time 3.807e-06/23.4, allocations: 0.6562 kB / 5.11 GB, free: 23.86 MB / 0.6042 GB Notification: Performance of matching and sorting (n=135): time 0.0047/23.41, allocations: 1.604 MB / 5.112 GB, free: 23.68 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/23.41, allocations: 116.6 kB / 5.112 GB, free: 23.55 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/23.41, allocations: 0.6331 MB / 5.112 GB, free: 23.41 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001397/23.41, allocations: 29.33 kB / 5.112 GB, free: 23.38 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004484/23.41, allocations: 0.5023 MB / 5.113 GB, free: 23.07 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.000401/23.41, allocations: 442.8 kB / 5.113 GB, free: 22.78 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.091e-05/23.41, allocations: 0 / 5.113 GB, free: 22.78 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001162/23.41, allocations: 360.9 kB / 5.114 GB, free: 22.47 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007076/23.41, allocations: 426.6 kB / 5.114 GB, free: 22.46 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009054/23.41, allocations: 0.6313 MB / 5.115 GB, free: 22.26 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/23.41, allocations: 0.5168 MB / 5.115 GB, free: 22.24 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/23.41, allocations: 0 / 5.115 GB, free: 22.24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.004403/23.42, allocations: 1.704 MB / 5.117 GB, free: 22.07 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.000452/23.42, allocations: 1.748 MB / 5.119 GB, free: 20.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/23.42, allocations: 11.47 kB / 5.119 GB, free: 20.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007021/23.42, allocations: 186.3 kB / 5.119 GB, free: 20.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/23.42, allocations: 315.2 kB / 5.119 GB, free: 20.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005698/23.43, allocations: 5.651 MB / 5.125 GB, free: 31.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/23.43, allocations: 165.1 kB / 5.125 GB, free: 31.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/23.43, allocations: 59.38 kB / 5.125 GB, free: 31.29 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.417e-06/23.43, allocations: 6.406 kB / 5.125 GB, free: 31.29 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003348/23.43, allocations: 1.293 MB / 5.126 GB, free: 31.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/23.43, allocations: 7.969 kB / 5.126 GB, free: 31.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006765/23.43, allocations: 197.3 kB / 5.126 GB, free: 31.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/23.43, allocations: 293.6 kB / 5.127 GB, free: 31.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005372/23.44, allocations: 5.645 MB / 5.132 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/23.44, allocations: 136.5 kB / 5.132 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/23.44, allocations: 60.95 kB / 5.132 GB, free: 26.3 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%) 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.0005085/23.44, allocations: 151.2 kB / 5.132 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001395/23.44, allocations: 372.2 kB / 5.133 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006123/23.45, allocations: 3.835 MB / 5.136 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.585e-05/23.45, allocations: 41.58 kB / 5.137 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/23.45, allocations: 7.75 kB / 5.137 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/23.45, allocations: 7.453 kB / 5.137 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008481/23.46, allocations: 5.676 MB / 5.142 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/23.46, allocations: 0 / 5.142 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/23.46, allocations: 243.8 kB / 5.142 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008951/23.46, allocations: 409.5 kB / 5.143 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/23.46, allocations: 30.09 kB / 5.143 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006225/23.47, allocations: 6.461 MB / 5.149 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.405e-05/23.47, allocations: 11.05 kB / 5.149 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008135/23.47, allocations: 4.173 MB / 5.153 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01091/23.48, allocations: 5.71 MB / 5.159 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001341/23.49, allocations: 408.6 kB / 5.159 GB, free: 18.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/23.49, allocations: 7.312 kB / 5.159 GB, free: 18.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/23.49, allocations: 110.7 kB / 5.159 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/23.49, allocations: 113.7 kB / 5.159 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/23.49, allocations: 52.09 kB / 5.159 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0009423/23.49, allocations: 476 kB / 5.16 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0123/23.5, allocations: 2.205 MB / 5.162 GB, free: 17.74 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: 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.01298/23.51, allocations: 2.457 MB / 5.164 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00802/23.52, allocations: 3.689 MB / 5.168 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/23.52, allocations: 1.156 kB / 5.168 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.004049/23.53, allocations: 2.143 MB / 5.17 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003064/23.53, allocations: 379.6 kB / 5.17 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009362/23.54, allocations: 3.64 MB / 5.174 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001896/23.54, allocations: 1.602 MB / 5.176 GB, free: 13.17 MB / 0.6198 GB Notification: Performance of SimCode: time 8.82e-07/23.54, allocations: 0 / 5.176 GB, free: 13.17 MB / 0.6198 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso_fmu --startTime=0 --stopTime=1000 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso.fmu > ThermofluidStream_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe 2>&1)