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.001519/0.001519, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.001612/0.001612, allocations: 215 kB / 20.13 MB, free: 2.949 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.525/1.525, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.6308/0.6308, allocations: 94.56 MB / 404.1 MB, free: 10.95 MB / 334.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/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="cs",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.002618/0.002618, allocations: 87.86 kB / 0.5506 GB, free: 5.383 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3884, allocations: 73.02 MB / 0.6219 GB, free: 8.5 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6016/0.9899, allocations: 226.3 MB / 0.8429 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02225/1.012, allocations: 25.11 MB / 0.8674 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002472/1.015, allocations: 117.8 kB / 0.8675 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003877/1.019, allocations: 1.67 MB / 0.8691 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.00776/1.026, allocations: 2.693 MB / 0.8718 GB, free: 1.203 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.006125/1.032, allocations: 1.914 MB / 0.8736 GB, free: 1.16 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005286/1.038, allocations: 4.094 MB / 0.8776 GB, free: 1.16 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/1.039, allocations: 0.7034 MB / 0.8783 GB, free: 1.035 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002827/1.042, allocations: 1.738 MB / 0.88 GB, free: 1.027 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00323/1.045, allocations: 2.155 MB / 0.8821 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0005387/1.046, allocations: 314.4 kB / 0.8824 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007771/1.053, allocations: 3.413 MB / 0.8858 GB, free: 0.9062 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008431/1.054, allocations: 0.657 MB / 0.8864 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002481/1.057, allocations: 1.511 MB / 0.8879 GB, free: 396 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.009524/1.066, allocations: 4.858 MB / 0.8926 GB, free: 15.7 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/1.066, allocations: 4.781 kB / 0.8926 GB, free: 15.7 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.412e-06/1.066, allocations: 0 / 0.8926 GB, free: 15.7 MB / 0.67 GB Notification: Performance of Transformations before backend: time 9.738e-05/1.066, allocations: 2.438 kB / 0.8926 GB, free: 15.7 MB / 0.67 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.008263/1.075, allocations: 3.468 MB / 0.896 GB, free: 14.1 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/1.075, allocations: 8.594 kB / 0.896 GB, free: 14.1 MB / 0.67 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.772e-05/1.075, allocations: 50.59 kB / 0.8961 GB, free: 14.09 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003477/1.075, allocations: 275.1 kB / 0.8963 GB, free: 14.05 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006436/1.076, allocations: 308.4 kB / 0.8966 GB, free: 13.89 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003108/1.079, allocations: 1.806 MB / 0.8984 GB, free: 13.38 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.146e-05/1.079, allocations: 142.6 kB / 0.8985 GB, free: 13.38 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003466/1.079, allocations: 208.2 kB / 0.8987 GB, free: 13.37 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004326/1.084, allocations: 2.338 MB / 0.901 GB, free: 13.24 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.961e-05/1.084, allocations: 0 / 0.901 GB, free: 13.24 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/1.084, allocations: 82.05 kB / 0.9011 GB, free: 13.23 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-05/1.084, allocations: 76.89 kB / 0.9012 GB, free: 13.23 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003707/1.088, allocations: 2.24 MB / 0.9034 GB, free: 13.21 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01659/1.104, allocations: 10.26 MB / 0.9134 GB, free: 7.836 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003083/1.107, allocations: 1.772 MB / 0.9151 GB, free: 7.754 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/1.109, allocations: 0.9579 MB / 0.916 GB, free: 7.73 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008001/1.117, allocations: 6.601 MB / 0.9225 GB, free: 2.918 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001798/1.119, allocations: 1.062 MB / 0.9235 GB, free: 2.617 MB / 0.67 GB Notification: Performance of pre-optimization done (n=193): time 3.957e-06/1.119, allocations: 0 / 0.9235 GB, free: 2.617 MB / 0.67 GB Notification: Performance of matching and sorting (n=198): time 0.0133/1.132, allocations: 6.578 MB / 0.9299 GB, free: 15.2 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.469e-05/1.132, allocations: 105.9 kB / 0.93 GB, free: 15.11 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/1.134, allocations: 1.418 MB / 0.9314 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002377/1.134, allocations: 58.67 kB / 0.9315 GB, free: 14.3 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001095/1.136, allocations: 0.9557 MB / 0.9324 GB, free: 13.46 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007464/1.136, allocations: 0.6847 MB / 0.9331 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005101/1.137, allocations: 300.2 kB / 0.9334 GB, free: 12.69 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001399/1.137, allocations: 302 kB / 0.9337 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/1.138, allocations: 0.6912 MB / 0.9343 GB, free: 12.03 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/1.14, allocations: 0.8434 MB / 0.9352 GB, free: 11.36 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008127/1.148, allocations: 2.569 MB / 0.9377 GB, free: 8.75 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/1.148, allocations: 0 / 0.9377 GB, free: 8.75 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005948/1.154, allocations: 2.438 MB / 0.9401 GB, free: 6.316 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 8.142e-05/1.154, allocations: 63.41 kB / 0.9401 GB, free: 6.242 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/1.154, allocations: 4 kB / 0.9401 GB, free: 6.238 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001639/1.156, allocations: 465.3 kB / 0.9406 GB, free: 5.777 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/1.157, allocations: 326.6 kB / 0.9409 GB, free: 5.477 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009127/1.166, allocations: 6.46 MB / 0.9472 GB, free: 14.77 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/1.168, allocations: 63.98 kB / 0.9472 GB, free: 14.7 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003071/1.169, allocations: 71.97 kB / 0.9473 GB, free: 14.63 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.001228/1.17, allocations: 484.5 kB / 0.9478 GB, free: 14.17 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004989/1.17, allocations: 218.5 kB / 0.948 GB, free: 13.95 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006611/1.177, allocations: 3.11 MB / 0.951 GB, free: 10.84 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/1.177, allocations: 23.94 kB / 0.951 GB, free: 10.82 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-05/1.177, allocations: 8 kB / 0.9511 GB, free: 10.81 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.299e-05/1.177, allocations: 7.969 kB / 0.9511 GB, free: 10.8 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/1.187, allocations: 5.211 MB / 0.9561 GB, free: 5.586 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/1.187, allocations: 4.219 kB / 0.9562 GB, free: 5.582 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/1.189, allocations: 311.2 kB / 0.9564 GB, free: 5.293 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001726/1.19, allocations: 493.6 kB / 0.9569 GB, free: 4.809 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002496/1.191, allocations: 71.95 kB / 0.957 GB, free: 4.738 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008983/1.2, allocations: 6.475 MB / 0.9633 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.2, allocations: 0 / 0.9633 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008617/1.208, allocations: 3.66 MB / 0.9669 GB, free: 10.34 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/1.21, allocations: 0.4994 MB / 0.9674 GB, free: 9.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003707/1.21, allocations: 58.47 kB / 0.9674 GB, free: 9.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/1.211, allocations: 59.95 kB / 0.9675 GB, free: 9.703 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003923/1.212, allocations: 173.6 kB / 0.9677 GB, free: 9.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000233/1.212, allocations: 75.94 kB / 0.9677 GB, free: 9.461 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00165/1.213, allocations: 1.016 MB / 0.9687 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/1.213, allocations: 4 kB / 0.9687 GB, free: 8.453 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002878/1.216, allocations: 0.901 MB / 0.9696 GB, free: 7.551 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.00908/1.225, allocations: 5.054 MB / 0.9745 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.005141/1.231, allocations: 2.325 MB / 0.9768 GB, free: 208 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 7.914e-06/1.231, allocations: 0 / 0.9768 GB, free: 208 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.003146/1.234, allocations: 1.443 MB / 0.9782 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004808/1.238, allocations: 0.6718 MB / 0.9789 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05821/1.297, allocations: 16.74 MB / 0.9952 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002809/1.299, allocations: 1.582 MB / 0.9968 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.003358/1.303, allocations: 437.4 kB / 0.9972 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003025/1.306, allocations: 0.9913 MB / 0.9982 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of SimCode: time 1.603e-06/1.306, allocations: 0 / 0.9982 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1594/1.465, allocations: 67.51 MB / 1.064 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/16.34, allocations: 18.61 kB / 1.064 GB, free: 7.113 MB / 0.8106 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 19.910590740968473] Failed to read output from testmodel.py, exit status != 0: 16.544072787975892 16.567442922 15.496485968 Calling exit ...