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.001139/0.001139, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001245/0.001245, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.87/0.87, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.5995/0.5995, allocations: 116 MB / 375.2 MB, free: 4.176 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.5532 GB, free: 13.32 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.346e-05/1.493e-05, allocations: 2.281 kB / 0.5532 GB, free: 13.32 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4024/0.4024, allocations: 206.2 MB / 0.7546 GB, free: 12.25 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01706/0.4195, allocations: 19.91 MB / 0.7741 GB, free: 11.5 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001603/0.4211, allocations: 138.8 kB / 0.7742 GB, free: 11.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002423/0.4235, allocations: 1.509 MB / 0.7757 GB, free: 9.848 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.004401/0.4279, allocations: 2.922 MB / 0.7785 GB, free: 6.906 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.003005/0.4309, allocations: 2.056 MB / 0.7805 GB, free: 4.844 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.003339/0.4343, allocations: 4.673 MB / 0.7851 GB, free: 152 kB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007696/0.435, allocations: 0.6797 MB / 0.7857 GB, free: 15.41 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002204/0.4372, allocations: 2.575 MB / 0.7883 GB, free: 12.83 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001474/0.4387, allocations: 1.909 MB / 0.7901 GB, free: 10.92 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0004802/0.4392, allocations: 312 kB / 0.7904 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003338/0.4425, allocations: 2.973 MB / 0.7933 GB, free: 7.637 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0003524/0.4429, allocations: 0.6966 MB / 0.794 GB, free: 6.938 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0007119/0.4436, allocations: 1.103 MB / 0.7951 GB, free: 5.832 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.004106/0.4477, allocations: 5.165 MB / 0.8001 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.4477, allocations: 3.938 kB / 0.8001 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4477, allocations: 0 / 0.8001 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.35e-05/0.4477, allocations: 0 / 0.8001 GB, free: 0.6484 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.004037/0.4518, allocations: 3.533 MB / 0.8036 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.4518, allocations: 8.031 kB / 0.8036 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002376/0.452, allocations: 274.8 kB / 0.8039 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004053/0.4524, allocations: 341.9 kB / 0.8042 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002328/0.4548, allocations: 1.87 MB / 0.806 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.182e-05/0.4548, allocations: 143.9 kB / 0.8061 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002141/0.4551, allocations: 215.8 kB / 0.8063 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.4576, allocations: 2.417 MB / 0.8087 GB, free: 7.707 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.4576, allocations: 0 / 0.8087 GB, free: 7.707 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.4577, allocations: 79.98 kB / 0.8088 GB, free: 7.629 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-05/0.4578, allocations: 78.69 kB / 0.8089 GB, free: 7.551 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002495/0.4603, allocations: 2.284 MB / 0.8111 GB, free: 5.258 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006852/0.4671, allocations: 6.669 MB / 0.8176 GB, free: 14.48 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/0.4693, allocations: 1.74 MB / 0.8193 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.4704, allocations: 0.949 MB / 0.8202 GB, free: 11.77 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003334/0.4737, allocations: 2.927 MB / 0.8231 GB, free: 8.816 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001125/0.4748, allocations: 1.053 MB / 0.8241 GB, free: 7.742 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=193): time 2.825e-06/0.4748, allocations: 0 / 0.8241 GB, free: 7.742 MB / 0.6667 GB Notification: Performance of matching and sorting (n=198): time 0.007425/0.4823, allocations: 5.98 MB / 0.83 GB, free: 1.703 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.4823, allocations: 106.9 kB / 0.8301 GB, free: 1.582 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/0.4836, allocations: 1.577 MB / 0.8316 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.797e-05/0.4837, allocations: 65.69 kB / 0.8317 GB, free: 15.89 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007735/0.4845, allocations: 1.034 MB / 0.8327 GB, free: 14.85 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003334/0.4848, allocations: 0.6854 MB / 0.8333 GB, free: 14.16 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002985/0.4851, allocations: 307.5 kB / 0.8336 GB, free: 13.85 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.4852, allocations: 301.1 kB / 0.8339 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008318/0.486, allocations: 0.7335 MB / 0.8346 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009382/0.4869, allocations: 0.9361 MB / 0.8356 GB, free: 11.81 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003772/0.4907, allocations: 2.599 MB / 0.8381 GB, free: 9.137 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.4907, allocations: 0 / 0.8381 GB, free: 9.137 MB / 0.6823 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003132/0.4939, allocations: 2.553 MB / 0.8406 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.756e-05/0.4939, allocations: 63.39 kB / 0.8406 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.4939, allocations: 16.09 kB / 0.8407 GB, free: 6.453 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000784/0.4947, allocations: 470.4 kB / 0.8411 GB, free: 5.988 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006706/0.4954, allocations: 331.5 kB / 0.8414 GB, free: 5.664 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005316/0.5007, allocations: 6.144 MB / 0.8474 GB, free: 15.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.5012, allocations: 63.95 kB / 0.8475 GB, free: 15.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.5013, allocations: 75.97 kB / 0.8476 GB, free: 15.16 MB / 0.698 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: 16 * 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 (180): * Single equations (assignments): 176 * 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.000646/0.502, allocations: 0.4898 MB / 0.848 GB, free: 14.66 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002887/0.5023, allocations: 250.4 kB / 0.8483 GB, free: 14.42 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00369/0.506, allocations: 3.119 MB / 0.8513 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.506, allocations: 24 kB / 0.8513 GB, free: 11.25 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/0.506, allocations: 4 kB / 0.8513 GB, free: 11.25 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/0.506, allocations: 15.95 kB / 0.8514 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005642/0.5116, allocations: 4.813 MB / 0.8561 GB, free: 6.332 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.5116, allocations: 4 kB / 0.8561 GB, free: 6.328 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006289/0.5123, allocations: 307.6 kB / 0.8564 GB, free: 6.027 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007744/0.5131, allocations: 485.6 kB / 0.8568 GB, free: 5.547 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.886e-05/0.5132, allocations: 75.95 kB / 0.8569 GB, free: 5.473 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00512/0.5183, allocations: 6.145 MB / 0.8629 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.5183, allocations: 12 kB / 0.8629 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.5233, allocations: 3.658 MB / 0.8665 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009704/0.5243, allocations: 446.1 kB / 0.8669 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.5245, allocations: 48 kB / 0.867 GB, free: 10.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007408/0.5253, allocations: 63.95 kB / 0.867 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/0.5255, allocations: 177.6 kB / 0.8672 GB, free: 10.66 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.5256, allocations: 71.95 kB / 0.8672 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.00122/0.5269, allocations: 1.113 MB / 0.8683 GB, free: 9.461 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.91e-07/0.5269, allocations: 3.938 kB / 0.8683 GB, free: 9.457 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002589/0.5295, allocations: 0.9557 MB / 0.8693 GB, free: 8.5 MB / 0.7136 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.006875/0.5363, allocations: 5.076 MB / 0.8742 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003702/0.54, allocations: 2.365 MB / 0.8765 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.54, allocations: 4.125 kB / 0.8765 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.5421, allocations: 1.447 MB / 0.878 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003139/0.5452, allocations: 0.9995 MB / 0.8789 GB, free: 14.49 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02843/0.5736, allocations: 17.87 MB / 0.8964 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.5746, allocations: 1.065 MB / 0.8974 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.001473/0.5761, allocations: 474.1 kB / 0.8979 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/0.5773, allocations: 1.039 MB / 0.8989 GB, free: 9.629 MB / 0.7448 GB Notification: Performance of SimCode: time 1.864e-06/0.5773, allocations: 0 / 0.8989 GB, free: 9.629 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3548/0.932, allocations: 81.27 MB / 0.9783 GB, free: 286.1 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.853/10.79, allocations: 8.141 kB / 0.9783 GB, free: 286.1 MB / 0.7761 GB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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: 13.399980749934912] Failed to read output from testmodel.py, exit status != 0: 10.904575914144516 10.916512225 10.466738564 Calling exit ...