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.0008525/0.0008525, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008236/0.0008236, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 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 0.8622/0.8622, allocations: 177.2 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.486/0.486, allocations: 80.18 MB / 340.1 MB, free: 7.547 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 0.4936 GB, free: 6.348 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.268e-05/2.441e-05, allocations: 4.391 kB / 0.4936 GB, free: 6.344 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3691/0.3691, allocations: 206.1 MB / 0.6949 GB, free: 3.617 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.01572/0.3848, allocations: 19.82 MB / 0.7142 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002025/0.3869, allocations: 122.1 kB / 0.7144 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.00275/0.3896, allocations: 1.5 MB / 0.7158 GB, free: 3.047 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.005051/0.3947, allocations: 2.902 MB / 0.7187 GB, free: 2.082 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.003469/0.3981, allocations: 2 MB / 0.7206 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003214/0.4014, allocations: 4.589 MB / 0.7251 GB, free: 15.05 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007559/0.4021, allocations: 0.6461 MB / 0.7257 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002314/0.4044, allocations: 2.541 MB / 0.7282 GB, free: 13.54 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001658/0.4061, allocations: 1.907 MB / 0.7301 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002879/0.4064, allocations: 314.8 kB / 0.7304 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003984/0.4104, allocations: 2.973 MB / 0.7333 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003903/0.4107, allocations: 0.6878 MB / 0.7339 GB, free: 11.16 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008638/0.4116, allocations: 1.101 MB / 0.735 GB, free: 10.64 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.004555/0.4162, allocations: 5.055 MB / 0.74 GB, free: 7.68 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.4162, allocations: 2.812 kB / 0.74 GB, free: 7.68 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.393e-06/0.4162, allocations: 0 / 0.74 GB, free: 7.68 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.482e-05/0.4162, allocations: 0 / 0.74 GB, free: 7.68 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.003686/0.4199, allocations: 3.459 MB / 0.7433 GB, free: 5.25 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.4199, allocations: 12.84 kB / 0.7434 GB, free: 5.25 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004003/0.4203, allocations: 337.8 kB / 0.7437 GB, free: 5.078 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.4222, allocations: 1.763 MB / 0.7454 GB, free: 3.855 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.326e-05/0.4223, allocations: 145.9 kB / 0.7455 GB, free: 3.789 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001992/0.4225, allocations: 202.7 kB / 0.7457 GB, free: 3.723 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.4249, allocations: 2.424 MB / 0.7481 GB, free: 2.121 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.053e-05/0.4249, allocations: 2.531 kB / 0.7481 GB, free: 2.121 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.4251, allocations: 82.81 kB / 0.7482 GB, free: 2.043 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-05/0.4251, allocations: 74.69 kB / 0.7482 GB, free: 1.969 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00245/0.4276, allocations: 2.282 MB / 0.7505 GB, free: 15.69 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006369/0.4339, allocations: 6.434 MB / 0.7568 GB, free: 9.355 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001966/0.4359, allocations: 1.772 MB / 0.7585 GB, free: 7.574 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.437, allocations: 0.9617 MB / 0.7594 GB, free: 6.609 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003485/0.4405, allocations: 3 MB / 0.7624 GB, free: 3.633 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/0.4416, allocations: 1.06 MB / 0.7634 GB, free: 2.555 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 3.317e-06/0.4416, allocations: 0 / 0.7634 GB, free: 2.555 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.007405/0.449, allocations: 5.998 MB / 0.7693 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.4491, allocations: 101.5 kB / 0.7693 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.4503, allocations: 1.45 MB / 0.7708 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.844e-05/0.4504, allocations: 57.7 kB / 0.7708 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005467/0.4509, allocations: 1.011 MB / 0.7718 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003658/0.4513, allocations: 0.6865 MB / 0.7725 GB, free: 9.211 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003077/0.4516, allocations: 303.5 kB / 0.7728 GB, free: 8.91 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.782e-05/0.4517, allocations: 305.1 kB / 0.7731 GB, free: 8.609 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008751/0.4526, allocations: 0.7491 MB / 0.7738 GB, free: 7.848 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009784/0.4535, allocations: 0.9503 MB / 0.7747 GB, free: 6.84 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003901/0.4574, allocations: 2.627 MB / 0.7773 GB, free: 4.152 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4574, allocations: 3.938 kB / 0.7773 GB, free: 4.148 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.002953/0.4604, allocations: 2.563 MB / 0.7798 GB, free: 1.59 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.4604, allocations: 63.39 kB / 0.7798 GB, free: 1.516 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.4604, allocations: 4 kB / 0.7799 GB, free: 1.512 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007998/0.4612, allocations: 473.5 kB / 0.7803 GB, free: 1.043 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006675/0.4619, allocations: 329.7 kB / 0.7806 GB, free: 0.7383 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00491/0.4668, allocations: 6.09 MB / 0.7866 GB, free: 10.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00061/0.4674, allocations: 68.03 kB / 0.7866 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.4675, allocations: 76.06 kB / 0.7867 GB, free: 10.33 MB / 0.6042 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: 16 * 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 (180): * Single equations (assignments): 176 * 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.0006506/0.4682, allocations: 484.5 kB / 0.7872 GB, free: 9.867 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002744/0.4685, allocations: 234.6 kB / 0.7874 GB, free: 9.637 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/0.472, allocations: 3.136 MB / 0.7905 GB, free: 6.508 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.472, allocations: 20 kB / 0.7905 GB, free: 6.488 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.4721, allocations: 8 kB / 0.7905 GB, free: 6.48 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.4721, allocations: 11.97 kB / 0.7905 GB, free: 6.469 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005051/0.4771, allocations: 4.627 MB / 0.795 GB, free: 1.855 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.4771, allocations: 7.094 kB / 0.795 GB, free: 1.852 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006056/0.4777, allocations: 307.6 kB / 0.7953 GB, free: 1.566 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007573/0.4785, allocations: 485.4 kB / 0.7958 GB, free: 1.086 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.571e-05/0.4786, allocations: 63.95 kB / 0.7958 GB, free: 1.023 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004765/0.4834, allocations: 6.092 MB / 0.8018 GB, free: 10.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4834, allocations: 3.094 kB / 0.8018 GB, free: 10.75 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004109/0.4875, allocations: 3.679 MB / 0.8054 GB, free: 7.062 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005912/0.4881, allocations: 430.3 kB / 0.8058 GB, free: 6.641 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.4882, allocations: 52.08 kB / 0.8058 GB, free: 6.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005217/0.4887, allocations: 67.95 kB / 0.8059 GB, free: 6.523 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/0.489, allocations: 188.6 kB / 0.8061 GB, free: 6.336 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.361e-05/0.4891, allocations: 71.95 kB / 0.8061 GB, free: 6.266 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0008895/0.49, allocations: 1.01 MB / 0.8071 GB, free: 5.266 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.1e-08/0.49, allocations: 0 / 0.8071 GB, free: 5.266 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001698/0.4916, allocations: 0.944 MB / 0.8081 GB, free: 4.32 MB / 0.6198 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.001036/0.4927, allocations: 0.9899 MB / 0.809 GB, free: 3.398 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002604/0.4953, allocations: 2.393 MB / 0.8114 GB, free: 0.9609 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4953, allocations: 0 / 0.8114 GB, free: 0.9609 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001509/0.4968, allocations: 1.431 MB / 0.8128 GB, free: 15.55 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.4989, allocations: 0.936 MB / 0.8137 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005287/0.5042, allocations: 4.622 MB / 0.8182 GB, free: 9.965 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007152/0.5049, allocations: 1.035 MB / 0.8192 GB, free: 8.895 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004075/0.5053, allocations: 220.4 kB / 0.8194 GB, free: 8.68 MB / 0.6355 GB Notification: Performance of SimCode: time 1.002e-06/0.5053, allocations: 0 / 0.8194 GB, free: 8.68 MB / 0.6355 GB Notification: Performance of Templates: time 0.04607/0.5514, allocations: 65.65 MB / 0.8835 GB, free: 7.152 MB / 0.698 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (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 & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1200] [Calling os._exit(0), Time elapsed: 8.593783312477171] Failed to read output from testmodel.py, exit status != 0: 0.5568422172218561 0.56497681 0.147105234 Calling exit ...