Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.conf.json 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/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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 104.7 kB / 16.35 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 193.2 kB / 17.29 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6672/0.6672, allocations: 89.51 MB / 380.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 83.84 kB / 459.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1165, allocations: 67.3 MB / 0.5146 GB, free: 7.191 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4077/0.5242, allocations: 224.7 MB / 0.7341 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3092/0.8334, allocations: 24.88 MB / 0.7584 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002835/0.8363, allocations: 34.41 kB / 0.7584 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004789/0.8411, allocations: 1.647 MB / 0.76 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007158/0.8484, allocations: 2.526 MB / 0.7625 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005652/0.8541, allocations: 1.908 MB / 0.7643 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00595/0.86, allocations: 3.815 MB / 0.7681 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002053/0.8621, allocations: 1.103 MB / 0.7691 GB, free: 16.76 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003425/0.8655, allocations: 1.524 MB / 0.7706 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004252/0.8698, allocations: 2.071 MB / 0.7727 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0007359/0.8706, allocations: 315.2 kB / 0.773 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009225/0.8798, allocations: 3.363 MB / 0.7762 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001308/0.8812, allocations: 0.6427 MB / 0.7769 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003429/0.8846, allocations: 1.429 MB / 0.7783 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.8962, allocations: 4.544 MB / 0.7827 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8963, allocations: 2.281 kB / 0.7827 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.964e-06/0.8963, allocations: 0 / 0.7827 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.839e-05/0.8964, allocations: 0.9062 kB / 0.7827 GB, free: 15.87 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.008246/0.9046, allocations: 3.067 MB / 0.7857 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.9047, allocations: 9.469 kB / 0.7857 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006778/0.9054, allocations: 266 kB / 0.786 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.9074, allocations: 1.244 MB / 0.7872 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-05/0.9075, allocations: 142.7 kB / 0.7873 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003047/0.9078, allocations: 206.8 kB / 0.7875 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003968/0.9117, allocations: 2.343 MB / 0.7898 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.872e-05/0.9118, allocations: 0 / 0.7898 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001752/0.912, allocations: 80.59 kB / 0.7899 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.855e-05/0.9121, allocations: 76.92 kB / 0.79 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003516/0.9156, allocations: 2.239 MB / 0.7921 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01189/0.9275, allocations: 10.14 MB / 0.802 GB, free: 8.434 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/0.9304, allocations: 1.916 MB / 0.8039 GB, free: 8.348 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.9319, allocations: 1.054 MB / 0.8049 GB, free: 8.328 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006927/0.9389, allocations: 6.602 MB / 0.8114 GB, free: 3.793 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001663/0.9405, allocations: 1.068 MB / 0.8124 GB, free: 3.699 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=193): time 3.377e-06/0.9406, allocations: 0 / 0.8124 GB, free: 3.699 MB / 0.5919 GB Notification: Performance of matching and sorting (n=198): time 0.01196/0.9525, allocations: 6.385 MB / 0.8187 GB, free: 1.637 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.9526, allocations: 111.4 kB / 0.8188 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001389/0.954, allocations: 1.126 MB / 0.8199 GB, free: 1.234 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.9542, allocations: 61.39 kB / 0.8199 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005713/0.9547, allocations: 0.7861 MB / 0.8207 GB, free: 0.8086 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004816/0.9552, allocations: 0.6584 MB / 0.8213 GB, free: 332 kB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004609/0.9557, allocations: 297.9 kB / 0.8216 GB, free: 260 kB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.474e-05/0.9558, allocations: 305.1 kB / 0.8219 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.9571, allocations: 0.6899 MB / 0.8226 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.9585, allocations: 0.8451 MB / 0.8234 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006706/0.9652, allocations: 2.566 MB / 0.8259 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.9652, allocations: 2.406 kB / 0.8259 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004701/0.9699, allocations: 2.416 MB / 0.8283 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.589e-05/0.97, allocations: 63.39 kB / 0.8283 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.97, allocations: 4.781 kB / 0.8284 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.9714, allocations: 470.9 kB / 0.8288 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/0.9728, allocations: 320.4 kB / 0.8291 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008053/0.9808, allocations: 6.454 MB / 0.8354 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/0.9825, allocations: 69.89 kB / 0.8355 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001919/0.9827, allocations: 67.97 kB / 0.8355 GB, free: 4.23 MB / 0.6075 GB Warning: Assuming fixed start value for the following 1 variables: flowResistance2.inlet.m_flow:VARIABLE(flow=true unit = "kg/s" fixed = true ) "Mass flow rate" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1,pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (173): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,10,100.0%), (4,28,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009624/0.9837, allocations: 460.7 kB / 0.836 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003497/0.984, allocations: 165.9 kB / 0.8361 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005613/0.9897, allocations: 3.117 MB / 0.8392 GB, free: 0.5586 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.9897, allocations: 20.09 kB / 0.8392 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.9897, allocations: 11.98 kB / 0.8392 GB, free: 0.5273 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.9897, allocations: 7.969 kB / 0.8392 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00849/0.9982, allocations: 5.141 MB / 0.8442 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.9983, allocations: 4 kB / 0.8442 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.9995, allocations: 311.7 kB / 0.8445 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/1.001, allocations: 489.1 kB / 0.845 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001657/1.001, allocations: 64.64 kB / 0.8451 GB, free: 10.53 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007543/1.009, allocations: 6.481 MB / 0.8514 GB, free: 3.805 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.009, allocations: 4.062 kB / 0.8514 GB, free: 3.801 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00643/1.015, allocations: 3.643 MB / 0.855 GB, free: 144 kB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/1.016, allocations: 466.7 kB / 0.8554 GB, free: 15.66 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000291/1.017, allocations: 47.98 kB / 0.8555 GB, free: 15.62 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/1.018, allocations: 63.91 kB / 0.8555 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003751/1.018, allocations: 176.1 kB / 0.8557 GB, free: 15.39 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/1.018, allocations: 75.95 kB / 0.8558 GB, free: 15.31 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001103/1.019, allocations: 0.8298 MB / 0.8566 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.61e-07/1.019, allocations: 0 / 0.8566 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002564/1.022, allocations: 0.8863 MB / 0.8574 GB, free: 13.59 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (switch.tanValve.outlet.m_flow,flowResistance2.inlet.m_flow,fourWaySwitch.switch.tanValve.outlet.m_flow,fourWaySwitch.switch1.tanValve.outlet.m_flow,flowResistance3.inlet.m_flow,flowResistance6.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,pulse.T_start,pulse.count,$whenCondition2,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 (170): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,10,100.0%), (4,28,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001522/1.023, allocations: 0.9241 MB / 0.8583 GB, free: 12.76 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004246/1.028, allocations: 2.423 MB / 0.8607 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.028, allocations: 4.062 kB / 0.8607 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002704/1.03, allocations: 1.537 MB / 0.8622 GB, free: 8.801 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002885/1.033, allocations: 0.6431 MB / 0.8628 GB, free: 8.223 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006428/1.04, allocations: 3.958 MB / 0.8667 GB, free: 4.242 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/1.041, allocations: 1.486 MB / 0.8681 GB, free: 2.719 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001493/1.042, allocations: 402.5 kB / 0.8685 GB, free: 2.355 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000477/1.043, allocations: 171.4 kB / 0.8687 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of SimCode: time 9.02e-07/1.043, allocations: 0 / 0.8687 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of Templates: time 0.06599/1.109, allocations: 44.78 MB / 0.9124 GB, free: 5.996 MB / 0.6856 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -s cvode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)