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.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.001782/0.001782, allocations: 106.6 kB / 16.45 MB, free: 6.504 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.001799/0.001799, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.615/1.615, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.8229/0.8229, allocations: 94.6 MB / 397.3 MB, free: 308 kB / 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_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 0.002382/0.002382, allocations: 92.03 kB / 0.5416 GB, free: 42.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1677, allocations: 71.86 MB / 0.6118 GB, free: 10.11 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6955/0.8632, allocations: 226.2 MB / 0.8327 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03424/0.8974, allocations: 25.14 MB / 0.8573 GB, free: 376 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003981/0.9014, allocations: 82.16 kB / 0.8573 GB, free: 376 kB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.005686/0.9071, allocations: 1.665 MB / 0.859 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.01071/0.9178, allocations: 2.692 MB / 0.8616 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.006878/0.9247, allocations: 1.923 MB / 0.8635 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007691/0.9324, allocations: 4.09 MB / 0.8675 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001713/0.9341, allocations: 0.7043 MB / 0.8681 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003769/0.9379, allocations: 1.697 MB / 0.8698 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003906/0.9418, allocations: 2.149 MB / 0.8719 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0006128/0.9424, allocations: 312 kB / 0.8722 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009036/0.9514, allocations: 3.416 MB / 0.8755 GB, free: 268 kB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0009522/0.9524, allocations: 0.6578 MB / 0.8762 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002356/0.9547, allocations: 1.516 MB / 0.8777 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.9662, allocations: 4.851 MB / 0.8824 GB, free: 9.211 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.9662, allocations: 0 / 0.8824 GB, free: 9.211 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.904e-06/0.9662, allocations: 4 kB / 0.8824 GB, free: 9.207 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 9.353e-05/0.9663, allocations: 0 / 0.8824 GB, free: 9.207 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.008381/0.9747, allocations: 3.463 MB / 0.8858 GB, free: 5.66 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.9748, allocations: 12.03 kB / 0.8858 GB, free: 5.648 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003534/0.9751, allocations: 274.6 kB / 0.8861 GB, free: 5.371 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007959/0.9759, allocations: 310.1 kB / 0.8864 GB, free: 5.066 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003405/0.9793, allocations: 1.806 MB / 0.8881 GB, free: 3.211 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.9794, allocations: 143.8 kB / 0.8883 GB, free: 3.07 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003328/0.9798, allocations: 204 kB / 0.8884 GB, free: 2.871 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004187/0.984, allocations: 2.328 MB / 0.8907 GB, free: 0.5156 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.731e-05/0.984, allocations: 3.938 kB / 0.8907 GB, free: 0.5117 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001588/0.9842, allocations: 84 kB / 0.8908 GB, free: 440 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001001/0.9843, allocations: 74.69 kB / 0.8909 GB, free: 364 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004089/0.9883, allocations: 2.233 MB / 0.8931 GB, free: 14.11 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01437/1.003, allocations: 10.26 MB / 0.9031 GB, free: 2.926 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003466/1.006, allocations: 1.772 MB / 0.9048 GB, free: 1.137 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001934/1.008, allocations: 0.9663 MB / 0.9058 GB, free: 172 kB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008669/1.017, allocations: 6.599 MB / 0.9122 GB, free: 8.742 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001957/1.019, allocations: 1.062 MB / 0.9132 GB, free: 7.664 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=193): time 4.098e-06/1.019, allocations: 7.938 kB / 0.9132 GB, free: 7.656 MB / 0.6544 GB Notification: Performance of matching and sorting (n=198): time 0.01285/1.032, allocations: 6.564 MB / 0.9197 GB, free: 0.8867 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.755e-05/1.032, allocations: 98.98 kB / 0.9197 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/1.034, allocations: 1.429 MB / 0.9211 GB, free: 15.34 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001336/1.034, allocations: 65.7 kB / 0.9212 GB, free: 15.27 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008963/1.035, allocations: 0.9473 MB / 0.9221 GB, free: 14.31 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006091/1.035, allocations: 0.6893 MB / 0.9228 GB, free: 13.62 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004592/1.036, allocations: 295.6 kB / 0.9231 GB, free: 13.32 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001134/1.036, allocations: 301.1 kB / 0.9234 GB, free: 13.03 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/1.037, allocations: 0.6872 MB / 0.924 GB, free: 12.34 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/1.039, allocations: 0.8527 MB / 0.9249 GB, free: 11.46 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007089/1.046, allocations: 2.559 MB / 0.9274 GB, free: 8.844 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/1.046, allocations: 4 kB / 0.9274 GB, free: 8.84 MB / 0.67 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004935/1.051, allocations: 2.442 MB / 0.9298 GB, free: 6.367 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 6.434e-05/1.051, allocations: 60.34 kB / 0.9298 GB, free: 6.297 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/1.051, allocations: 0 / 0.9298 GB, free: 6.297 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/1.052, allocations: 465.3 kB / 0.9303 GB, free: 5.836 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/1.054, allocations: 319.5 kB / 0.9306 GB, free: 5.523 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008528/1.062, allocations: 6.464 MB / 0.9369 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/1.064, allocations: 67.92 kB / 0.9369 GB, free: 14.72 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003695/1.064, allocations: 73.09 kB / 0.937 GB, free: 14.65 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.001005/1.065, allocations: 481.5 kB / 0.9375 GB, free: 14.17 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006483/1.066, allocations: 214.6 kB / 0.9377 GB, free: 13.96 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006071/1.072, allocations: 3.108 MB / 0.9407 GB, free: 10.82 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.892e-05/1.072, allocations: 20 kB / 0.9407 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.585e-05/1.072, allocations: 11.94 kB / 0.9407 GB, free: 10.79 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-05/1.072, allocations: 11.95 kB / 0.9408 GB, free: 10.78 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00958/1.082, allocations: 5.229 MB / 0.9459 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.082, allocations: 4 kB / 0.9459 GB, free: 5.453 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/1.083, allocations: 311.8 kB / 0.9462 GB, free: 5.148 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001379/1.084, allocations: 485.6 kB / 0.9466 GB, free: 4.668 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/1.084, allocations: 75.89 kB / 0.9467 GB, free: 4.594 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008672/1.093, allocations: 6.469 MB / 0.953 GB, free: 13.85 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/1.093, allocations: 8.062 kB / 0.953 GB, free: 13.84 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007551/1.101, allocations: 3.664 MB / 0.9566 GB, free: 10.13 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/1.102, allocations: 0.4955 MB / 0.9571 GB, free: 9.617 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/1.102, allocations: 51.94 kB / 0.9571 GB, free: 9.566 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/1.103, allocations: 63.95 kB / 0.9572 GB, free: 9.504 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/1.104, allocations: 177.5 kB / 0.9574 GB, free: 9.332 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/1.104, allocations: 71.95 kB / 0.9574 GB, free: 9.262 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001599/1.105, allocations: 1.013 MB / 0.9584 GB, free: 8.258 MB / 0.7012 GB Notification: Performance of sort global known variables: time 8.1e-08/1.105, allocations: 0 / 0.9584 GB, free: 8.258 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002841/1.108, allocations: 0.9049 MB / 0.9593 GB, free: 7.352 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.008591/1.117, allocations: 5.058 MB / 0.9643 GB, free: 2.238 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.004819/1.122, allocations: 2.317 MB / 0.9665 GB, free: 15.87 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/1.122, allocations: 0 / 0.9665 GB, free: 15.87 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002851/1.124, allocations: 1.447 MB / 0.9679 GB, free: 14.39 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003024/1.128, allocations: 0.6738 MB / 0.9686 GB, free: 13.74 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02987/1.157, allocations: 16.75 MB / 0.9849 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001445/1.159, allocations: 1.581 MB / 0.9865 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001694/1.161, allocations: 430.9 kB / 0.9869 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/1.162, allocations: 0.9913 MB / 0.9879 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of SimCode: time 3.637e-06/1.162, allocations: 0 / 0.9879 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4773/1.639, allocations: 67.42 MB / 1.054 GB, free: 320.4 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.21/17.85, allocations: 3.484 kB / 1.054 GB, free: 320.4 MB / 0.7794 GB " [Timeout remaining time 642] (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: 22.016129260882735] Failed to read output from testmodel.py, exit status != 0: 18.007072865962982 18.028312527 17.058402269 Calling exit ...