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.00155/0.00155, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002156/0.002156, allocations: 212.5 kB / 22.24 MB, free: 5.242 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.855/1.855, allocations: 230.6 MB / 256 MB, free: 7.805 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 1.051/1.051, allocations: 94.63 MB / 407.1 MB, free: 8.836 MB / 318.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="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: 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.002665/0.002665, allocations: 84.58 kB / 0.5549 GB, free: 38.53 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2312, allocations: 73.06 MB / 0.6263 GB, free: 156 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.9582/1.189, allocations: 198.9 MB / 0.8206 GB, free: 464 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.04643/1.236, allocations: 22.89 MB / 0.8429 GB, free: 2.332 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005379/1.241, allocations: 114.9 kB / 0.843 GB, free: 2.332 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.007721/1.249, allocations: 1.445 MB / 0.8444 GB, free: 1.613 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01438/1.263, allocations: 2.646 MB / 0.847 GB, free: 196 kB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.009635/1.273, allocations: 1.926 MB / 0.8489 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0105/1.283, allocations: 4.111 MB / 0.8529 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003464/1.287, allocations: 0.6465 MB / 0.8535 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007318/1.294, allocations: 1.733 MB / 0.8552 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007003/1.301, allocations: 2.001 MB / 0.8572 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001983/1.303, allocations: 319.3 kB / 0.8575 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01314/1.316, allocations: 2.944 MB / 0.8604 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.002229/1.319, allocations: 0.6638 MB / 0.861 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.005611/1.324, allocations: 1.224 MB / 0.8622 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01811/1.342, allocations: 4.806 MB / 0.8669 GB, free: 2.645 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.031e-05/1.342, allocations: 4 kB / 0.8669 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.655e-06/1.342, allocations: 0 / 0.8669 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0002146/1.342, allocations: 0 / 0.8669 GB, free: 2.641 MB / 0.6075 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.01453/1.357, allocations: 3.383 MB / 0.8702 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 8.344e-05/1.357, allocations: 8.031 kB / 0.8702 GB, free: 15.19 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005862/1.358, allocations: 274.6 kB / 0.8705 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/1.359, allocations: 322.1 kB / 0.8708 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004822/1.364, allocations: 1.704 MB / 0.8725 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/1.364, allocations: 143.6 kB / 0.8726 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004165/1.364, allocations: 215.9 kB / 0.8728 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005278/1.37, allocations: 2.35 MB / 0.8751 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.238e-05/1.37, allocations: 0 / 0.8751 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/1.37, allocations: 76 kB / 0.8752 GB, free: 10.1 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/1.37, allocations: 74.69 kB / 0.8752 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004761/1.375, allocations: 2.269 MB / 0.8775 GB, free: 7.754 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0153/1.39, allocations: 6.045 MB / 0.8834 GB, free: 1.691 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003731/1.394, allocations: 1.76 MB / 0.8851 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/1.396, allocations: 0.9582 MB / 0.886 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008223/1.404, allocations: 3.001 MB / 0.8889 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00237/1.406, allocations: 1.064 MB / 0.89 GB, free: 10.85 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 4.478e-06/1.406, allocations: 0 / 0.89 GB, free: 10.85 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01598/1.422, allocations: 5.961 MB / 0.8958 GB, free: 4.824 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/1.422, allocations: 98.92 kB / 0.8959 GB, free: 4.711 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002423/1.425, allocations: 1.437 MB / 0.8973 GB, free: 3.273 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001779/1.425, allocations: 61.7 kB / 0.8974 GB, free: 3.207 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001135/1.426, allocations: 0.9474 MB / 0.8983 GB, free: 2.25 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008393/1.427, allocations: 0.6854 MB / 0.899 GB, free: 1.559 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005833/1.428, allocations: 299.6 kB / 0.8992 GB, free: 1.262 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001845/1.428, allocations: 309.1 kB / 0.8995 GB, free: 0.957 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/1.429, allocations: 0.7374 MB / 0.9003 GB, free: 212 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/1.431, allocations: 0.9029 MB / 0.9011 GB, free: 15.27 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007993/1.439, allocations: 2.573 MB / 0.9036 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/1.439, allocations: 3.938 kB / 0.9037 GB, free: 12.63 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005967/1.445, allocations: 2.51 MB / 0.9061 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 8.534e-05/1.445, allocations: 63.41 kB / 0.9062 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/1.445, allocations: 0 / 0.9062 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001742/1.447, allocations: 469.3 kB / 0.9066 GB, free: 9.543 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/1.449, allocations: 328.2 kB / 0.9069 GB, free: 9.223 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.459, allocations: 6.149 MB / 0.9129 GB, free: 2.848 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/1.461, allocations: 59.95 kB / 0.913 GB, free: 2.789 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/1.461, allocations: 80.03 kB / 0.9131 GB, free: 2.711 MB / 0.6544 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.001378/1.462, allocations: 473.6 kB / 0.9135 GB, free: 2.238 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008101/1.463, allocations: 226.5 kB / 0.9137 GB, free: 2.016 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0073/1.47, allocations: 3.122 MB / 0.9168 GB, free: 14.86 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/1.47, allocations: 23.94 kB / 0.9168 GB, free: 14.84 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/1.47, allocations: 8 kB / 0.9168 GB, free: 14.83 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.148e-05/1.47, allocations: 11.95 kB / 0.9168 GB, free: 14.82 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/1.482, allocations: 4.832 MB / 0.9215 GB, free: 9.906 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/1.482, allocations: 0 / 0.9215 GB, free: 9.906 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/1.483, allocations: 315.5 kB / 0.9218 GB, free: 9.598 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/1.485, allocations: 489.3 kB / 0.9223 GB, free: 9.113 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/1.485, allocations: 71.95 kB / 0.9224 GB, free: 9.043 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/1.495, allocations: 6.151 MB / 0.9284 GB, free: 2.664 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/1.495, allocations: 4.031 kB / 0.9284 GB, free: 2.66 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008979/1.504, allocations: 3.676 MB / 0.932 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/1.505, allocations: 430.3 kB / 0.9324 GB, free: 14.51 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000374/1.506, allocations: 51.94 kB / 0.9324 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/1.507, allocations: 59.95 kB / 0.9325 GB, free: 14.4 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004679/1.507, allocations: 185.6 kB / 0.9327 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/1.508, allocations: 79.94 kB / 0.9327 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00186/1.509, allocations: 1.017 MB / 0.9337 GB, free: 13.13 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8.1e-08/1.509, allocations: 0 / 0.9337 GB, free: 13.13 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.004064/1.513, allocations: 0.8932 MB / 0.9346 GB, free: 12.24 MB / 0.6856 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.01033/1.524, allocations: 5.074 MB / 0.9396 GB, free: 7.121 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.005586/1.529, allocations: 2.365 MB / 0.9419 GB, free: 4.684 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/1.529, allocations: 8.062 kB / 0.9419 GB, free: 4.676 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.003438/1.533, allocations: 1.454 MB / 0.9433 GB, free: 3.203 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003689/1.536, allocations: 0.6642 MB / 0.944 GB, free: 2.562 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03696/1.573, allocations: 16.98 MB / 0.9605 GB, free: 1.207 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/1.575, allocations: 1.013 MB / 0.9615 GB, free: 160 kB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.002378/1.578, allocations: 438.3 kB / 0.9619 GB, free: 15.75 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001749/1.579, allocations: 0.9913 MB / 0.9629 GB, free: 14.76 MB / 0.7169 GB Notification: Performance of SimCode: time 1.884e-06/1.579, allocations: 0 / 0.9629 GB, free: 14.76 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1936/1.773, allocations: 71.35 MB / 1.033 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.95/21.72, allocations: 6.75 kB / 1.033 GB, free: 8.023 MB / 0.7794 GB " [Timeout remaining time 638] (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: 26.59906764095649] Failed to read output from testmodel.py, exit status != 0: 21.88818097067997 21.913267506 20.565809831 Calling exit ...