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.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.001517/0.001517, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.001665/0.001665, allocations: 215.8 kB / 23.01 MB, free: 4.609 MB / 14.72 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 1.37/1.37, allocations: 230.6 MB / 256.8 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.6792/0.6792, allocations: 94.56 MB / 407.7 MB, free: 9.301 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_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_ThermofluidStream.FlowControl.Tests.Switch") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 88.95 kB / 0.5562 GB, free: 38.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1192, allocations: 73.05 MB / 0.6275 GB, free: 60 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5201/0.6392, allocations: 227.4 MB / 0.8496 GB, free: 8.488 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03119/0.6704, allocations: 25.26 MB / 0.8743 GB, free: 3.094 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002908/0.6733, allocations: 118.9 kB / 0.8744 GB, free: 2.977 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004822/0.6781, allocations: 1.666 MB / 0.876 GB, free: 1.301 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.008497/0.6866, allocations: 2.703 MB / 0.8786 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005919/0.6926, allocations: 1.958 MB / 0.8806 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.006764/0.6993, allocations: 4.108 MB / 0.8846 GB, free: 8.5 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001832/0.7012, allocations: 0.6753 MB / 0.8852 GB, free: 7.777 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00348/0.7046, allocations: 1.74 MB / 0.8869 GB, free: 6.031 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003974/0.7086, allocations: 2.149 MB / 0.889 GB, free: 3.875 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001071/0.7097, allocations: 320 kB / 0.8893 GB, free: 3.562 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008483/0.7182, allocations: 3.447 MB / 0.8927 GB, free: 112 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.7192, allocations: 0.6617 MB / 0.8933 GB, free: 15.45 MB / 0.6388 GB Notification: Performance of NFVerifyModel.verify: time 0.002047/0.7213, allocations: 1.516 MB / 0.8948 GB, free: 13.92 MB / 0.6388 GB Notification: Performance of NFConvertDAE.convert: time 0.008561/0.7298, allocations: 4.851 MB / 0.8996 GB, free: 9.055 MB / 0.6388 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.7298, allocations: 0 / 0.8996 GB, free: 9.055 MB / 0.6388 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7298, allocations: 0 / 0.8996 GB, free: 9.055 MB / 0.6388 GB Notification: Performance of Transformations before backend: time 6.331e-05/0.7299, allocations: 0 / 0.8996 GB, free: 9.055 MB / 0.6388 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.006936/0.7368, allocations: 3.392 MB / 0.9029 GB, free: 5.598 MB / 0.6388 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.7369, allocations: 8.031 kB / 0.9029 GB, free: 5.59 MB / 0.6388 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005414/0.7374, allocations: 310 kB / 0.9032 GB, free: 5.285 MB / 0.6388 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003099/0.7405, allocations: 1.703 MB / 0.9048 GB, free: 3.539 MB / 0.6388 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.7406, allocations: 143.8 kB / 0.905 GB, free: 3.398 MB / 0.6388 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003245/0.7409, allocations: 215.9 kB / 0.9052 GB, free: 3.188 MB / 0.6388 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003918/0.7449, allocations: 2.352 MB / 0.9075 GB, free: 0.8086 MB / 0.6388 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.062e-05/0.7449, allocations: 0 / 0.9075 GB, free: 0.8086 MB / 0.6388 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.7451, allocations: 76 kB / 0.9075 GB, free: 0.7344 MB / 0.6388 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.688e-05/0.7451, allocations: 78.69 kB / 0.9076 GB, free: 0.6562 MB / 0.6388 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003867/0.749, allocations: 2.276 MB / 0.9098 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01403/0.763, allocations: 10.2 MB / 0.9198 GB, free: 3.238 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003215/0.7663, allocations: 1.764 MB / 0.9215 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.768, allocations: 0.9621 MB / 0.9225 GB, free: 0.5 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006147/0.7741, allocations: 3.375 MB / 0.9258 GB, free: 13.09 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001809/0.776, allocations: 1.056 MB / 0.9268 GB, free: 12.02 MB / 0.67 GB Notification: Performance of pre-optimization done (n=193): time 3.085e-06/0.776, allocations: 4 kB / 0.9268 GB, free: 12.01 MB / 0.67 GB Notification: Performance of matching and sorting (n=198): time 0.01251/0.7885, allocations: 5.954 MB / 0.9326 GB, free: 6 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.974e-05/0.7885, allocations: 102.9 kB / 0.9327 GB, free: 5.883 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001915/0.7905, allocations: 1.425 MB / 0.9341 GB, free: 4.457 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001909/0.7907, allocations: 57.7 kB / 0.9342 GB, free: 4.395 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008537/0.7915, allocations: 0.9512 MB / 0.9351 GB, free: 3.434 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006262/0.7921, allocations: 0.6894 MB / 0.9358 GB, free: 2.738 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004645/0.7926, allocations: 299.5 kB / 0.936 GB, free: 2.441 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.7927, allocations: 301.1 kB / 0.9363 GB, free: 2.145 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.794, allocations: 0.6911 MB / 0.937 GB, free: 1.453 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.7955, allocations: 0.8448 MB / 0.9378 GB, free: 0.5781 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006969/0.8025, allocations: 2.573 MB / 0.9403 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.8025, allocations: 3.938 kB / 0.9403 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004832/0.8073, allocations: 2.437 MB / 0.9427 GB, free: 11.48 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 6.563e-05/0.8074, allocations: 63.41 kB / 0.9428 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.8074, allocations: 4 kB / 0.9428 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001422/0.8088, allocations: 469.3 kB / 0.9432 GB, free: 10.94 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.8101, allocations: 319.5 kB / 0.9435 GB, free: 10.63 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008438/0.8185, allocations: 6.263 MB / 0.9497 GB, free: 4.141 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.8199, allocations: 60 kB / 0.9497 GB, free: 4.082 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/0.8201, allocations: 80.02 kB / 0.9498 GB, free: 4.004 MB / 0.6856 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.0009649/0.821, allocations: 477.5 kB / 0.9502 GB, free: 3.527 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003926/0.8214, allocations: 214.6 kB / 0.9505 GB, free: 3.316 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005905/0.8273, allocations: 3.112 MB / 0.9535 GB, free: 180 kB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.8273, allocations: 20 kB / 0.9535 GB, free: 160 kB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.8273, allocations: 15.88 kB / 0.9535 GB, free: 144 kB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.327e-05/0.8274, allocations: 15.95 kB / 0.9535 GB, free: 128 kB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009131/0.8365, allocations: 5.19 MB / 0.9586 GB, free: 10.85 MB / 0.7013 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.467e-06/0.8365, allocations: 3.984 kB / 0.9586 GB, free: 10.85 MB / 0.7013 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.8377, allocations: 307.6 kB / 0.9589 GB, free: 10.55 MB / 0.7013 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.8391, allocations: 489.6 kB / 0.9594 GB, free: 10.06 MB / 0.7013 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001589/0.8393, allocations: 63.95 kB / 0.9594 GB, free: 10 MB / 0.7013 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00843/0.8477, allocations: 6.262 MB / 0.9655 GB, free: 3.512 MB / 0.7013 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.8477, allocations: 0 / 0.9655 GB, free: 3.512 MB / 0.7013 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006889/0.8546, allocations: 3.672 MB / 0.9691 GB, free: 15.79 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/0.8557, allocations: 426.3 kB / 0.9695 GB, free: 15.37 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002814/0.856, allocations: 55.89 kB / 0.9696 GB, free: 15.31 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009509/0.8569, allocations: 63.95 kB / 0.9697 GB, free: 15.25 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003618/0.8573, allocations: 181.5 kB / 0.9698 GB, free: 15.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/0.8574, allocations: 75.95 kB / 0.9699 GB, free: 15 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00151/0.859, allocations: 1.013 MB / 0.9709 GB, free: 14 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.859, allocations: 0 / 0.9709 GB, free: 14 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00259/0.8615, allocations: 0.905 MB / 0.9718 GB, free: 13.09 MB / 0.7169 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.001576/0.8631, allocations: 0.9353 MB / 0.9727 GB, free: 12.15 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.004441/0.8676, allocations: 2.322 MB / 0.975 GB, free: 9.77 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.8676, allocations: 0 / 0.975 GB, free: 9.77 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002726/0.8703, allocations: 1.443 MB / 0.9764 GB, free: 8.309 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00296/0.8733, allocations: 0.6678 MB / 0.977 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007874/0.8811, allocations: 4.441 MB / 0.9814 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.8825, allocations: 1.573 MB / 0.9829 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007933/0.8833, allocations: 215.3 kB / 0.9831 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of SimCode: time 9.22e-07/0.8833, allocations: 4 kB / 0.9831 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of Templates: time 0.08008/0.9634, allocations: 61.64 MB / 1.043 GB, free: 3.773 MB / 0.7794 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (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) [Timeout 1200] [Calling os._exit(0), Time elapsed: 12.4494975770358] Failed to read output from testmodel.py, exit status != 0: 0.9719236341770738 1.198195607 0.46590782599999997 Calling exit ...