Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007903/0.0007903, allocations: 72.55 kB / 19.93 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007704/0.0007704, allocations: 177.9 kB / 23.22 MB, free: 1.336 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.836/0.836, allocations: 177.2 MB / 203.5 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6134/0.6134, allocations: 116 MB / 376 MB, free: 4.152 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.FlowControl.Tests.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 0.5545 GB, free: 12.85 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.115e-05/2.298e-05, allocations: 2.281 kB / 0.5545 GB, free: 12.84 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3988/0.3989, allocations: 206.2 MB / 0.7558 GB, free: 12.21 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01722/0.4161, allocations: 19.91 MB / 0.7753 GB, free: 11.28 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002105/0.4182, allocations: 138.7 kB / 0.7754 GB, free: 11.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002665/0.4208, allocations: 1.502 MB / 0.7769 GB, free: 9.629 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.4258, allocations: 2.926 MB / 0.7797 GB, free: 6.684 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.003679/0.4294, allocations: 2.056 MB / 0.7818 GB, free: 4.621 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.003422/0.4329, allocations: 4.681 MB / 0.7863 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007286/0.4336, allocations: 0.6835 MB / 0.787 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002419/0.436, allocations: 2.568 MB / 0.7895 GB, free: 12.61 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001505/0.4375, allocations: 1.909 MB / 0.7914 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0002343/0.4377, allocations: 316 kB / 0.7917 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003944/0.4417, allocations: 2.967 MB / 0.7946 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0003569/0.442, allocations: 0.6927 MB / 0.7952 GB, free: 6.715 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0009685/0.443, allocations: 1.107 MB / 0.7963 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.004471/0.4475, allocations: 5.154 MB / 0.8014 GB, free: 448 kB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4475, allocations: 0 / 0.8014 GB, free: 448 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.302e-06/0.4475, allocations: 4 kB / 0.8014 GB, free: 444 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.346e-05/0.4475, allocations: 0 / 0.8014 GB, free: 444 kB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.004042/0.4516, allocations: 3.536 MB / 0.8048 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.4516, allocations: 14.09 kB / 0.8048 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004125/0.452, allocations: 345.9 kB / 0.8052 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001935/0.4539, allocations: 1.866 MB / 0.807 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.626e-05/0.454, allocations: 143.9 kB / 0.8071 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.4542, allocations: 203.9 kB / 0.8073 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002717/0.4569, allocations: 2.421 MB / 0.8097 GB, free: 7.77 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.079e-05/0.457, allocations: 7.938 kB / 0.8097 GB, free: 7.762 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.4571, allocations: 80 kB / 0.8098 GB, free: 7.684 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.002e-05/0.4571, allocations: 70.69 kB / 0.8098 GB, free: 7.613 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002348/0.4595, allocations: 2.288 MB / 0.8121 GB, free: 5.316 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006318/0.4658, allocations: 6.425 MB / 0.8183 GB, free: 14.8 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.4677, allocations: 1.725 MB / 0.82 GB, free: 13.05 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.4687, allocations: 0.949 MB / 0.8209 GB, free: 12.1 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003538/0.4723, allocations: 2.929 MB / 0.8238 GB, free: 9.148 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.4734, allocations: 1.048 MB / 0.8248 GB, free: 8.078 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=193): time 2.975e-06/0.4734, allocations: 0 / 0.8248 GB, free: 8.078 MB / 0.6667 GB Notification: Performance of matching and sorting (n=198): time 0.007422/0.4808, allocations: 5.976 MB / 0.8307 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.4809, allocations: 102.9 kB / 0.8308 GB, free: 1.926 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.4821, allocations: 1.512 MB / 0.8322 GB, free: 380 kB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 7.628e-05/0.4821, allocations: 57.7 kB / 0.8323 GB, free: 316 kB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005284/0.4827, allocations: 1.034 MB / 0.8333 GB, free: 15.27 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003273/0.483, allocations: 0.6854 MB / 0.834 GB, free: 14.57 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000293/0.4833, allocations: 307.5 kB / 0.8343 GB, free: 14.27 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.412e-05/0.4834, allocations: 305.1 kB / 0.8346 GB, free: 13.97 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008152/0.4842, allocations: 0.7335 MB / 0.8353 GB, free: 13.22 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009283/0.4851, allocations: 0.9438 MB / 0.8362 GB, free: 12.22 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003937/0.489, allocations: 2.591 MB / 0.8387 GB, free: 9.551 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.489, allocations: 3.984 kB / 0.8387 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.002794/0.4918, allocations: 2.545 MB / 0.8412 GB, free: 6.961 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/0.4919, allocations: 63.39 kB / 0.8413 GB, free: 6.887 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.4919, allocations: 7.938 kB / 0.8413 GB, free: 6.879 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007669/0.4927, allocations: 471.3 kB / 0.8417 GB, free: 6.414 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006499/0.4933, allocations: 331.5 kB / 0.842 GB, free: 6.09 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004994/0.4983, allocations: 6.102 MB / 0.848 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005912/0.4989, allocations: 63.95 kB / 0.8481 GB, free: 15.73 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.499, allocations: 80.03 kB / 0.8481 GB, free: 15.65 MB / 0.698 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: 16 * 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 (180): * Single equations (assignments): 176 * 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.0006469/0.4996, allocations: 486.8 kB / 0.8486 GB, free: 15.17 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002718/0.4999, allocations: 242.5 kB / 0.8488 GB, free: 14.93 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003621/0.5035, allocations: 3.093 MB / 0.8519 GB, free: 11.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.5035, allocations: 20 kB / 0.8519 GB, free: 11.79 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.5036, allocations: 8.875 kB / 0.8519 GB, free: 11.78 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.5036, allocations: 11.95 kB / 0.8519 GB, free: 11.77 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004782/0.5084, allocations: 4.595 MB / 0.8564 GB, free: 7.102 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.5084, allocations: 0 / 0.8564 GB, free: 7.102 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005895/0.5089, allocations: 316.5 kB / 0.8567 GB, free: 6.793 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007274/0.5097, allocations: 493.7 kB / 0.8572 GB, free: 6.305 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.048e-05/0.5098, allocations: 71.95 kB / 0.8572 GB, free: 6.234 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004845/0.5146, allocations: 6.088 MB / 0.8632 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5146, allocations: 0 / 0.8632 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004062/0.5187, allocations: 3.656 MB / 0.8667 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005249/0.5192, allocations: 430.2 kB / 0.8672 GB, free: 11.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.5193, allocations: 48 kB / 0.8672 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004966/0.5198, allocations: 67.95 kB / 0.8673 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002113/0.52, allocations: 177.6 kB / 0.8674 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.518e-05/0.5201, allocations: 75.95 kB / 0.8675 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0008893/0.521, allocations: 1.044 MB / 0.8685 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.81e-07/0.521, allocations: 0 / 0.8685 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001582/0.5226, allocations: 0.9479 MB / 0.8695 GB, free: 9.438 MB / 0.7136 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.0009952/0.5236, allocations: 0.98 MB / 0.8704 GB, free: 8.453 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002779/0.5264, allocations: 2.373 MB / 0.8727 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.5264, allocations: 4.062 kB / 0.8727 GB, free: 6.004 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.5278, allocations: 1.427 MB / 0.8741 GB, free: 4.555 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.5299, allocations: 0.9442 MB / 0.875 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005125/0.535, allocations: 4.672 MB / 0.8796 GB, free: 14.9 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000952/0.5359, allocations: 1.06 MB / 0.8806 GB, free: 13.8 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003915/0.5363, allocations: 224.4 kB / 0.8809 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of SimCode: time 7.51e-07/0.5363, allocations: 0 / 0.8809 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of Templates: time 0.2431/0.7795, allocations: 66.58 MB / 0.9459 GB, free: 304.3 MB / 0.7761 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1200] [Calling os._exit(0), Time elapsed: 9.441889545880258] Failed to read output from testmodel.py, exit status != 0: 0.7848837282508612 0.792192419 0.343000922 Calling exit ...