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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 110.4 kB / 18.68 MB, free: 3.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 200.4 kB / 21.93 MB, free: 100 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 225.6 MB / 250.6 MB, free: 13.42 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7478/0.7478, allocations: 94.6 MB / 400.4 MB, free: 15.83 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-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=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 0.002585/0.002585, allocations: 86.53 kB / 0.5464 GB, free: 42.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1047, allocations: 71.84 MB / 0.6166 GB, free: 8.629 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5314/0.6361, allocations: 227.3 MB / 0.8386 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03107/0.6672, allocations: 25.25 MB / 0.8632 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00304/0.6702, allocations: 81.53 kB / 0.8633 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004849/0.6751, allocations: 1.674 MB / 0.8649 GB, free: 13.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.008425/0.6835, allocations: 2.693 MB / 0.8676 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005926/0.6894, allocations: 1.914 MB / 0.8694 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.006178/0.6956, allocations: 4.085 MB / 0.8734 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001387/0.697, allocations: 0.6787 MB / 0.8741 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003075/0.7001, allocations: 1.693 MB / 0.8758 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003682/0.7037, allocations: 2.164 MB / 0.8779 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0006404/0.7044, allocations: 312 kB / 0.8782 GB, free: 1.211 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008386/0.7128, allocations: 3.412 MB / 0.8815 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0008567/0.7136, allocations: 0.6539 MB / 0.8821 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002237/0.7159, allocations: 1.52 MB / 0.8836 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.009232/0.7251, allocations: 4.847 MB / 0.8884 GB, free: 6.746 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.7251, allocations: 3.938 kB / 0.8884 GB, free: 6.742 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.893e-06/0.7251, allocations: 0 / 0.8884 GB, free: 6.742 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 6.645e-05/0.7252, allocations: 4 kB / 0.8884 GB, free: 6.738 MB / 0.6231 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.007424/0.7326, allocations: 3.459 MB / 0.8917 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.7326, allocations: 8.031 kB / 0.8917 GB, free: 3.188 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00056/0.7332, allocations: 310.1 kB / 0.892 GB, free: 2.883 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003235/0.7364, allocations: 1.795 MB / 0.8938 GB, free: 1.039 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.7365, allocations: 155.8 kB / 0.8939 GB, free: 0.8867 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003325/0.7369, allocations: 203.9 kB / 0.8941 GB, free: 0.6875 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004228/0.7411, allocations: 2.336 MB / 0.8964 GB, free: 14.32 MB / 0.6388 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/0.7411, allocations: 0 / 0.8964 GB, free: 14.32 MB / 0.6388 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001887/0.7413, allocations: 76 kB / 0.8965 GB, free: 14.25 MB / 0.6388 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.841e-05/0.7414, allocations: 78.62 kB / 0.8966 GB, free: 14.17 MB / 0.6388 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004249/0.7457, allocations: 2.237 MB / 0.8987 GB, free: 11.93 MB / 0.6388 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01363/0.7593, allocations: 10.27 MB / 0.9088 GB, free: 0.7344 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003444/0.7627, allocations: 1.765 MB / 0.9105 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001948/0.7647, allocations: 0.9618 MB / 0.9114 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008342/0.773, allocations: 6.607 MB / 0.9179 GB, free: 6.555 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002025/0.7751, allocations: 1.056 MB / 0.9189 GB, free: 5.48 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=193): time 3.707e-06/0.7751, allocations: 3.938 kB / 0.9189 GB, free: 5.477 MB / 0.6544 GB Notification: Performance of matching and sorting (n=198): time 0.01349/0.7885, allocations: 6.568 MB / 0.9253 GB, free: 14.7 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.7886, allocations: 98.98 kB / 0.9254 GB, free: 14.59 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.7906, allocations: 1.425 MB / 0.9268 GB, free: 13.16 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001531/0.7908, allocations: 57.7 kB / 0.9269 GB, free: 13.1 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008819/0.7917, allocations: 0.9512 MB / 0.9278 GB, free: 12.14 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006431/0.7923, allocations: 0.6894 MB / 0.9285 GB, free: 11.44 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005313/0.7929, allocations: 299.5 kB / 0.9288 GB, free: 11.14 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.793, allocations: 305.1 kB / 0.9291 GB, free: 10.84 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/0.7944, allocations: 0.6833 MB / 0.9297 GB, free: 10.16 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.7961, allocations: 0.8528 MB / 0.9306 GB, free: 9.277 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007707/0.8038, allocations: 2.564 MB / 0.9331 GB, free: 6.664 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.279e-06/0.8038, allocations: 0 / 0.9331 GB, free: 6.664 MB / 0.67 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005232/0.8091, allocations: 2.438 MB / 0.9354 GB, free: 4.195 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.077e-05/0.8091, allocations: 64.95 kB / 0.9355 GB, free: 4.121 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.8092, allocations: 4.938 kB / 0.9355 GB, free: 4.117 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001499/0.8106, allocations: 469.2 kB / 0.936 GB, free: 3.652 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/0.812, allocations: 319.5 kB / 0.9363 GB, free: 3.34 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009008/0.8211, allocations: 6.473 MB / 0.9426 GB, free: 12.59 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.8224, allocations: 55.97 kB / 0.9426 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002018/0.8226, allocations: 79.95 kB / 0.9427 GB, free: 12.46 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.0009813/0.8236, allocations: 474.6 kB / 0.9432 GB, free: 11.98 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004201/0.824, allocations: 214.6 kB / 0.9434 GB, free: 11.77 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006456/0.8305, allocations: 3.112 MB / 0.9464 GB, free: 8.637 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.468e-05/0.8305, allocations: 11.97 kB / 0.9464 GB, free: 8.625 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.8305, allocations: 0 / 0.9464 GB, free: 8.625 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009884/0.8315, allocations: 0.5031 MB / 0.9469 GB, free: 8.102 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/0.8317, allocations: 44 kB / 0.947 GB, free: 8.059 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009577/0.8327, allocations: 64.05 kB / 0.947 GB, free: 7.996 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003444/0.833, allocations: 189.5 kB / 0.9472 GB, free: 7.812 MB / 0.6856 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006406/0.8394, allocations: 2.675 MB / 0.9498 GB, free: 5.129 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006194/0.8456, allocations: 3.422 MB / 0.9532 GB, free: 1.676 MB / 0.6856 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001664/0.8473, allocations: 0.8696 MB / 0.954 GB, free: 0.8086 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001587/0.8489, allocations: 1.005 MB / 0.955 GB, free: 15.81 MB / 0.7013 GB Notification: Performance of Backend: time 5.11e-07/0.8489, allocations: 0 / 0.955 GB, free: 15.81 MB / 0.7013 GB Notification: Performance of simCode: created initialization part: time 0.006046/0.8549, allocations: 2.71 MB / 0.9576 GB, free: 13.04 MB / 0.7013 GB Notification: Performance of SimCode: time 0.007876/0.8628, allocations: 4.871 MB / 0.9624 GB, free: 8.121 MB / 0.7013 GB Notification: Performance of Templates: time 0.08841/0.9512, allocations: 50.57 MB / 1.012 GB, free: 5.852 MB / 0.7481 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: 7.495723791013006] Failed to read output from testmodel.py, exit status != 0: 0.9594150890479796 0.974836174 0.246405379 Calling exit ...