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.001396/0.001396, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001703/0.001703, allocations: 218.5 kB / 22.26 MB, free: 5.125 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.621/1.621, allocations: 230.6 MB / 256 MB, free: 7.984 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 1.039/1.039, allocations: 100.3 MB / 412.7 MB, free: 3.73 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",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.002947/0.002947, allocations: 85.61 kB / 0.5633 GB, free: 35.72 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1947, allocations: 74.46 MB / 0.636 GB, free: 7.668 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.87/1.065, allocations: 227.4 MB / 0.858 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.04156/1.106, allocations: 25.25 MB / 0.8827 GB, free: 5.828 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004403/1.111, allocations: 115 kB / 0.8828 GB, free: 5.715 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.005803/1.116, allocations: 1.67 MB / 0.8844 GB, free: 4.035 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01223/1.129, allocations: 2.692 MB / 0.8871 GB, free: 1.328 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.007827/1.137, allocations: 1.951 MB / 0.889 GB, free: 15.37 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.008719/1.145, allocations: 4.108 MB / 0.893 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/1.147, allocations: 0.6714 MB / 0.8936 GB, free: 10.52 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005062/1.152, allocations: 1.732 MB / 0.8953 GB, free: 8.785 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006028/1.158, allocations: 2.149 MB / 0.8974 GB, free: 6.629 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.001008/1.159, allocations: 316 kB / 0.8977 GB, free: 6.32 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01174/1.171, allocations: 3.447 MB / 0.9011 GB, free: 2.867 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001264/1.172, allocations: 0.6655 MB / 0.9018 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.003092/1.175, allocations: 1.512 MB / 0.9032 GB, free: 0.6797 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01318/1.189, allocations: 4.851 MB / 0.908 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/1.189, allocations: 0 / 0.908 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.485e-06/1.189, allocations: 0 / 0.908 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.322e-05/1.189, allocations: 7.938 kB / 0.908 GB, free: 11.8 MB / 0.6544 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.01001/1.199, allocations: 3.38 MB / 0.9113 GB, free: 8.363 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/1.199, allocations: 12.03 kB / 0.9113 GB, free: 8.352 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005263/1.199, allocations: 278.5 kB / 0.9116 GB, free: 8.07 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006104/1.2, allocations: 306.1 kB / 0.9118 GB, free: 7.77 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00375/1.204, allocations: 1.699 MB / 0.9135 GB, free: 6.031 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/1.204, allocations: 147.7 kB / 0.9136 GB, free: 5.887 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005807/1.204, allocations: 211.9 kB / 0.9138 GB, free: 5.68 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004899/1.209, allocations: 2.355 MB / 0.9161 GB, free: 3.301 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.988e-05/1.209, allocations: 7.922 kB / 0.9162 GB, free: 3.293 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003592/1.21, allocations: 87.98 kB / 0.9162 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001074/1.21, allocations: 70.7 kB / 0.9163 GB, free: 3.137 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00472/1.214, allocations: 2.276 MB / 0.9185 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/1.233, allocations: 10.19 MB / 0.9285 GB, free: 5.719 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003879/1.237, allocations: 1.765 MB / 0.9302 GB, free: 3.938 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00212/1.239, allocations: 0.9724 MB / 0.9311 GB, free: 2.965 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007913/1.247, allocations: 3.36 MB / 0.9344 GB, free: 15.58 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002394/1.249, allocations: 1.064 MB / 0.9355 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=193): time 4.328e-06/1.249, allocations: 4 kB / 0.9355 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of matching and sorting (n=198): time 0.01497/1.264, allocations: 5.95 MB / 0.9413 GB, free: 8.488 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.472e-05/1.264, allocations: 98.92 kB / 0.9414 GB, free: 8.375 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002435/1.267, allocations: 1.425 MB / 0.9428 GB, free: 6.949 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001623/1.267, allocations: 61.7 kB / 0.9428 GB, free: 6.883 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001182/1.268, allocations: 0.9551 MB / 0.9438 GB, free: 5.918 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007148/1.269, allocations: 0.6932 MB / 0.9444 GB, free: 5.219 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005545/1.269, allocations: 295.6 kB / 0.9447 GB, free: 4.922 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001779/1.269, allocations: 301.1 kB / 0.945 GB, free: 4.625 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/1.271, allocations: 0.6911 MB / 0.9457 GB, free: 3.934 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/1.273, allocations: 0.8488 MB / 0.9465 GB, free: 3.055 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007927/1.281, allocations: 2.562 MB / 0.949 GB, free: 452 kB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/1.281, allocations: 0 / 0.949 GB, free: 452 kB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.006046/1.287, allocations: 2.444 MB / 0.9514 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 7.931e-05/1.287, allocations: 63.34 kB / 0.9515 GB, free: 13.89 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/1.287, allocations: 7.984 kB / 0.9515 GB, free: 13.88 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001685/1.288, allocations: 465.3 kB / 0.9519 GB, free: 13.42 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/1.29, allocations: 319.5 kB / 0.9522 GB, free: 13.11 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/1.3, allocations: 6.273 MB / 0.9583 GB, free: 6.613 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/1.302, allocations: 67.92 kB / 0.9584 GB, free: 6.547 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/1.302, allocations: 71.97 kB / 0.9585 GB, free: 6.477 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.001535/1.304, allocations: 475.1 kB / 0.9589 GB, free: 6.004 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005882/1.304, allocations: 214.6 kB / 0.9591 GB, free: 5.793 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006888/1.311, allocations: 3.116 MB / 0.9622 GB, free: 2.648 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-05/1.311, allocations: 20 kB / 0.9622 GB, free: 2.629 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.991e-05/1.312, allocations: 15.92 kB / 0.9622 GB, free: 2.613 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-05/1.312, allocations: 7.969 kB / 0.9622 GB, free: 2.605 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/1.323, allocations: 5.194 MB / 0.9673 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/1.323, allocations: 0 / 0.9673 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/1.324, allocations: 311.8 kB / 0.9676 GB, free: 13.02 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/1.326, allocations: 481.4 kB / 0.968 GB, free: 12.54 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/1.326, allocations: 67.95 kB / 0.9681 GB, free: 12.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009524/1.335, allocations: 6.268 MB / 0.9742 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.335, allocations: 4.062 kB / 0.9742 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008144/1.344, allocations: 3.669 MB / 0.9778 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001573/1.345, allocations: 434.2 kB / 0.9782 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/1.345, allocations: 51.92 kB / 0.9783 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009901/1.346, allocations: 59.97 kB / 0.9783 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004112/1.347, allocations: 181.6 kB / 0.9785 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003601/1.347, allocations: 76.08 kB / 0.9786 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00159/1.349, allocations: 1.013 MB / 0.9796 GB, free: 488 kB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/1.349, allocations: 0 / 0.9796 GB, free: 488 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003389/1.352, allocations: 0.9011 MB / 0.9805 GB, free: 15.57 MB / 0.7325 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.00994/1.362, allocations: 5.067 MB / 0.9854 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00573/1.368, allocations: 2.318 MB / 0.9877 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/1.368, allocations: 0 / 0.9877 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00319/1.371, allocations: 1.459 MB / 0.9891 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003734/1.375, allocations: 0.6623 MB / 0.9897 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03692/1.412, allocations: 16.74 MB / 1.006 GB, free: 4.891 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002091/1.414, allocations: 1.584 MB / 1.008 GB, free: 3.27 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.002058/1.416, allocations: 441.3 kB / 1.008 GB, free: 2.859 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/1.418, allocations: 0.9913 MB / 1.009 GB, free: 1.867 MB / 0.7481 GB Notification: Performance of SimCode: time 1.663e-06/1.418, allocations: 0 / 1.009 GB, free: 1.867 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6585/2.076, allocations: 68.83 MB / 1.076 GB, free: 318.9 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/19.19, allocations: 2.828 kB / 1.076 GB, free: 318.9 MB / 0.795 GB " [Timeout remaining time 641] (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: 23.565918826963753] Failed to read output from testmodel.py, exit status != 0: 19.33630084595643 19.348437008 18.156674588 Calling exit ...