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.001215/0.001215, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001615/0.001615, allocations: 165.9 kB / 22.45 MB, free: 2.109 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 1.03/1.03, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.7134/0.7134, allocations: 80.17 MB / 339.4 MB, free: 7.543 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 0.4924 GB, free: 6.637 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.693e-05/1.875e-05, allocations: 2.281 kB / 0.4924 GB, free: 6.633 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.7647/0.7648, allocations: 206.1 MB / 0.6937 GB, free: 2.883 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.02754/0.7923, allocations: 19.82 MB / 0.713 GB, free: 2.52 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004668/0.797, allocations: 122.6 kB / 0.7131 GB, free: 2.52 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.005354/0.8023, allocations: 1.502 MB / 0.7146 GB, free: 2.312 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.8139, allocations: 2.906 MB / 0.7174 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.00723/0.8211, allocations: 1.994 MB / 0.7194 GB, free: 1.047 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.008405/0.8295, allocations: 4.586 MB / 0.7239 GB, free: 14.74 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001538/0.831, allocations: 0.6484 MB / 0.7245 GB, free: 14.4 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006645/0.8377, allocations: 2.535 MB / 0.727 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003366/0.841, allocations: 1.909 MB / 0.7288 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0007362/0.8418, allocations: 318.3 kB / 0.7291 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008149/0.8499, allocations: 2.965 MB / 0.732 GB, free: 11.5 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005628/0.8505, allocations: 0.6956 MB / 0.7327 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.002213/0.8527, allocations: 1.099 MB / 0.7338 GB, free: 10.43 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.008015/0.8607, allocations: 5.058 MB / 0.7387 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.8607, allocations: 0 / 0.7387 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.096e-06/0.8607, allocations: 3.938 kB / 0.7387 GB, free: 7.465 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.681e-05/0.8608, allocations: 0 / 0.7387 GB, free: 7.465 MB / 0.5573 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.007336/0.8681, allocations: 3.467 MB / 0.7421 GB, free: 5.027 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.887e-05/0.8682, allocations: 12.41 kB / 0.7421 GB, free: 5.027 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000285/0.8685, allocations: 275.3 kB / 0.7424 GB, free: 4.812 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007084/0.8692, allocations: 334.9 kB / 0.7427 GB, free: 4.645 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002521/0.8717, allocations: 1.748 MB / 0.7444 GB, free: 3.441 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.8718, allocations: 154 kB / 0.7446 GB, free: 3.367 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/0.8721, allocations: 208.2 kB / 0.7448 GB, free: 3.293 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003273/0.8754, allocations: 2.416 MB / 0.7471 GB, free: 1.598 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/0.8754, allocations: 4 kB / 0.7471 GB, free: 1.594 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.8755, allocations: 80 kB / 0.7472 GB, free: 1.516 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-05/0.8756, allocations: 77.31 kB / 0.7473 GB, free: 1.441 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002756/0.8784, allocations: 2.282 MB / 0.7495 GB, free: 15.16 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007819/0.8862, allocations: 6.697 MB / 0.756 GB, free: 8.547 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/0.8885, allocations: 1.753 MB / 0.7578 GB, free: 6.785 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.8897, allocations: 0.9674 MB / 0.7587 GB, free: 5.82 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004072/0.8938, allocations: 3.009 MB / 0.7616 GB, free: 2.832 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001354/0.8951, allocations: 1.062 MB / 0.7627 GB, free: 1.754 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 3.677e-06/0.8951, allocations: 0 / 0.7627 GB, free: 1.754 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.008596/0.9037, allocations: 6.004 MB / 0.7685 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.9038, allocations: 102.9 kB / 0.7686 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001657/0.9055, allocations: 1.521 MB / 0.7701 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.361e-05/0.9055, allocations: 57.7 kB / 0.7702 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.000934/0.9065, allocations: 1.003 MB / 0.7712 GB, free: 8.973 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003914/0.9069, allocations: 0.6859 MB / 0.7718 GB, free: 8.297 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003224/0.9072, allocations: 311.5 kB / 0.7721 GB, free: 7.988 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.403e-05/0.9073, allocations: 301.1 kB / 0.7724 GB, free: 7.691 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009232/0.9082, allocations: 0.7478 MB / 0.7731 GB, free: 6.934 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.9092, allocations: 0.9517 MB / 0.7741 GB, free: 5.918 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004614/0.9139, allocations: 2.633 MB / 0.7766 GB, free: 3.23 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.9139, allocations: 3.938 kB / 0.7766 GB, free: 3.227 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003283/0.9172, allocations: 2.573 MB / 0.7792 GB, free: 0.6562 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.722e-05/0.9172, allocations: 59.41 kB / 0.7792 GB, free: 0.5859 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.9172, allocations: 4 kB / 0.7792 GB, free: 0.582 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008862/0.9181, allocations: 476 kB / 0.7797 GB, free: 116 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007398/0.9188, allocations: 333.8 kB / 0.78 GB, free: 15.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00627/0.9251, allocations: 6.138 MB / 0.786 GB, free: 9.461 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008561/0.926, allocations: 68.02 kB / 0.786 GB, free: 9.395 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.9261, allocations: 79.97 kB / 0.7861 GB, free: 9.316 MB / 0.6042 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.0009222/0.927, allocations: 492.5 kB / 0.7866 GB, free: 8.844 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.9273, allocations: 242.5 kB / 0.7868 GB, free: 8.605 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004454/0.9318, allocations: 3.13 MB / 0.7899 GB, free: 5.48 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.9318, allocations: 20 kB / 0.7899 GB, free: 5.461 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.9318, allocations: 8 kB / 0.7899 GB, free: 5.453 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.9318, allocations: 7.969 kB / 0.7899 GB, free: 5.445 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005911/0.9377, allocations: 4.868 MB / 0.7947 GB, free: 0.5664 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.9377, allocations: 0 / 0.7947 GB, free: 0.5664 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006274/0.9384, allocations: 307.5 kB / 0.795 GB, free: 288 kB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008379/0.9392, allocations: 485.4 kB / 0.7954 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.9393, allocations: 75.95 kB / 0.7955 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005627/0.9449, allocations: 6.137 MB / 0.8015 GB, free: 9.391 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.945, allocations: 4 kB / 0.8015 GB, free: 9.387 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004911/0.9499, allocations: 3.684 MB / 0.8051 GB, free: 5.688 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007014/0.9506, allocations: 446.1 kB / 0.8055 GB, free: 5.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.9507, allocations: 44 kB / 0.8056 GB, free: 5.207 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005685/0.9513, allocations: 59.95 kB / 0.8056 GB, free: 5.148 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.9516, allocations: 192.9 kB / 0.8058 GB, free: 4.965 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.356e-05/0.9517, allocations: 71.95 kB / 0.8059 GB, free: 4.895 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001124/0.9528, allocations: 1.067 MB / 0.8069 GB, free: 3.805 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8e-08/0.9528, allocations: 0 / 0.8069 GB, free: 3.805 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002544/0.9553, allocations: 0.9518 MB / 0.8078 GB, free: 2.852 MB / 0.6198 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.006206/0.9616, allocations: 5.128 MB / 0.8129 GB, free: 13.76 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.003375/0.9649, allocations: 2.393 MB / 0.8152 GB, free: 11.33 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.9649, allocations: 0 / 0.8152 GB, free: 11.33 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.9667, allocations: 1.449 MB / 0.8166 GB, free: 9.891 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002895/0.9696, allocations: 1.005 MB / 0.8176 GB, free: 8.922 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02327/0.9929, allocations: 17.68 MB / 0.8348 GB, free: 6.973 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009307/0.9938, allocations: 1.039 MB / 0.8359 GB, free: 5.895 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.00174/0.9955, allocations: 466 kB / 0.8363 GB, free: 5.461 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009985/0.9965, allocations: 1.031 MB / 0.8373 GB, free: 4.43 MB / 0.6511 GB Notification: Performance of SimCode: time 2.205e-06/0.9965, allocations: 0 / 0.8373 GB, free: 4.43 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1111/1.108, allocations: 80.29 MB / 0.9157 GB, free: 4.996 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.82, allocations: 4.062 kB / 0.9157 GB, free: 4.992 MB / 0.7292 GB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 16.73589953314513] Failed to read output from testmodel.py, exit status != 0: 12.948715303093195 13.41908437 12.553515354 Calling exit ...