Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.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.Boundaries.Tests.DynamicBoundaries,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_DynamicBoundaries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_DynamicBoundaries",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.002048/0.002048, allocations: 179.6 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.033/1.033, allocations: 221.4 MB / 229.3 MB, free: 3 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.000994/0.0009939, allocations: 94.92 kB / 280.1 MB, free: 1.23 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.008501/0.008501, allocations: 1.573 MB / 332.5 MB, free: 12.86 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.4177/0.4177, allocations: 90.05 MB / 473.7 MB, free: 7.25 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1982/0.6159, allocations: 76.2 MB / 0.537 GB, free: 14.23 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.726, allocations: 69.36 MB / 0.6047 GB, free: 8.781 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.059/5.785, allocations: 3.773 GB / 4.378 GB, free: 129 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001756/5.785, allocations: 83.39 kB / 4.378 GB, free: 129 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: 602 * Number of variables: 602 Notification: Performance of Generate backend data structure: time 3.485/9.27, allocations: 1.513 GB / 5.891 GB, free: 34.11 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/9.27, allocations: 10.75 kB / 5.891 GB, free: 34.11 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002381/9.272, allocations: 0.5423 MB / 5.892 GB, free: 33.96 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001884/9.274, allocations: 1.243 MB / 5.893 GB, free: 33.55 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.203e-05/9.274, allocations: 72.44 kB / 5.893 GB, free: 33.55 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002814/9.275, allocations: 143.9 kB / 5.893 GB, free: 33.55 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002645/9.277, allocations: 1.721 MB / 5.895 GB, free: 33.54 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002745/9.28, allocations: 2.063 MB / 5.897 GB, free: 33.27 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.338e-05/9.28, allocations: 6.406 kB / 5.897 GB, free: 33.27 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/9.28, allocations: 0 / 5.897 GB, free: 33.27 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-05/9.28, allocations: 64.41 kB / 5.897 GB, free: 33.27 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009276/9.29, allocations: 12.25 MB / 5.909 GB, free: 25.13 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/9.291, allocations: 0.9414 MB / 5.91 GB, free: 25.02 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/9.292, allocations: 0.979 MB / 5.911 GB, free: 24.97 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05365/9.345, allocations: 32.37 MB / 5.942 GB, free: 21.07 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/9.346, allocations: 70.3 kB / 5.942 GB, free: 21.03 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=226): time 3.546e-06/9.346, allocations: 0 / 5.942 GB, free: 21.03 MB / 0.6823 GB Notification: Performance of matching and sorting (n=226): time 0.007616/9.353, allocations: 3.017 MB / 5.945 GB, free: 20.77 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/9.353, allocations: 207.1 kB / 5.945 GB, free: 20.55 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008274/9.354, allocations: 0.7845 MB / 5.946 GB, free: 20.4 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001063/9.354, allocations: 28.33 kB / 5.946 GB, free: 20.37 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/9.354, allocations: 0.6514 MB / 5.947 GB, free: 19.99 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/9.355, allocations: 0.7241 MB / 5.948 GB, free: 19.5 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-05/9.355, allocations: 0 / 5.948 GB, free: 19.5 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001249/9.355, allocations: 385.9 kB / 5.948 GB, free: 19.19 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009247/9.356, allocations: 0.6421 MB / 5.949 GB, free: 19.18 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/9.357, allocations: 0.8716 MB / 5.949 GB, free: 18.98 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003234/9.36, allocations: 1.106 MB / 5.95 GB, free: 18.93 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/9.36, allocations: 3.656 kB / 5.95 GB, free: 18.93 MB / 0.6823 GB Notification: Performance of matching and sorting (n=250) (initialization): time 0.007137/9.367, allocations: 3.143 MB / 5.954 GB, free: 18.66 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/9.367, allocations: 3.156 kB / 5.954 GB, free: 18.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/9.367, allocations: 6.25 kB / 5.954 GB, free: 18.66 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007787/9.368, allocations: 292.4 kB / 5.954 GB, free: 18.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/9.37, allocations: 382.6 kB / 5.954 GB, free: 18.58 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00573/9.375, allocations: 8.427 MB / 5.962 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/9.377, allocations: 176.2 kB / 5.963 GB, free: 11.21 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001576/9.377, allocations: 86.2 kB / 5.963 GB, free: 11.21 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 24 (dynamicPressureInflow1.inlet.state.phase,dynamicPressureInflow.inlet.state.phase,dynamicPressureInflow2.inlet.state.phase,dynamicPressureInflow3.inlet.state.phase,dynamicPressureInflow4.inlet.state.phase,dynamicPressureInflow5.inlet.state.phase,dynamicPressureInflow5.outlet.state.phase,flowResistance5.outlet.state.phase,dynamicPressureOutflow5.outlet.state.phase,dynamicPressureInflow4.outlet.state.phase,flowResistance4.outlet.state.phase,dynamicPressureOutflow4.outlet.state.phase,dynamicPressureInflow3.outlet.state.phase,flowResistance3.outlet.state.phase,dynamicPressureOutflow3.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,flowResistance2.outlet.state.phase,dynamicPressureOutflow2.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,dynamicPressureInflow1.outlet.state.phase,flowResistance1.outlet.state.phase,dynamicPressureOutflow1.outlet.state.phase,flowResistance.outlet.state.phase,dynamicPressureOutflow.outlet.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002698/9.377, allocations: 151.4 kB / 5.963 GB, free: 11.08 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001913/9.379, allocations: 0.7625 MB / 5.964 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009103/9.388, allocations: 7.161 MB / 5.971 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.896e-05/9.388, allocations: 77.92 kB / 5.971 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/9.388, allocations: 7.312 kB / 5.971 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/9.388, allocations: 14.3 kB / 5.971 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01285/9.401, allocations: 10.29 MB / 5.981 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/9.401, allocations: 2.281 kB / 5.981 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/9.402, allocations: 338.3 kB / 5.981 GB, free: 9.176 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008062/9.403, allocations: 303.8 kB / 5.981 GB, free: 9.117 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/9.403, allocations: 57.2 kB / 5.981 GB, free: 9.117 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006043/9.409, allocations: 8.417 MB / 5.99 GB, free: 17.86 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/9.409, allocations: 6.531 kB / 5.99 GB, free: 17.85 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01148/9.421, allocations: 8.035 MB / 5.997 GB, free: 16.5 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01394/9.435, allocations: 10.48 MB / 6.008 GB, free: 8.855 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004342/9.435, allocations: 335.1 kB / 6.008 GB, free: 8.512 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002771/9.435, allocations: 9.641 kB / 6.008 GB, free: 8.504 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/9.437, allocations: 115.2 kB / 6.008 GB, free: 8.406 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/9.437, allocations: 147.6 kB / 6.008 GB, free: 8.32 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/9.437, allocations: 90.53 kB / 6.008 GB, free: 8.246 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0006596/9.438, allocations: 0.5682 MB / 6.009 GB, free: 7.723 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.006836/9.445, allocations: 2.188 MB / 6.011 GB, free: 5.57 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (dynamicPressureOutflow5.inlet.m_flow,dynamicPressureOutflow4.inlet.m_flow,dynamicPressureOutflow3.inlet.m_flow,dynamicPressureOutflow2.inlet.m_flow,dynamicPressureOutflow.inlet.m_flow,dynamicPressureOutflow1.inlet.m_flow) * Number of discrete variables: 42 ($cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,dynamicPressureInflow5.inlet.state.phase,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,dynamicPressureInflow4.inlet.state.phase,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,dynamicPressureInflow3.inlet.state.phase,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,dynamicPressureInflow2.inlet.state.phase,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,dynamicPressureInflow.inlet.state.phase,$cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,dynamicPressureInflow1.inlet.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 172 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008289/9.453, allocations: 4.061 MB / 6.015 GB, free: 2.441 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.004739/9.458, allocations: 4.204 MB / 6.019 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/9.458, allocations: 0 / 6.019 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.003669/9.461, allocations: 3.821 MB / 6.023 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/9.464, allocations: 0.6133 MB / 6.023 GB, free: 10.17 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009673/9.474, allocations: 5.96 MB / 6.029 GB, free: 4.758 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/9.476, allocations: 2.104 MB / 6.031 GB, free: 3.074 MB / 0.7136 GB Notification: Performance of SimCode: time 3.61e-07/9.476, allocations: 0 / 6.031 GB, free: 3.074 MB / 0.7136 GB (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_DynamicBoundaries_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_DynamicBoundaries.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe 2>&1)