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.001801/0.001801, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002203/0.002203, allocations: 219.6 kB / 23.03 MB, free: 4.922 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.458/1.458, 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 main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.798/0.798, allocations: 100.3 MB / 413.6 MB, free: 3.383 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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_dev_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.002446/0.002446, allocations: 90.5 kB / 0.564 GB, free: 35.83 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1323, allocations: 74.45 MB / 0.6367 GB, free: 7.371 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5687/0.7011, allocations: 198.8 MB / 0.8309 GB, free: 8.047 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02959/0.7307, allocations: 22.85 MB / 0.8532 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002719/0.7334, allocations: 114.3 kB / 0.8533 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004445/0.7378, allocations: 1.441 MB / 0.8547 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007976/0.7458, allocations: 2.637 MB / 0.8573 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.006858/0.7527, allocations: 1.924 MB / 0.8591 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007843/0.7605, allocations: 4.103 MB / 0.8632 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001382/0.7619, allocations: 0.6826 MB / 0.8638 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003472/0.7653, allocations: 1.721 MB / 0.8655 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004315/0.7697, allocations: 2.165 MB / 0.8676 GB, free: 332 kB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0006826/0.7703, allocations: 312 kB / 0.8679 GB, free: 20 kB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00772/0.7781, allocations: 2.972 MB / 0.8708 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.7792, allocations: 0.6617 MB / 0.8715 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002586/0.7818, allocations: 1.229 MB / 0.8727 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.7922, allocations: 4.812 MB / 0.8774 GB, free: 6.316 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.7922, allocations: 4 kB / 0.8774 GB, free: 6.312 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.294e-06/0.7922, allocations: 0 / 0.8774 GB, free: 6.312 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001617/0.7923, allocations: 0 / 0.8774 GB, free: 6.312 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.009615/0.8019, allocations: 3.38 MB / 0.8807 GB, free: 2.871 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.802, allocations: 12.03 kB / 0.8807 GB, free: 2.859 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.944e-05/0.8021, allocations: 51.84 kB / 0.8807 GB, free: 2.809 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004106/0.8025, allocations: 274.6 kB / 0.881 GB, free: 2.531 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008478/0.8033, allocations: 322.1 kB / 0.8813 GB, free: 2.215 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003642/0.807, allocations: 1.703 MB / 0.883 GB, free: 480 kB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.8071, allocations: 139.8 kB / 0.8831 GB, free: 340 kB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004221/0.8075, allocations: 211.9 kB / 0.8833 GB, free: 128 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004718/0.8122, allocations: 2.357 MB / 0.8856 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/0.8123, allocations: 0 / 0.8856 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/0.8125, allocations: 76 kB / 0.8857 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.834e-05/0.8126, allocations: 78.69 kB / 0.8857 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004535/0.8171, allocations: 2.28 MB / 0.888 GB, free: 11.3 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01306/0.8302, allocations: 6.04 MB / 0.8939 GB, free: 5.184 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003769/0.8339, allocations: 1.749 MB / 0.8956 GB, free: 3.418 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002121/0.8361, allocations: 0.9616 MB / 0.8965 GB, free: 2.453 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00749/0.8436, allocations: 3.005 MB / 0.8995 GB, free: 15.42 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002307/0.8459, allocations: 1.064 MB / 0.9005 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=193): time 5.821e-06/0.8459, allocations: 0 / 0.9005 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of matching and sorting (n=198): time 0.01493/0.8608, allocations: 5.965 MB / 0.9063 GB, free: 8.32 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.987e-05/0.8609, allocations: 102.9 kB / 0.9064 GB, free: 8.203 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.863, allocations: 1.417 MB / 0.9078 GB, free: 6.785 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0002952/0.8632, allocations: 61.7 kB / 0.9079 GB, free: 6.719 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009356/0.8642, allocations: 0.959 MB / 0.9088 GB, free: 5.75 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.000829/0.865, allocations: 0.6894 MB / 0.9095 GB, free: 5.055 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006742/0.8657, allocations: 299.5 kB / 0.9098 GB, free: 4.754 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.8658, allocations: 301.1 kB / 0.91 GB, free: 4.457 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.8674, allocations: 0.7451 MB / 0.9108 GB, free: 3.699 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/0.8691, allocations: 0.9001 MB / 0.9116 GB, free: 2.758 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007784/0.8769, allocations: 2.577 MB / 0.9142 GB, free: 132 kB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.8769, allocations: 0 / 0.9142 GB, free: 132 kB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005752/0.8827, allocations: 2.51 MB / 0.9166 GB, free: 13.58 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.334e-05/0.8827, allocations: 65.59 kB / 0.9167 GB, free: 13.5 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.8828, allocations: 4 kB / 0.9167 GB, free: 13.5 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.8843, allocations: 477.2 kB / 0.9171 GB, free: 13.03 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.8857, allocations: 319.5 kB / 0.9174 GB, free: 12.71 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008747/0.8945, allocations: 6.155 MB / 0.9234 GB, free: 6.336 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/0.8961, allocations: 63.98 kB / 0.9235 GB, free: 6.273 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/0.8964, allocations: 71.97 kB / 0.9236 GB, free: 6.203 MB / 0.67 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.001063/0.8975, allocations: 479.5 kB / 0.924 GB, free: 5.727 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006289/0.8981, allocations: 226.5 kB / 0.9243 GB, free: 5.504 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006398/0.9045, allocations: 3.11 MB / 0.9273 GB, free: 2.363 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-05/0.9045, allocations: 23.94 kB / 0.9273 GB, free: 2.34 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.9045, allocations: 8 kB / 0.9273 GB, free: 2.332 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-05/0.9045, allocations: 11.95 kB / 0.9273 GB, free: 2.32 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009844/0.9144, allocations: 4.832 MB / 0.9321 GB, free: 13.41 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.9144, allocations: 4 kB / 0.9321 GB, free: 13.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.9158, allocations: 307.6 kB / 0.9323 GB, free: 13.1 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001625/0.9174, allocations: 489.6 kB / 0.9328 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002411/0.9177, allocations: 67.95 kB / 0.9329 GB, free: 12.55 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008717/0.9264, allocations: 6.153 MB / 0.9389 GB, free: 6.164 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/0.9264, allocations: 7.969 kB / 0.9389 GB, free: 6.156 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007528/0.9339, allocations: 3.669 MB / 0.9425 GB, free: 2.445 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/0.9351, allocations: 430.3 kB / 0.9429 GB, free: 2.023 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003823/0.9355, allocations: 51.94 kB / 0.9429 GB, free: 1.973 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.9366, allocations: 67.89 kB / 0.943 GB, free: 1.906 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003972/0.937, allocations: 181.5 kB / 0.9432 GB, free: 1.73 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/0.9372, allocations: 75.95 kB / 0.9432 GB, free: 1.656 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001606/0.9388, allocations: 1.013 MB / 0.9442 GB, free: 0.6523 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/0.9388, allocations: 0 / 0.9442 GB, free: 0.6523 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002915/0.9417, allocations: 0.8972 MB / 0.9451 GB, free: 15.75 MB / 0.7012 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.01019/0.9519, allocations: 5.088 MB / 0.9501 GB, free: 10.62 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005544/0.9574, allocations: 2.372 MB / 0.9524 GB, free: 8.172 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.9574, allocations: 4.062 kB / 0.9524 GB, free: 8.168 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.003486/0.9609, allocations: 1.454 MB / 0.9538 GB, free: 6.691 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003336/0.9643, allocations: 0.6625 MB / 0.9545 GB, free: 6.051 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0331/0.9974, allocations: 16.98 MB / 0.9711 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001284/0.9986, allocations: 1.017 MB / 0.972 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001724/1, allocations: 437.2 kB / 0.9725 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/1.002, allocations: 0.9874 MB / 0.9734 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of SimCode: time 1.292e-06/1.002, allocations: 0 / 0.9734 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1373/1.139, allocations: 71.25 MB / 1.043 GB, free: 11.62 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 16/17.14, allocations: 26.58 kB / 1.043 GB, free: 11.6 MB / 0.795 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 21.23156382399611] Failed to read output from testmodel.py, exit status != 0: 17.34717487602029 17.62149534 16.825630242 Calling exit ...