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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 109 kB / 17.54 MB, free: 4.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 189.9 kB / 20.71 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 225.6 MB / 249.3 MB, free: 3.223 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5616/0.5616, allocations: 94.58 MB / 399 MB, free: 15.84 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002204/0.002204, allocations: 87.81 kB / 0.5442 GB, free: 12.69 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.341, allocations: 71.84 MB / 0.6144 GB, free: 3.879 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.2401/0.5811, allocations: 227.3 MB / 0.8364 GB, free: 1.047 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.028/0.6091, allocations: 25.24 MB / 0.861 GB, free: 7.727 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001702/0.6108, allocations: 83.5 kB / 0.8611 GB, free: 7.645 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.003555/0.6144, allocations: 1.678 MB / 0.8627 GB, free: 5.957 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.005671/0.62, allocations: 2.688 MB / 0.8653 GB, free: 3.254 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004169/0.6242, allocations: 1.922 MB / 0.8672 GB, free: 1.328 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.3153/0.9395, allocations: 4.085 MB / 0.8712 GB, free: 6.582 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.9406, allocations: 0.6697 MB / 0.8719 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002747/0.9433, allocations: 1.694 MB / 0.8735 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003467/0.9468, allocations: 2.157 MB / 0.8756 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0006169/0.9474, allocations: 313 kB / 0.8759 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00761/0.955, allocations: 3.417 MB / 0.8793 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0006878/0.9557, allocations: 0.6561 MB / 0.8799 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002158/0.9579, allocations: 1.518 MB / 0.8814 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.007733/0.9656, allocations: 4.847 MB / 0.8861 GB, free: 5.859 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.9656, allocations: 0 / 0.8861 GB, free: 5.859 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.784e-06/0.9656, allocations: 4.031 kB / 0.8861 GB, free: 5.859 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.746e-05/0.9657, allocations: 0 / 0.8861 GB, free: 5.859 MB / 0.6856 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.007144/0.9728, allocations: 3.465 MB / 0.8895 GB, free: 20.27 MB / 0.7013 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.9729, allocations: 9.75 kB / 0.8895 GB, free: 20.27 MB / 0.7013 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003041/0.9732, allocations: 276.1 kB / 0.8898 GB, free: 20.22 MB / 0.7013 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006319/0.9738, allocations: 307.7 kB / 0.8901 GB, free: 20.06 MB / 0.7013 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002735/0.9765, allocations: 1.801 MB / 0.8918 GB, free: 19.56 MB / 0.7013 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.9766, allocations: 145.5 kB / 0.892 GB, free: 19.56 MB / 0.7013 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003044/0.9769, allocations: 206.4 kB / 0.8922 GB, free: 19.55 MB / 0.7013 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003221/0.9802, allocations: 2.341 MB / 0.8945 GB, free: 19.42 MB / 0.7013 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.9802, allocations: 3.188 kB / 0.8945 GB, free: 19.42 MB / 0.7013 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001534/0.9804, allocations: 73.41 kB / 0.8945 GB, free: 19.42 MB / 0.7013 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.86e-05/0.9804, allocations: 77.14 kB / 0.8946 GB, free: 19.41 MB / 0.7013 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002983/0.9834, allocations: 2.242 MB / 0.8968 GB, free: 19.39 MB / 0.7013 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01094/0.9943, allocations: 10.25 MB / 0.9068 GB, free: 14.02 MB / 0.7013 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.997, allocations: 1.776 MB / 0.9085 GB, free: 13.93 MB / 0.7013 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/0.9984, allocations: 0.9695 MB / 0.9095 GB, free: 13.91 MB / 0.7013 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007037/1.005, allocations: 6.602 MB / 0.9159 GB, free: 9.363 MB / 0.7013 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001544/1.007, allocations: 1.065 MB / 0.917 GB, free: 9.273 MB / 0.7013 GB Notification: Performance of pre-optimization done (n=193): time 3.136e-06/1.007, allocations: 0.875 kB / 0.917 GB, free: 9.273 MB / 0.7013 GB Notification: Performance of matching and sorting (n=198): time 0.01095/1.018, allocations: 6.559 MB / 0.9234 GB, free: 7.395 MB / 0.7013 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/1.018, allocations: 106.5 kB / 0.9235 GB, free: 7.301 MB / 0.7013 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/1.02, allocations: 1.428 MB / 0.9249 GB, free: 7.133 MB / 0.7013 GB Notification: Performance of collectPreVariables (initialization): time 0.0001183/1.02, allocations: 58.33 kB / 0.9249 GB, free: 7.102 MB / 0.7013 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005646/1.02, allocations: 0.9476 MB / 0.9259 GB, free: 6.777 MB / 0.7013 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/1.021, allocations: 0.6944 MB / 0.9265 GB, free: 6.32 MB / 0.7013 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004184/1.021, allocations: 295.4 kB / 0.9268 GB, free: 6.305 MB / 0.7013 GB Notification: Performance of setup shared object (initialization): time 0.0001197/1.021, allocations: 302.1 kB / 0.9271 GB, free: 6.008 MB / 0.7013 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/1.022, allocations: 0.6885 MB / 0.9278 GB, free: 6.004 MB / 0.7013 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/1.023, allocations: 0.8463 MB / 0.9286 GB, free: 5.91 MB / 0.7013 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006226/1.03, allocations: 2.562 MB / 0.9311 GB, free: 5.688 MB / 0.7013 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/1.03, allocations: 1.688 kB / 0.9311 GB, free: 5.688 MB / 0.7013 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004679/1.034, allocations: 2.441 MB / 0.9335 GB, free: 5.402 MB / 0.7013 GB Notification: Performance of prepare postOptimizeDAE: time 5.929e-05/1.034, allocations: 66.62 kB / 0.9336 GB, free: 5.34 MB / 0.7013 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/1.034, allocations: 2.938 kB / 0.9336 GB, free: 5.34 MB / 0.7013 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/1.036, allocations: 473.2 kB / 0.934 GB, free: 5.316 MB / 0.7013 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/1.037, allocations: 319.2 kB / 0.9343 GB, free: 5.316 MB / 0.7013 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006781/1.044, allocations: 6.455 MB / 0.9406 GB, free: 2.367 MB / 0.7013 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/1.045, allocations: 62.22 kB / 0.9407 GB, free: 2.367 MB / 0.7013 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/1.045, allocations: 72.12 kB / 0.9407 GB, free: 2.367 MB / 0.7013 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.0009217/1.046, allocations: 486.2 kB / 0.9412 GB, free: 2.246 MB / 0.7013 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003768/1.046, allocations: 217.8 kB / 0.9414 GB, free: 2.125 MB / 0.7013 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004936/1.051, allocations: 3.11 MB / 0.9444 GB, free: 1.82 MB / 0.7013 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/1.051, allocations: 22.62 kB / 0.9445 GB, free: 1.82 MB / 0.7013 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/1.051, allocations: 5.125 kB / 0.9445 GB, free: 1.82 MB / 0.7013 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.032e-05/1.051, allocations: 13.81 kB / 0.9445 GB, free: 1.82 MB / 0.7013 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007112/1.059, allocations: 5.217 MB / 0.9496 GB, free: 1.246 MB / 0.7013 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/1.059, allocations: 2.656 kB / 0.9496 GB, free: 1.246 MB / 0.7013 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/1.06, allocations: 313.3 kB / 0.9499 GB, free: 1.246 MB / 0.7013 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001169/1.061, allocations: 494.8 kB / 0.9504 GB, free: 1.211 MB / 0.7013 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/1.061, allocations: 67.31 kB / 0.9504 GB, free: 1.211 MB / 0.7013 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006594/1.068, allocations: 6.456 MB / 0.9567 GB, free: 14.26 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.068, allocations: 10.39 kB / 0.9567 GB, free: 14.26 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005376/1.073, allocations: 3.675 MB / 0.9603 GB, free: 13.31 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009115/1.074, allocations: 0.5028 MB / 0.9608 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/1.074, allocations: 45.75 kB / 0.9609 GB, free: 12.92 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009639/1.075, allocations: 58.47 kB / 0.9609 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002767/1.075, allocations: 181.5 kB / 0.9611 GB, free: 12.86 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/1.075, allocations: 72.59 kB / 0.9612 GB, free: 12.85 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00119/1.077, allocations: 1.019 MB / 0.9622 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/1.077, allocations: 0.875 kB / 0.9622 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002329/1.079, allocations: 0.8987 MB / 0.963 GB, free: 12.25 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.007605/1.087, allocations: 5.071 MB / 0.968 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.004149/1.091, allocations: 2.315 MB / 0.9702 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/1.091, allocations: 0 / 0.9702 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002557/1.093, allocations: 1.449 MB / 0.9717 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002968/1.096, allocations: 0.6621 MB / 0.9723 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02716/1.123, allocations: 16.77 MB / 0.9887 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/1.125, allocations: 1.585 MB / 0.9902 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001398/1.126, allocations: 437.3 kB / 0.9906 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/1.127, allocations: 0.9874 MB / 0.9916 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of SimCode: time 7.32e-07/1.127, allocations: 0 / 0.9916 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1229/1.25, allocations: 67.67 MB / 1.058 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/14.35, allocations: 0 / 1.058 GB, free: 14.11 MB / 0.8106 GB " [Timeout remaining time 646] (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 --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: 18.796322441994562]