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: "" <> buildModelFMU(ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso,fileNamePrefix="ThermofluidStream_OM_adaptions_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 3.2.3+maint.om/package.mo): time 0.002175/0.002175, allocations: 187 kB / 7.46 MB, free: 2.52 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.9868/0.9868, 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.0008042/0.0008042, allocations: 87.66 kB / 261.1 MB, free: 13.55 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.5099/0.5099, allocations: 90.34 MB / 399.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1204/0.6303, allocations: 72.4 MB / 471.8 MB, free: 3.738 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.8873, allocations: 66.25 MB / 0.5254 GB, free: 28.89 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.029/5.916, allocations: 3.574 GB / 4.1 GB, free: 129.4 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/5.916, allocations: 82.91 kB / 4.1 GB, free: 129.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 1.499/7.416, allocations: 0.6458 GB / 4.746 GB, free: 7.559 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 2.713e-05/7.416, allocations: 8.5 kB / 4.746 GB, free: 7.551 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/7.417, allocations: 361.4 kB / 4.746 GB, free: 7.195 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/7.418, allocations: 0.951 MB / 4.747 GB, free: 6.23 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.322e-05/7.418, allocations: 55.91 kB / 4.747 GB, free: 6.176 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/7.418, allocations: 99.98 kB / 4.747 GB, free: 6.078 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001766/7.42, allocations: 1.224 MB / 4.748 GB, free: 4.852 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001863/7.422, allocations: 1.417 MB / 4.75 GB, free: 3.367 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/7.422, allocations: 3.938 kB / 4.75 GB, free: 3.363 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/7.422, allocations: 4 kB / 4.75 GB, free: 3.359 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.017e-05/7.422, allocations: 62.86 kB / 4.75 GB, free: 3.297 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007075/7.429, allocations: 7.854 MB / 4.758 GB, free: 10.73 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009949/7.43, allocations: 0.6485 MB / 4.758 GB, free: 10.08 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007879/7.431, allocations: 0.5444 MB / 4.759 GB, free: 9.539 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2584/7.689, allocations: 45.11 MB / 4.803 GB, free: 79.57 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/7.691, allocations: 0.6017 MB / 4.803 GB, free: 79.51 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=135): time 3.116e-06/7.691, allocations: 3.094 kB / 4.803 GB, free: 79.51 MB / 0.6042 GB Notification: Performance of matching and sorting (n=135): time 0.004179/7.695, allocations: 1.594 MB / 4.805 GB, free: 79.41 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/7.695, allocations: 129.5 kB / 4.805 GB, free: 79.28 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000915/7.696, allocations: 0.6374 MB / 4.806 GB, free: 79.14 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001067/7.696, allocations: 28.64 kB / 4.806 GB, free: 79.11 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000368/7.696, allocations: 0.4958 MB / 4.806 GB, free: 78.96 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/7.697, allocations: 442.4 kB / 4.807 GB, free: 78.73 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.755e-05/7.697, allocations: 0 / 4.807 GB, free: 78.73 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.352e-05/7.697, allocations: 362.2 kB / 4.807 GB, free: 78.42 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006341/7.697, allocations: 424.2 kB / 4.807 GB, free: 78.42 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007302/7.698, allocations: 0.6346 MB / 4.808 GB, free: 78.21 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/7.699, allocations: 0.5213 MB / 4.808 GB, free: 78.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/7.699, allocations: 0 / 4.808 GB, free: 78.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.003588/7.703, allocations: 1.701 MB / 4.81 GB, free: 78.04 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002732/7.703, allocations: 1.749 MB / 4.812 GB, free: 76.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/7.703, allocations: 2.844 kB / 4.812 GB, free: 76.22 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005753/7.704, allocations: 192.7 kB / 4.812 GB, free: 76.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/7.705, allocations: 306.6 kB / 4.812 GB, free: 76.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00345/7.709, allocations: 5.654 MB / 4.818 GB, free: 71.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/7.71, allocations: 168.1 kB / 4.818 GB, free: 71.37 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/7.71, allocations: 57.66 kB / 4.818 GB, free: 71.37 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.139e-06/7.71, allocations: 3.438 kB / 4.818 GB, free: 71.37 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00258/7.712, allocations: 1.29 MB / 4.819 GB, free: 71.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/7.712, allocations: 8.844 kB / 4.819 GB, free: 71.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004869/7.713, allocations: 200 kB / 4.819 GB, free: 71.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/7.714, allocations: 292.5 kB / 4.82 GB, free: 71.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003225/7.717, allocations: 5.656 MB / 4.825 GB, free: 66.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/7.718, allocations: 147.6 kB / 4.825 GB, free: 66.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/7.718, allocations: 53.69 kB / 4.825 GB, free: 66.45 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.0002606/7.719, allocations: 144.2 kB / 4.826 GB, free: 66.34 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009282/7.72, allocations: 378.5 kB / 4.826 GB, free: 66.27 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004737/7.724, allocations: 3.824 MB / 4.83 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/7.724, allocations: 43.66 kB / 4.83 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/7.724, allocations: 3.938 kB / 4.83 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/7.724, allocations: 7.5 kB / 4.83 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006598/7.731, allocations: 5.688 MB / 4.835 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/7.731, allocations: 0 / 4.835 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009399/7.732, allocations: 233 kB / 4.836 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007328/7.733, allocations: 425.9 kB / 4.836 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.68e-05/7.733, allocations: 28.44 kB / 4.836 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003659/7.737, allocations: 6.452 MB / 4.842 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/7.737, allocations: 1.75 kB / 4.842 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005434/7.742, allocations: 4.189 MB / 4.846 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006821/7.749, allocations: 5.708 MB / 4.852 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005029/7.749, allocations: 403.9 kB / 4.852 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/7.75, allocations: 7.719 kB / 4.852 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009292/7.751, allocations: 117.3 kB / 4.852 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/7.751, allocations: 116 kB / 4.853 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.26e-05/7.751, allocations: 55.2 kB / 4.853 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004619/7.751, allocations: 477.8 kB / 4.853 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.006835/7.758, allocations: 2.201 MB / 4.855 GB, free: 58.33 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.007719/7.766, allocations: 2.455 MB / 4.858 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.004068/7.77, allocations: 3.7 MB / 4.861 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/7.77, allocations: 3.391 kB / 4.861 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00186/7.772, allocations: 2.116 MB / 4.863 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001671/7.773, allocations: 390.8 kB / 4.864 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005705/7.779, allocations: 3.641 MB / 4.867 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/7.78, allocations: 1.612 MB / 4.869 GB, free: 55.18 MB / 0.6042 GB Notification: Performance of SimCode: time 3.51e-07/7.78, allocations: 0.6562 kB / 4.869 GB, free: 55.18 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso_fmu --startTime=0 --stopTime=1000 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe 2>&1)