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.001583/0.001584, allocations: 100.1 kB / 15.88 MB, free: 12 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.001939/0.001939, allocations: 199.9 kB / 16.8 MB, free: 6.828 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.293/1.293, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6166/0.6166, allocations: 89.52 MB / 380.1 MB, free: 11.26 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 71.53 kB / 458.2 MB, free: 23.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1042, allocations: 67.32 MB / 0.5132 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4205/0.5247, allocations: 224.7 MB / 0.7327 GB, free: 2.785 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02645/0.5512, allocations: 25.3 MB / 0.7574 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002531/0.5538, allocations: 31.94 kB / 0.7574 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003912/0.5577, allocations: 1.485 MB / 0.7589 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006117/0.5639, allocations: 2.339 MB / 0.7611 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004252/0.5682, allocations: 1.667 MB / 0.7628 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004659/0.5728, allocations: 4.553 MB / 0.7672 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001316/0.5742, allocations: 1 MB / 0.7682 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.5762, allocations: 1.327 MB / 0.7695 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002601/0.5788, allocations: 2.012 MB / 0.7714 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003883/0.5792, allocations: 176 kB / 0.7716 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006481/0.5857, allocations: 3.228 MB / 0.7748 GB, free: 7.48 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004971/0.5862, allocations: 0.5019 MB / 0.7753 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001482/0.5877, allocations: 1.295 MB / 0.7765 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004011/0.5917, allocations: 3.411 MB / 0.7799 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.5917, allocations: 0 / 0.7799 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of FrontEnd: time 9.62e-07/0.5918, allocations: 0 / 0.7799 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.87e-05/0.5918, allocations: 0 / 0.7799 GB, free: 2.258 MB / 0.5762 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.006228/0.598, allocations: 3.081 MB / 0.7829 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.5981, allocations: 8.031 kB / 0.7829 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000452/0.5985, allocations: 257.8 kB / 0.7831 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.6002, allocations: 1.251 MB / 0.7843 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.931e-05/0.6003, allocations: 148.2 kB / 0.7845 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.6006, allocations: 200.2 kB / 0.7847 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003742/0.6043, allocations: 2.34 MB / 0.787 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.6044, allocations: 4 kB / 0.787 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001659/0.6046, allocations: 76 kB / 0.787 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.099e-05/0.6046, allocations: 74.69 kB / 0.7871 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003667/0.6083, allocations: 2.241 MB / 0.7893 GB, free: 8.43 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01157/0.6199, allocations: 10.17 MB / 0.7992 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003109/0.623, allocations: 1.911 MB / 0.8011 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00171/0.6248, allocations: 1.065 MB / 0.8021 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006926/0.6317, allocations: 6.618 MB / 0.8086 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001761/0.6335, allocations: 1.06 MB / 0.8096 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=193): time 3.486e-06/0.6335, allocations: 4 kB / 0.8096 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of matching and sorting (n=198): time 0.0118/0.6453, allocations: 6.387 MB / 0.8159 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.08e-05/0.6454, allocations: 98.98 kB / 0.816 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.6469, allocations: 1.129 MB / 0.8171 GB, free: 9.953 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.6471, allocations: 65.7 kB / 0.8171 GB, free: 9.883 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005863/0.6477, allocations: 0.7911 MB / 0.8179 GB, free: 9.082 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004966/0.6482, allocations: 0.6545 MB / 0.8185 GB, free: 8.418 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004609/0.6486, allocations: 291.6 kB / 0.8188 GB, free: 8.129 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.6487, allocations: 309 kB / 0.8191 GB, free: 7.824 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.65, allocations: 0.6833 MB / 0.8198 GB, free: 7.141 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.6514, allocations: 0.845 MB / 0.8206 GB, free: 6.27 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006718/0.6581, allocations: 2.567 MB / 0.8231 GB, free: 3.648 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.6581, allocations: 0 / 0.8231 GB, free: 3.648 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004478/0.6626, allocations: 2.422 MB / 0.8255 GB, free: 1.195 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.071e-05/0.6627, allocations: 59.41 kB / 0.8255 GB, free: 1.125 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.6627, allocations: 4 kB / 0.8255 GB, free: 1.121 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.6641, allocations: 477.2 kB / 0.826 GB, free: 0.6484 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.6654, allocations: 315.5 kB / 0.8263 GB, free: 348 kB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2143/0.8797, allocations: 5.935 MB / 0.8321 GB, free: 239.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.8813, allocations: 128.3 kB / 0.8322 GB, free: 239.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/0.8816, allocations: 71.44 kB / 0.8323 GB, free: 239.8 MB / 0.6231 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.001033/0.8827, allocations: 462.3 kB / 0.8327 GB, free: 239.5 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004615/0.8831, allocations: 171.3 kB / 0.8329 GB, free: 239.5 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006077/0.8892, allocations: 3.112 MB / 0.8359 GB, free: 238.2 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/0.8893, allocations: 27.61 kB / 0.836 GB, free: 238.2 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.626e-05/0.8893, allocations: 8.594 kB / 0.836 GB, free: 238.2 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.219e-05/0.8893, allocations: 10.03 kB / 0.836 GB, free: 238.2 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008541/0.8979, allocations: 5.154 MB / 0.841 GB, free: 235.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.8979, allocations: 2.75 kB / 0.841 GB, free: 235.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.8992, allocations: 308.9 kB / 0.8413 GB, free: 235.7 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00149/0.9007, allocations: 495 kB / 0.8418 GB, free: 235.6 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/0.9009, allocations: 65.25 kB / 0.8418 GB, free: 235.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006535/0.9075, allocations: 5.965 MB / 0.8477 GB, free: 231.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.9075, allocations: 10.69 kB / 0.8477 GB, free: 231.2 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006959/0.9145, allocations: 3.638 MB / 0.8512 GB, free: 229.5 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/0.9159, allocations: 474.7 kB / 0.8517 GB, free: 229.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006007/0.9165, allocations: 47.66 kB / 0.8517 GB, free: 229.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/0.9182, allocations: 129 kB / 0.8518 GB, free: 229.1 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005629/0.9188, allocations: 169.4 kB / 0.852 GB, free: 229.1 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002469/0.919, allocations: 76.91 kB / 0.8521 GB, free: 229.1 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001803/0.9208, allocations: 0.8247 MB / 0.8529 GB, free: 228.7 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9209, allocations: 0 / 0.8529 GB, free: 228.7 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003339/0.9242, allocations: 0.8935 MB / 0.8538 GB, free: 228.6 MB / 0.6231 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.001653/0.9259, allocations: 0.9272 MB / 0.8547 GB, free: 228.4 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004336/0.9302, allocations: 2.418 MB / 0.857 GB, free: 227.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.9302, allocations: 0 / 0.857 GB, free: 227.2 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002756/0.933, allocations: 1.521 MB / 0.8585 GB, free: 226.5 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003427/0.9365, allocations: 0.5895 MB / 0.8591 GB, free: 226.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007288/0.9438, allocations: 4.931 MB / 0.8639 GB, free: 223.3 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.9449, allocations: 1.483 MB / 0.8653 GB, free: 222.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008391/0.9458, allocations: 194.5 kB / 0.8655 GB, free: 222.5 MB / 0.6231 GB Notification: Performance of SimCode: time 1.293e-06/0.9458, allocations: 0 / 0.8655 GB, free: 222.5 MB / 0.6231 GB Notification: Performance of Templates: time 0.04745/0.9932, allocations: 55.9 MB / 0.9201 GB, free: 171.5 MB / 0.6231 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)