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.001498/0.001498, 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.001677/0.001677, allocations: 217.6 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.332/1.332, allocations: 230.6 MB / 256.8 MB, free: 8.07 MB / 206.1 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.7257/0.7257, allocations: 100.3 MB / 413.5 MB, free: 3.727 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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: 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.002381/0.002381, allocations: 87.88 kB / 0.5645 GB, free: 35.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1052, allocations: 74.47 MB / 0.6372 GB, free: 7.207 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4753/0.5805, allocations: 227.4 MB / 0.8593 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03/0.6105, allocations: 25.26 MB / 0.8839 GB, free: 5.602 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002506/0.613, allocations: 115 kB / 0.884 GB, free: 5.488 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004404/0.6174, allocations: 1.662 MB / 0.8857 GB, free: 3.816 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007424/0.6248, allocations: 2.695 MB / 0.8883 GB, free: 1.105 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005265/0.6301, allocations: 1.952 MB / 0.8902 GB, free: 15.15 MB / 0.6388 GB Notification: Performance of NFFlatten.flatten: time 0.005916/0.636, allocations: 4.112 MB / 0.8942 GB, free: 11.02 MB / 0.6388 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.6375, allocations: 0.6749 MB / 0.8949 GB, free: 10.3 MB / 0.6388 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002972/0.6405, allocations: 1.728 MB / 0.8966 GB, free: 8.562 MB / 0.6388 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003519/0.644, allocations: 2.157 MB / 0.8987 GB, free: 6.398 MB / 0.6388 GB Notification: Performance of NFPackage.collectConstants: time 0.0007465/0.6448, allocations: 316 kB / 0.899 GB, free: 6.09 MB / 0.6388 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007649/0.6524, allocations: 3.447 MB / 0.9023 GB, free: 2.637 MB / 0.6388 GB Notification: Performance of NFScalarize.scalarize: time 0.0009874/0.6534, allocations: 0.6617 MB / 0.903 GB, free: 1.973 MB / 0.6388 GB Notification: Performance of NFVerifyModel.verify: time 0.002423/0.6558, allocations: 1.516 MB / 0.9045 GB, free: 460 kB / 0.6388 GB Notification: Performance of NFConvertDAE.convert: time 0.008471/0.6643, allocations: 4.843 MB / 0.9092 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.6643, allocations: 0 / 0.9092 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6643, allocations: 0 / 0.9092 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.278e-05/0.6643, allocations: 3.938 kB / 0.9092 GB, free: 11.59 MB / 0.6544 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.007016/0.6714, allocations: 3.392 MB / 0.9125 GB, free: 8.133 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.6714, allocations: 8.031 kB / 0.9125 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005166/0.6719, allocations: 306.1 kB / 0.9128 GB, free: 7.824 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003013/0.6749, allocations: 1.691 MB / 0.9145 GB, free: 6.094 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.675, allocations: 155.8 kB / 0.9146 GB, free: 5.941 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003132/0.6754, allocations: 207.9 kB / 0.9148 GB, free: 5.738 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003839/0.6792, allocations: 2.359 MB / 0.9171 GB, free: 3.352 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.879e-05/0.6792, allocations: 0 / 0.9171 GB, free: 3.352 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001758/0.6794, allocations: 79.98 kB / 0.9172 GB, free: 3.273 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.712e-05/0.6795, allocations: 74.7 kB / 0.9173 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003791/0.6833, allocations: 2.28 MB / 0.9195 GB, free: 0.9102 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/0.6957, allocations: 10.19 MB / 0.9294 GB, free: 5.773 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00306/0.6988, allocations: 1.764 MB / 0.9312 GB, free: 3.996 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001712/0.7005, allocations: 0.9725 MB / 0.9321 GB, free: 3.023 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00572/0.7062, allocations: 3.365 MB / 0.9354 GB, free: 15.63 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001791/0.708, allocations: 1.056 MB / 0.9364 GB, free: 14.56 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=193): time 3.046e-06/0.708, allocations: 3.938 kB / 0.9364 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of matching and sorting (n=198): time 0.01163/0.7196, allocations: 5.961 MB / 0.9423 GB, free: 8.535 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.7197, allocations: 98.92 kB / 0.9423 GB, free: 8.422 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/0.7215, allocations: 1.421 MB / 0.9437 GB, free: 7 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001299/0.7216, allocations: 57.7 kB / 0.9438 GB, free: 6.938 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007961/0.7224, allocations: 0.955 MB / 0.9447 GB, free: 5.973 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005632/0.723, allocations: 0.6933 MB / 0.9454 GB, free: 5.273 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000479/0.7235, allocations: 295.6 kB / 0.9457 GB, free: 4.977 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.7236, allocations: 305.1 kB / 0.946 GB, free: 4.676 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.7249, allocations: 0.6833 MB / 0.9466 GB, free: 3.992 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/0.7264, allocations: 0.8526 MB / 0.9475 GB, free: 3.109 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006723/0.7331, allocations: 2.565 MB / 0.95 GB, free: 0.4922 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.7331, allocations: 0 / 0.95 GB, free: 0.4922 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004641/0.7377, allocations: 2.438 MB / 0.9524 GB, free: 14.02 MB / 0.7013 GB Notification: Performance of prepare postOptimizeDAE: time 5.879e-05/0.7378, allocations: 71.39 kB / 0.9524 GB, free: 13.94 MB / 0.7013 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.7378, allocations: 4 kB / 0.9524 GB, free: 13.94 MB / 0.7013 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.7392, allocations: 466.5 kB / 0.9529 GB, free: 13.48 MB / 0.7013 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.7404, allocations: 319.5 kB / 0.9532 GB, free: 13.16 MB / 0.7013 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007964/0.7484, allocations: 6.267 MB / 0.9593 GB, free: 6.672 MB / 0.7013 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.7496, allocations: 67.92 kB / 0.9594 GB, free: 6.605 MB / 0.7013 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.7498, allocations: 71.97 kB / 0.9594 GB, free: 6.535 MB / 0.7013 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.0009182/0.7507, allocations: 478.1 kB / 0.9599 GB, free: 6.059 MB / 0.7013 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003861/0.7511, allocations: 222.6 kB / 0.9601 GB, free: 5.84 MB / 0.7013 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005697/0.7568, allocations: 3.12 MB / 0.9631 GB, free: 2.695 MB / 0.7013 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.7568, allocations: 20 kB / 0.9632 GB, free: 2.676 MB / 0.7013 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.7568, allocations: 12.03 kB / 0.9632 GB, free: 2.664 MB / 0.7013 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/0.7568, allocations: 11.95 kB / 0.9632 GB, free: 2.652 MB / 0.7013 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008505/0.7653, allocations: 5.179 MB / 0.9682 GB, free: 13.39 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.7653, allocations: 4 kB / 0.9683 GB, free: 13.38 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.7665, allocations: 307.6 kB / 0.9685 GB, free: 13.08 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.7679, allocations: 497.6 kB / 0.969 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.768, allocations: 63.95 kB / 0.9691 GB, free: 12.53 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007971/0.776, allocations: 6.27 MB / 0.9752 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.776, allocations: 3.938 kB / 0.9752 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00652/0.7825, allocations: 3.669 MB / 0.9788 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009567/0.7835, allocations: 430.2 kB / 0.9792 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002698/0.7837, allocations: 51.92 kB / 0.9792 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009339/0.7847, allocations: 59.97 kB / 0.9793 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003533/0.785, allocations: 185.5 kB / 0.9795 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000141/0.7852, allocations: 79.95 kB / 0.9796 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001407/0.7866, allocations: 1.01 MB / 0.9805 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7e-08/0.7866, allocations: 0 / 0.9805 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002396/0.789, allocations: 0.9011 MB / 0.9814 GB, free: 15.62 MB / 0.7325 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.001413/0.7904, allocations: 0.9412 MB / 0.9823 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004354/0.7947, allocations: 2.314 MB / 0.9846 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.7947, allocations: 0 / 0.9846 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.002692/0.7974, allocations: 1.439 MB / 0.986 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/0.8001, allocations: 0.6703 MB / 0.9867 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007564/0.8077, allocations: 4.433 MB / 0.991 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001305/0.809, allocations: 1.581 MB / 0.9925 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006958/0.8097, allocations: 211.3 kB / 0.9927 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of SimCode: time 7.11e-07/0.8097, allocations: 0 / 0.9927 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of Templates: time 0.07575/0.8854, allocations: 61.65 MB / 1.053 GB, free: 6.305 MB / 0.795 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: 11.99762677308172] Failed to read output from testmodel.py, exit status != 0: 0.8933929509948939 1.102092031 0.43517778799999995 Calling exit ...