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.001043/0.001043, allocations: 96.14 kB / 16.03 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 185.1 kB / 16.92 MB, free: 6.75 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.315/1.315, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6133/0.6133, allocations: 89.64 MB / 381.7 MB, free: 11.35 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 10.75 kB / 461.3 MB, free: 24.26 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1029, allocations: 68.84 MB / 0.5177 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4261/0.529, allocations: 221.7 MB / 0.7342 GB, free: 13.35 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02785/0.5569, allocations: 24.96 MB / 0.7586 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002299/0.5593, allocations: 35.88 kB / 0.7586 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003996/0.5633, allocations: 1.489 MB / 0.7601 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006461/0.5698, allocations: 2.343 MB / 0.7624 GB, free: 436 kB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005031/0.5748, allocations: 1.648 MB / 0.764 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006529/0.5814, allocations: 4.557 MB / 0.7684 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002398/0.5838, allocations: 0.9846 MB / 0.7694 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00298/0.5868, allocations: 1.198 MB / 0.7705 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003031/0.5899, allocations: 1.864 MB / 0.7724 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005498/0.5904, allocations: 104 kB / 0.7725 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006617/0.5971, allocations: 3.158 MB / 0.7755 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006514/0.5978, allocations: 421.9 kB / 0.7759 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001961/0.5997, allocations: 1.21 MB / 0.7771 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00485/0.6046, allocations: 3.328 MB / 0.7804 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.6046, allocations: 0 / 0.7804 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.433e-06/0.6046, allocations: 0 / 0.7804 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001051/0.6047, allocations: 0 / 0.7804 GB, free: 13.86 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.00655/0.6113, allocations: 2.645 MB / 0.783 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.6113, allocations: 8.031 kB / 0.783 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006622/0.612, allocations: 261.8 kB / 0.7832 GB, free: 10.87 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.6142, allocations: 1.251 MB / 0.7844 GB, free: 9.566 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.6143, allocations: 152.2 kB / 0.7846 GB, free: 9.418 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004402/0.6148, allocations: 204.2 kB / 0.7848 GB, free: 9.219 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004545/0.6193, allocations: 2.356 MB / 0.7871 GB, free: 6.836 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.173e-05/0.6194, allocations: 0 / 0.7871 GB, free: 6.836 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002003/0.6196, allocations: 76 kB / 0.7872 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-05/0.6197, allocations: 74.69 kB / 0.7872 GB, free: 6.688 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004167/0.6239, allocations: 2.257 MB / 0.7894 GB, free: 4.426 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/0.6371, allocations: 10.22 MB / 0.7994 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003477/0.6406, allocations: 1.93 MB / 0.8013 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001959/0.6426, allocations: 1.069 MB / 0.8023 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2258/0.8684, allocations: 6.596 MB / 0.8088 GB, free: 227.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002279/0.8707, allocations: 1.079 MB / 0.8098 GB, free: 227 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=193): time 6.692e-06/0.8708, allocations: 0.875 kB / 0.8098 GB, free: 227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=198): time 0.01267/0.8835, allocations: 6.451 MB / 0.8161 GB, free: 224 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.8835, allocations: 104.3 kB / 0.8162 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.885, allocations: 1.129 MB / 0.8173 GB, free: 223.4 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.8852, allocations: 58.48 kB / 0.8174 GB, free: 223.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005009/0.8857, allocations: 0.7912 MB / 0.8182 GB, free: 222.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000429/0.8861, allocations: 0.6515 MB / 0.8188 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.8863, allocations: 140.3 kB / 0.8189 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 3.528e-05/0.8864, allocations: 305.1 kB / 0.8192 GB, free: 221.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.8876, allocations: 0.6946 MB / 0.8199 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.8889, allocations: 0.8583 MB / 0.8207 GB, free: 221.2 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007072/0.896, allocations: 2.727 MB / 0.8234 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.8961, allocations: 0 / 0.8234 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004759/0.9008, allocations: 2.441 MB / 0.8258 GB, free: 219 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.246e-05/0.9009, allocations: 57.67 kB / 0.8258 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.9009, allocations: 6.641 kB / 0.8259 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.9024, allocations: 465.6 kB / 0.8263 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.9037, allocations: 325.8 kB / 0.8266 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007301/0.9111, allocations: 5.958 MB / 0.8324 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.9127, allocations: 134.7 kB / 0.8326 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/0.9129, allocations: 71.34 kB / 0.8326 GB, free: 214.3 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.0008779/0.9138, allocations: 463.5 kB / 0.8331 GB, free: 214 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.9141, allocations: 165.3 kB / 0.8332 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005671/0.9197, allocations: 3.134 MB / 0.8363 GB, free: 212.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.9198, allocations: 20.47 kB / 0.8363 GB, free: 212.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.9198, allocations: 6.875 kB / 0.8363 GB, free: 212.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-05/0.9198, allocations: 20.62 kB / 0.8363 GB, free: 212.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007923/0.9278, allocations: 5.181 MB / 0.8414 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.9278, allocations: 2.781 kB / 0.8414 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.929, allocations: 320 kB / 0.8417 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/0.9303, allocations: 491.2 kB / 0.8422 GB, free: 210 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/0.9305, allocations: 70.06 kB / 0.8422 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005971/0.9365, allocations: 5.966 MB / 0.8481 GB, free: 205.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.9365, allocations: 7.312 kB / 0.8481 GB, free: 205.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005573/0.9421, allocations: 3.68 MB / 0.8517 GB, free: 203.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000845/0.9429, allocations: 481.6 kB / 0.8521 GB, free: 202.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/0.9432, allocations: 43.91 kB / 0.8522 GB, free: 202.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.9443, allocations: 133.4 kB / 0.8523 GB, free: 202.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003171/0.9447, allocations: 173.8 kB / 0.8525 GB, free: 202.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.9448, allocations: 81.77 kB / 0.8525 GB, free: 202.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0009811/0.9458, allocations: 0.8297 MB / 0.8533 GB, free: 202.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9458, allocations: 0 / 0.8533 GB, free: 202.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002116/0.9479, allocations: 0.8841 MB / 0.8542 GB, free: 202 MB / 0.6075 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.001223/0.9491, allocations: 0.9726 MB / 0.8552 GB, free: 201.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003692/0.9528, allocations: 2.442 MB / 0.8575 GB, free: 199.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.9529, allocations: 448 / 0.8575 GB, free: 199.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00223/0.9551, allocations: 1.533 MB / 0.859 GB, free: 198.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003207/0.9583, allocations: 0.593 MB / 0.8596 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005906/0.9642, allocations: 5.075 MB / 0.8646 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007363/0.965, allocations: 1.486 MB / 0.866 GB, free: 190.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006378/0.9656, allocations: 187.3 kB / 0.8662 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of SimCode: time 6.81e-07/0.9657, allocations: 0 / 0.8662 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of Templates: time 0.04626/1.012, allocations: 55.64 MB / 0.9205 GB, free: 135.1 MB / 0.6075 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 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)