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.001612/0.001612, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001747/0.001747, allocations: 214.2 kB / 22.99 MB, free: 4.945 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.42/1.42, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.749/0.749, allocations: 94.62 MB / 407.8 MB, free: 8.852 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.00255/0.00255, allocations: 93.25 kB / 0.5562 GB, free: 38.23 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.11, allocations: 73.04 MB / 0.6275 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.497/0.607, allocations: 199 MB / 0.8218 GB, free: 232 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02837/0.6354, allocations: 22.88 MB / 0.8441 GB, free: 2.105 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002606/0.638, allocations: 116.7 kB / 0.8443 GB, free: 2.105 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0043/0.6423, allocations: 1.44 MB / 0.8457 GB, free: 1.391 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007498/0.6498, allocations: 2.648 MB / 0.8482 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005308/0.6551, allocations: 1.925 MB / 0.8501 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005218/0.6603, allocations: 4.108 MB / 0.8541 GB, free: 13.15 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.6616, allocations: 0.6453 MB / 0.8548 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003342/0.6649, allocations: 1.735 MB / 0.8565 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003572/0.6685, allocations: 2.003 MB / 0.8584 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0004899/0.669, allocations: 313.1 kB / 0.8587 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006732/0.6757, allocations: 2.945 MB / 0.8616 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0008061/0.6765, allocations: 0.6676 MB / 0.8622 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002181/0.6787, allocations: 1.221 MB / 0.8634 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.009174/0.6879, allocations: 4.799 MB / 0.8681 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.6879, allocations: 4 kB / 0.8681 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6879, allocations: 0 / 0.8681 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.229e-05/0.6879, allocations: 0 / 0.8681 GB, free: 2.512 MB / 0.6075 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.007283/0.6952, allocations: 3.39 MB / 0.8714 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.6953, allocations: 8.031 kB / 0.8714 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007256/0.696, allocations: 326 kB / 0.8718 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003287/0.6993, allocations: 1.692 MB / 0.8734 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.6994, allocations: 151.8 kB / 0.8736 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003435/0.6997, allocations: 211.9 kB / 0.8738 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004167/0.7039, allocations: 2.359 MB / 0.8761 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.007e-05/0.704, allocations: 0 / 0.8761 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001745/0.7041, allocations: 79.98 kB / 0.8761 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.552e-05/0.7042, allocations: 74.7 kB / 0.8762 GB, free: 10.14 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004062/0.7083, allocations: 2.264 MB / 0.8784 GB, free: 7.863 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.7193, allocations: 5.788 MB / 0.8841 GB, free: 2.016 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003262/0.7226, allocations: 1.748 MB / 0.8858 GB, free: 264 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001821/0.7244, allocations: 0.9699 MB / 0.8867 GB, free: 15.28 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006056/0.7305, allocations: 2.995 MB / 0.8896 GB, free: 12.26 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001943/0.7324, allocations: 1.064 MB / 0.8907 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 4.248e-06/0.7324, allocations: 0 / 0.8907 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01251/0.7449, allocations: 5.954 MB / 0.8965 GB, free: 5.168 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.745, allocations: 98.92 kB / 0.8966 GB, free: 5.055 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/0.7469, allocations: 1.346 MB / 0.8979 GB, free: 3.703 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001559/0.747, allocations: 61.7 kB / 0.898 GB, free: 3.637 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008449/0.7479, allocations: 0.9467 MB / 0.8989 GB, free: 2.68 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006181/0.7485, allocations: 0.6932 MB / 0.8996 GB, free: 1.98 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005004/0.749, allocations: 295.6 kB / 0.8999 GB, free: 1.688 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.7491, allocations: 309 kB / 0.9001 GB, free: 1.383 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.7505, allocations: 0.7452 MB / 0.9009 GB, free: 0.625 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.7521, allocations: 0.8951 MB / 0.9017 GB, free: 15.69 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007185/0.7593, allocations: 2.577 MB / 0.9043 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.7593, allocations: 0 / 0.9043 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005054/0.7643, allocations: 2.502 MB / 0.9067 GB, free: 10.51 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.974e-05/0.7644, allocations: 59.39 kB / 0.9068 GB, free: 10.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.7644, allocations: 4 kB / 0.9068 GB, free: 10.44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001436/0.7658, allocations: 471.6 kB / 0.9072 GB, free: 9.973 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.7671, allocations: 327.5 kB / 0.9075 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008299/0.7754, allocations: 6.101 MB / 0.9135 GB, free: 3.355 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.7768, allocations: 71.92 kB / 0.9136 GB, free: 3.285 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.777, allocations: 71.97 kB / 0.9136 GB, free: 3.215 MB / 0.6544 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.0009955/0.778, allocations: 478.9 kB / 0.9141 GB, free: 2.738 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005402/0.7785, allocations: 218.6 kB / 0.9143 GB, free: 2.523 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005909/0.7844, allocations: 3.106 MB / 0.9173 GB, free: 15.38 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/0.7844, allocations: 20 kB / 0.9173 GB, free: 15.36 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.7844, allocations: 8 kB / 0.9174 GB, free: 15.36 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.218e-05/0.7845, allocations: 11.95 kB / 0.9174 GB, free: 15.34 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008736/0.7932, allocations: 4.604 MB / 0.9219 GB, free: 10.67 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/0.7932, allocations: 8.156 kB / 0.9219 GB, free: 10.66 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.7945, allocations: 315.5 kB / 0.9222 GB, free: 10.36 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.7959, allocations: 485.4 kB / 0.9226 GB, free: 9.875 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.796, allocations: 67.95 kB / 0.9227 GB, free: 9.809 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008173/0.8042, allocations: 6.08 MB / 0.9286 GB, free: 3.523 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.8042, allocations: 8 kB / 0.9286 GB, free: 3.516 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00708/0.8113, allocations: 3.678 MB / 0.9322 GB, free: 15.79 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.8124, allocations: 414.4 kB / 0.9326 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.8126, allocations: 59.88 kB / 0.9327 GB, free: 15.32 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009685/0.8136, allocations: 63.91 kB / 0.9327 GB, free: 15.26 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003813/0.814, allocations: 181.5 kB / 0.9329 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.8141, allocations: 75.95 kB / 0.933 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001418/0.8156, allocations: 0.9523 MB / 0.9339 GB, free: 14.07 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/0.8156, allocations: 0 / 0.9339 GB, free: 14.07 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002437/0.818, allocations: 0.901 MB / 0.9348 GB, free: 13.16 MB / 0.6856 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.00154/0.8195, allocations: 0.9347 MB / 0.9357 GB, free: 12.22 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00446/0.824, allocations: 2.368 MB / 0.938 GB, free: 9.789 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.824, allocations: 4 kB / 0.938 GB, free: 9.785 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002777/0.8268, allocations: 1.439 MB / 0.9394 GB, free: 8.324 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002775/0.8296, allocations: 0.6209 MB / 0.94 GB, free: 7.723 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007804/0.8374, allocations: 4.435 MB / 0.9444 GB, free: 3.227 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.8385, allocations: 1.017 MB / 0.9454 GB, free: 2.168 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007291/0.8393, allocations: 211.3 kB / 0.9456 GB, free: 1.961 MB / 0.6856 GB Notification: Performance of SimCode: time 8.72e-07/0.8393, allocations: 0 / 0.9456 GB, free: 1.961 MB / 0.6856 GB Notification: Performance of Templates: time 0.08105/0.9203, allocations: 62.11 MB / 1.006 GB, free: 3.93 MB / 0.7481 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.488183315843344] Failed to read output from testmodel.py, exit status != 0: 0.9288079831749201 0.944123357 0.25304077199999997 Calling exit ...