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.001776/0.001776, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.002013/0.002013, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.506/1.506, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.7338/0.7338, allocations: 100.3 MB / 409.8 MB, free: 5.348 MB / 334.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.002378/0.002378, allocations: 79.88 kB / 0.5589 GB, free: 13.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.388/0.3904, allocations: 74.41 MB / 0.6315 GB, free: 2.406 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6457/1.036, allocations: 226.3 MB / 0.8526 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02432/1.06, allocations: 25.12 MB / 0.8771 GB, free: 1.32 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00298/1.063, allocations: 120.2 kB / 0.8772 GB, free: 1.32 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.004273/1.068, allocations: 1.667 MB / 0.8788 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.007153/1.075, allocations: 2.683 MB / 0.8815 GB, free: 1.191 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.005462/1.08, allocations: 1.913 MB / 0.8833 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005719/1.086, allocations: 4.088 MB / 0.8873 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001431/1.087, allocations: 0.7007 MB / 0.888 GB, free: 1.012 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003265/1.091, allocations: 1.732 MB / 0.8897 GB, free: 1.004 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003692/1.094, allocations: 2.151 MB / 0.8918 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0006891/1.095, allocations: 313.4 kB / 0.8921 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007448/1.103, allocations: 3.417 MB / 0.8954 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.000865/1.103, allocations: 0.6559 MB / 0.8961 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002221/1.106, allocations: 1.517 MB / 0.8975 GB, free: 236 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01016/1.116, allocations: 4.85 MB / 0.9023 GB, free: 15.55 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/1.116, allocations: 1.25 kB / 0.9023 GB, free: 15.55 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.264e-06/1.116, allocations: 0.6562 kB / 0.9023 GB, free: 15.55 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001282/1.116, allocations: 0 / 0.9023 GB, free: 15.55 MB / 0.67 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.01118/1.127, allocations: 3.466 MB / 0.9057 GB, free: 13.95 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/1.127, allocations: 13.53 kB / 0.9057 GB, free: 13.94 MB / 0.67 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.161e-05/1.127, allocations: 50.66 kB / 0.9057 GB, free: 13.94 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004034/1.128, allocations: 275.3 kB / 0.906 GB, free: 13.89 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007972/1.128, allocations: 308.5 kB / 0.9063 GB, free: 13.73 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003845/1.132, allocations: 1.811 MB / 0.9081 GB, free: 13.21 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/1.132, allocations: 145.9 kB / 0.9082 GB, free: 13.21 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003668/1.133, allocations: 205.8 kB / 0.9084 GB, free: 13.2 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004421/1.137, allocations: 2.339 MB / 0.9107 GB, free: 13.07 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.905e-05/1.137, allocations: 0 / 0.9107 GB, free: 13.07 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001896/1.137, allocations: 76.22 kB / 0.9107 GB, free: 13.07 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-05/1.137, allocations: 81.83 kB / 0.9108 GB, free: 13.07 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003897/1.141, allocations: 2.231 MB / 0.913 GB, free: 13.05 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/1.155, allocations: 10.26 MB / 0.923 GB, free: 7.496 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003197/1.158, allocations: 1.77 MB / 0.9248 GB, free: 7.242 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/1.16, allocations: 0.9609 MB / 0.9257 GB, free: 7.102 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009094/1.169, allocations: 6.604 MB / 0.9321 GB, free: 0.6836 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002134/1.171, allocations: 1.066 MB / 0.9332 GB, free: 36 kB / 0.67 GB Notification: Performance of pre-optimization done (n=193): time 3.436e-06/1.171, allocations: 0 / 0.9332 GB, free: 36 kB / 0.67 GB Notification: Performance of matching and sorting (n=198): time 0.01414/1.186, allocations: 6.588 MB / 0.9396 GB, free: 11 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.836e-05/1.186, allocations: 104.3 kB / 0.9397 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/1.188, allocations: 1.417 MB / 0.9411 GB, free: 9.461 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002877/1.188, allocations: 61.7 kB / 0.9412 GB, free: 9.395 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009235/1.189, allocations: 0.9512 MB / 0.9421 GB, free: 8.434 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000759/1.19, allocations: 0.6848 MB / 0.9428 GB, free: 7.758 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005652/1.19, allocations: 303.5 kB / 0.943 GB, free: 7.453 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001316/1.191, allocations: 305.1 kB / 0.9433 GB, free: 7.152 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/1.192, allocations: 0.6897 MB / 0.944 GB, free: 6.465 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/1.194, allocations: 0.845 MB / 0.9448 GB, free: 5.594 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008078/1.202, allocations: 2.567 MB / 0.9473 GB, free: 2.98 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/1.202, allocations: 0 / 0.9473 GB, free: 2.98 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.00536/1.207, allocations: 2.431 MB / 0.9497 GB, free: 0.5547 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 8.056e-05/1.207, allocations: 67.39 kB / 0.9498 GB, free: 488 kB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/1.207, allocations: 4 kB / 0.9498 GB, free: 484 kB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/1.209, allocations: 471.9 kB / 0.9502 GB, free: 8 kB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/1.21, allocations: 330.9 kB / 0.9506 GB, free: 15.7 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009124/1.219, allocations: 6.448 MB / 0.9568 GB, free: 9.004 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/1.221, allocations: 67.98 kB / 0.9569 GB, free: 8.938 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002466/1.221, allocations: 67.97 kB / 0.957 GB, free: 8.871 MB / 0.7012 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.001173/1.222, allocations: 477.1 kB / 0.9574 GB, free: 8.414 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005536/1.223, allocations: 222.5 kB / 0.9576 GB, free: 8.195 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006451/1.229, allocations: 3.115 MB / 0.9607 GB, free: 5.082 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.243e-05/1.23, allocations: 23.94 kB / 0.9607 GB, free: 5.059 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/1.23, allocations: 8 kB / 0.9607 GB, free: 5.051 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.478e-05/1.23, allocations: 10.5 kB / 0.9607 GB, free: 5.043 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/1.24, allocations: 5.22 MB / 0.9658 GB, free: 15.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/1.24, allocations: 4 kB / 0.9658 GB, free: 15.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/1.241, allocations: 304.3 kB / 0.9661 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001618/1.243, allocations: 0.4901 MB / 0.9666 GB, free: 15.04 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001991/1.243, allocations: 71.95 kB / 0.9667 GB, free: 14.97 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008765/1.252, allocations: 6.462 MB / 0.973 GB, free: 8.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.252, allocations: 4 kB / 0.973 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007991/1.26, allocations: 3.662 MB / 0.9766 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001668/1.261, allocations: 0.4955 MB / 0.977 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004861/1.262, allocations: 55.89 kB / 0.9771 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/1.263, allocations: 63.95 kB / 0.9772 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004179/1.263, allocations: 176.1 kB / 0.9773 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/1.263, allocations: 75.95 kB / 0.9774 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001723/1.265, allocations: 1.017 MB / 0.9784 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7e-08/1.265, allocations: 0 / 0.9784 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003397/1.269, allocations: 0.8971 MB / 0.9793 GB, free: 1.793 MB / 0.7169 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.009319/1.278, allocations: 5.059 MB / 0.9842 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005077/1.283, allocations: 2.325 MB / 0.9865 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/1.283, allocations: 4 kB / 0.9865 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003309/1.286, allocations: 1.446 MB / 0.9879 GB, free: 9.004 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003743/1.29, allocations: 0.6692 MB / 0.9885 GB, free: 8.359 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03261/1.323, allocations: 16.74 MB / 1.005 GB, free: 7.438 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001419/1.324, allocations: 1.582 MB / 1.006 GB, free: 5.82 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001784/1.326, allocations: 441.9 kB / 1.007 GB, free: 5.41 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001552/1.327, allocations: 0.9913 MB / 1.008 GB, free: 4.418 MB / 0.7481 GB Notification: Performance of SimCode: time 7.62e-07/1.327, allocations: 0 / 1.008 GB, free: 4.418 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1342/1.462, allocations: 67.52 MB / 1.074 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/16, allocations: 1.875 kB / 1.074 GB, free: 1.344 MB / 0.8106 GB " [Timeout remaining time 644] (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: 19.63737678900361] Failed to read output from testmodel.py, exit status != 0: 16.1853902360308 16.207793927 15.087623446 Calling exit ...