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.001523/0.001523, allocations: 108.2 kB / 16.46 MB, free: 6.035 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.001611/0.001611, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.497/1.497, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8411/0.8411, allocations: 94.59 MB / 397.3 MB, free: 0.6758 MB / 302.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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.002544/0.002544, allocations: 84.73 kB / 0.5416 GB, free: 42.36 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1756, allocations: 71.85 MB / 0.6118 GB, free: 10.14 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6884/0.864, allocations: 226.2 MB / 0.8327 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03572/0.8997, allocations: 25.13 MB / 0.8572 GB, free: 388 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004629/0.9044, allocations: 83.97 kB / 0.8573 GB, free: 388 kB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.006375/0.9107, allocations: 1.666 MB / 0.859 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.01156/0.9223, allocations: 2.687 MB / 0.8616 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.007217/0.9295, allocations: 1.926 MB / 0.8635 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008292/0.9378, allocations: 4.088 MB / 0.8675 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001632/0.9394, allocations: 0.7083 MB / 0.8681 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004164/0.9436, allocations: 1.697 MB / 0.8698 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004068/0.9477, allocations: 2.149 MB / 0.8719 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0009253/0.9486, allocations: 316 kB / 0.8722 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009827/0.9584, allocations: 3.42 MB / 0.8755 GB, free: 240 kB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0009157/0.9593, allocations: 0.6578 MB / 0.8762 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002991/0.9623, allocations: 1.509 MB / 0.8777 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01241/0.9747, allocations: 4.859 MB / 0.8824 GB, free: 9.184 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.9747, allocations: 4 kB / 0.8824 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.154e-06/0.9747, allocations: 0 / 0.8824 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 9.571e-05/0.9748, allocations: 0 / 0.8824 GB, free: 9.18 MB / 0.6231 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.00846/0.9833, allocations: 3.448 MB / 0.8858 GB, free: 5.648 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 9.826e-05/0.9834, allocations: 16.03 kB / 0.8858 GB, free: 5.633 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003595/0.9837, allocations: 278.5 kB / 0.8861 GB, free: 5.352 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005807/0.9843, allocations: 310 kB / 0.8863 GB, free: 5.047 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003854/0.9882, allocations: 1.799 MB / 0.8881 GB, free: 3.199 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.9883, allocations: 151.8 kB / 0.8882 GB, free: 3.051 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003415/0.9887, allocations: 207.9 kB / 0.8884 GB, free: 2.848 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004938/0.9936, allocations: 2.336 MB / 0.8907 GB, free: 496 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.275e-05/0.9936, allocations: 0 / 0.8907 GB, free: 496 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.9938, allocations: 83.98 kB / 0.8908 GB, free: 412 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.888e-05/0.9939, allocations: 74.69 kB / 0.8909 GB, free: 336 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004466/0.9984, allocations: 2.233 MB / 0.8931 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01508/1.013, allocations: 10.26 MB / 0.9031 GB, free: 2.898 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003443/1.017, allocations: 1.776 MB / 0.9048 GB, free: 1.109 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001869/1.019, allocations: 0.9624 MB / 0.9058 GB, free: 148 kB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009416/1.028, allocations: 6.595 MB / 0.9122 GB, free: 8.723 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00227/1.03, allocations: 1.068 MB / 0.9132 GB, free: 7.637 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=193): time 3.126e-06/1.03, allocations: 0 / 0.9132 GB, free: 7.637 MB / 0.6544 GB Notification: Performance of matching and sorting (n=198): time 0.01419/1.045, allocations: 6.564 MB / 0.9196 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.067e-05/1.045, allocations: 102.9 kB / 0.9197 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00214/1.047, allocations: 1.421 MB / 0.9211 GB, free: 15.32 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001269/1.047, allocations: 65.7 kB / 0.9212 GB, free: 15.25 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001107/1.048, allocations: 0.9473 MB / 0.9221 GB, free: 14.29 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009345/1.049, allocations: 0.6893 MB / 0.9228 GB, free: 13.6 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005155/1.05, allocations: 299.6 kB / 0.9231 GB, free: 13.3 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001465/1.05, allocations: 301.1 kB / 0.9234 GB, free: 13.01 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/1.051, allocations: 0.6833 MB / 0.924 GB, free: 12.32 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/1.053, allocations: 0.8488 MB / 0.9249 GB, free: 11.45 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007477/1.06, allocations: 2.563 MB / 0.9274 GB, free: 8.828 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/1.06, allocations: 0 / 0.9274 GB, free: 8.828 MB / 0.67 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005406/1.066, allocations: 2.446 MB / 0.9298 GB, free: 6.352 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 8.997e-05/1.066, allocations: 63.39 kB / 0.9298 GB, free: 6.277 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/1.066, allocations: 0 / 0.9298 GB, free: 6.277 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001604/1.068, allocations: 469.2 kB / 0.9303 GB, free: 5.812 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/1.069, allocations: 323.5 kB / 0.9306 GB, free: 5.496 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009673/1.078, allocations: 6.459 MB / 0.9369 GB, free: 14.76 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/1.08, allocations: 60.08 kB / 0.9369 GB, free: 14.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003041/1.081, allocations: 77.14 kB / 0.937 GB, free: 14.63 MB / 0.6856 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.001347/1.082, allocations: 484.7 kB / 0.9375 GB, free: 14.15 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005055/1.083, allocations: 210.6 kB / 0.9377 GB, free: 13.94 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006631/1.089, allocations: 3.118 MB / 0.9407 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.897e-05/1.089, allocations: 20 kB / 0.9407 GB, free: 10.78 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/1.089, allocations: 11.94 kB / 0.9407 GB, free: 10.77 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.198e-05/1.089, allocations: 7.969 kB / 0.9408 GB, free: 10.76 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/1.099, allocations: 5.232 MB / 0.9459 GB, free: 5.43 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/1.099, allocations: 0.5 kB / 0.9459 GB, free: 5.43 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/1.101, allocations: 311.8 kB / 0.9462 GB, free: 5.125 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001406/1.102, allocations: 489.6 kB / 0.9466 GB, free: 4.641 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000146/1.102, allocations: 67.89 kB / 0.9467 GB, free: 4.574 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009755/1.112, allocations: 6.471 MB / 0.953 GB, free: 13.83 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/1.112, allocations: 12.08 kB / 0.953 GB, free: 13.82 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007949/1.12, allocations: 3.668 MB / 0.9566 GB, free: 10.11 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/1.121, allocations: 0.4916 MB / 0.9571 GB, free: 9.594 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000343/1.122, allocations: 47.94 kB / 0.9571 GB, free: 9.547 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/1.123, allocations: 63.95 kB / 0.9572 GB, free: 9.484 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004071/1.123, allocations: 173.6 kB / 0.9574 GB, free: 9.316 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001549/1.123, allocations: 83.83 kB / 0.9574 GB, free: 9.234 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001772/1.125, allocations: 1.01 MB / 0.9584 GB, free: 8.234 MB / 0.7012 GB Notification: Performance of sort global known variables: time 7e-08/1.125, allocations: 0 / 0.9584 GB, free: 8.234 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003036/1.128, allocations: 0.901 MB / 0.9593 GB, free: 7.332 MB / 0.7012 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.009161/1.137, allocations: 5.062 MB / 0.9642 GB, free: 2.215 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005027/1.142, allocations: 2.324 MB / 0.9665 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.142, allocations: 0 / 0.9665 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.003242/1.146, allocations: 1.451 MB / 0.9679 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003653/1.149, allocations: 0.661 MB / 0.9686 GB, free: 13.71 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03286/1.182, allocations: 16.75 MB / 0.9849 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002111/1.184, allocations: 1.581 MB / 0.9865 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002093/1.186, allocations: 435.1 kB / 0.9869 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/1.188, allocations: 0.9951 MB / 0.9879 GB, free: 9.637 MB / 0.7325 GB Notification: Performance of SimCode: time 9.92e-07/1.188, allocations: 0 / 0.9879 GB, free: 9.637 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5191/1.707, allocations: 67.42 MB / 1.054 GB, free: 320.3 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.99/16.69, allocations: 13.78 kB / 1.054 GB, free: 320.3 MB / 0.7794 GB " [Timeout remaining time 643] (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: 20.642162241972983] Failed to read output from testmodel.py, exit status != 0: 16.81565197277814 16.82770336 15.850264836 Calling exit ...