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.001408/0.001408, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001434/0.001434, allocations: 218.5 kB / 23.03 MB, free: 4.949 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.7989/0.7989, allocations: 94.62 MB / 407.8 MB, free: 8.934 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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="cs",version="2.0",platforms={"static"}) [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.002445/0.002445, allocations: 86.58 kB / 0.5557 GB, free: 38.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1306, allocations: 73.06 MB / 0.6271 GB, free: 200 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5291/0.6596, allocations: 198.8 MB / 0.8212 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03113/0.6908, allocations: 22.84 MB / 0.8435 GB, free: 2.465 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00369/0.6945, allocations: 113.1 kB / 0.8436 GB, free: 2.465 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.005602/0.7001, allocations: 1.445 MB / 0.845 GB, free: 1.746 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.009112/0.7092, allocations: 2.656 MB / 0.8476 GB, free: 324 kB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005971/0.7152, allocations: 1.925 MB / 0.8495 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005827/0.721, allocations: 4.107 MB / 0.8535 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001573/0.7226, allocations: 0.6767 MB / 0.8541 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003507/0.7261, allocations: 1.738 MB / 0.8558 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004137/0.7302, allocations: 2.16 MB / 0.8579 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0008814/0.7311, allocations: 313.5 kB / 0.8582 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008155/0.7392, allocations: 2.974 MB / 0.8612 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001258/0.7405, allocations: 0.6677 MB / 0.8618 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003509/0.744, allocations: 1.221 MB / 0.863 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01207/0.7561, allocations: 4.809 MB / 0.8677 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.7561, allocations: 0 / 0.8677 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7561, allocations: 4 kB / 0.8677 GB, free: 2.637 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001471/0.7562, allocations: 0 / 0.8677 GB, free: 2.637 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.009185/0.7654, allocations: 3.386 MB / 0.871 GB, free: 15.19 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.7655, allocations: 8.031 kB / 0.871 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.306e-05/0.7655, allocations: 51.84 kB / 0.8711 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000599/0.7661, allocations: 274.6 kB / 0.8713 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.7671, allocations: 314.1 kB / 0.8716 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003871/0.771, allocations: 1.712 MB / 0.8733 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.7712, allocations: 139.8 kB / 0.8734 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005753/0.7718, allocations: 207.9 kB / 0.8736 GB, free: 12.5 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00552/0.7773, allocations: 2.358 MB / 0.8759 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.434e-05/0.7773, allocations: 0 / 0.8759 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000239/0.7776, allocations: 76 kB / 0.876 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/0.7777, allocations: 82.62 kB / 0.8761 GB, free: 9.965 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004609/0.7823, allocations: 2.273 MB / 0.8783 GB, free: 7.688 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01397/0.7963, allocations: 6.046 MB / 0.8842 GB, free: 1.641 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004028/0.8003, allocations: 1.751 MB / 0.8859 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002175/0.8025, allocations: 0.9621 MB / 0.8869 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007424/0.8099, allocations: 2.999 MB / 0.8898 GB, free: 11.89 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002221/0.8121, allocations: 1.064 MB / 0.8908 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 5.39e-06/0.8121, allocations: 0 / 0.8908 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01349/0.8256, allocations: 5.961 MB / 0.8966 GB, free: 4.781 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.038e-05/0.8257, allocations: 102.9 kB / 0.8967 GB, free: 4.664 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002003/0.8277, allocations: 1.425 MB / 0.8981 GB, free: 3.238 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001739/0.8279, allocations: 57.7 kB / 0.8982 GB, free: 3.176 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008959/0.8288, allocations: 0.9628 MB / 0.8991 GB, free: 2.203 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006665/0.8294, allocations: 0.6816 MB / 0.8998 GB, free: 1.516 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000547/0.83, allocations: 303.5 kB / 0.9001 GB, free: 1.215 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.8301, allocations: 305.1 kB / 0.9004 GB, free: 0.9141 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/0.8316, allocations: 0.7335 MB / 0.9011 GB, free: 172 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.8332, allocations: 0.9107 MB / 0.902 GB, free: 15.21 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007597/0.8408, allocations: 2.577 MB / 0.9045 GB, free: 12.58 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.832e-06/0.8408, allocations: 0 / 0.9045 GB, free: 12.58 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005593/0.8464, allocations: 2.507 MB / 0.9069 GB, free: 10.04 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.961e-05/0.8465, allocations: 67.39 kB / 0.907 GB, free: 9.957 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.8465, allocations: 1.328 kB / 0.907 GB, free: 9.957 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/0.8481, allocations: 469.3 kB / 0.9075 GB, free: 9.492 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.8495, allocations: 323.5 kB / 0.9078 GB, free: 9.176 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008968/0.8584, allocations: 6.158 MB / 0.9138 GB, free: 2.797 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.8602, allocations: 60.03 kB / 0.9138 GB, free: 2.738 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003995/0.8606, allocations: 79.95 kB / 0.9139 GB, free: 2.66 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.001223/0.8618, allocations: 470 kB / 0.9144 GB, free: 2.191 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008999/0.8627, allocations: 230.5 kB / 0.9146 GB, free: 1.965 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007019/0.8697, allocations: 3.106 MB / 0.9176 GB, free: 14.83 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-05/0.8697, allocations: 23.94 kB / 0.9176 GB, free: 14.8 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.143e-05/0.8698, allocations: 8 kB / 0.9176 GB, free: 14.8 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/0.8698, allocations: 8.062 kB / 0.9177 GB, free: 14.79 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.8801, allocations: 4.847 MB / 0.9224 GB, free: 9.859 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.8801, allocations: 0 / 0.9224 GB, free: 9.859 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.8814, allocations: 311.6 kB / 0.9227 GB, free: 9.555 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/0.8829, allocations: 485.7 kB / 0.9231 GB, free: 9.074 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.8831, allocations: 71.95 kB / 0.9232 GB, free: 9.004 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008703/0.8918, allocations: 6.153 MB / 0.9292 GB, free: 2.621 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.8918, allocations: 4 kB / 0.9292 GB, free: 2.617 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008014/0.8998, allocations: 3.676 MB / 0.9328 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/0.9011, allocations: 438.2 kB / 0.9332 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005077/0.9016, allocations: 47.98 kB / 0.9333 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.9029, allocations: 63.97 kB / 0.9333 GB, free: 14.35 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004141/0.9033, allocations: 181.5 kB / 0.9335 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/0.9035, allocations: 71.95 kB / 0.9336 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001572/0.9051, allocations: 1.021 MB / 0.9346 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/0.9051, allocations: 0 / 0.9346 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002764/0.9078, allocations: 0.8971 MB / 0.9355 GB, free: 12.2 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.009139/0.917, allocations: 5.074 MB / 0.9404 GB, free: 7.074 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004823/0.9218, allocations: 2.364 MB / 0.9427 GB, free: 4.637 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.9218, allocations: 0 / 0.9427 GB, free: 4.637 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.003025/0.9248, allocations: 1.451 MB / 0.9441 GB, free: 3.168 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003202/0.928, allocations: 0.6591 MB / 0.9448 GB, free: 2.527 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03061/0.9586, allocations: 17 MB / 0.9614 GB, free: 1.152 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.9599, allocations: 1.013 MB / 0.9624 GB, free: 104 kB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001598/0.9615, allocations: 439.7 kB / 0.9628 GB, free: 15.7 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/0.963, allocations: 0.9912 MB / 0.9638 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of SimCode: time 1.093e-06/0.963, allocations: 4 kB / 0.9638 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1374/1.1, allocations: 71.25 MB / 1.033 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.3/17.4, allocations: 18.61 kB / 1.033 GB, free: 8.043 MB / 0.7794 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 21.315409471048042] Failed to read output from testmodel.py, exit status != 0: 17.603471964946948 17.624280241 16.864624629 Calling exit ...