Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007763/0.0007765, allocations: 168.6 kB / 16.1 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.155/1.155, allocations: 205 MB / 221.9 MB, free: 9.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007037/0.0007036, allocations: 85.75 kB / 269.9 MB, free: 8.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5901/0.5901, allocations: 90.51 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002592, allocations: 8 kB / 484.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2235, allocations: 65.81 MB / 0.5378 GB, free: 34.95 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3813/0.6049, allocations: 221.7 MB / 0.7543 GB, free: 100 kB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.0215/0.6265, allocations: 24.82 MB / 0.7785 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002205/0.6287, allocations: 33.22 kB / 0.7786 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.003284/0.632, allocations: 1.478 MB / 0.78 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.005085/0.6371, allocations: 2.27 MB / 0.7822 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.003869/0.641, allocations: 1.633 MB / 0.7838 GB, free: 9.395 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.003549/0.6445, allocations: 4.401 MB / 0.7881 GB, free: 7.926 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.6457, allocations: 0.9649 MB / 0.7891 GB, free: 7.285 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001556/0.6472, allocations: 1.148 MB / 0.7902 GB, free: 6.34 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001845/0.6491, allocations: 1.784 MB / 0.7919 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001935/0.6493, allocations: 100 kB / 0.792 GB, free: 4.637 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005828/0.6551, allocations: 3.258 MB / 0.7952 GB, free: 1.949 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003163/0.6555, allocations: 393 kB / 0.7956 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001011/0.6565, allocations: 1.108 MB / 0.7967 GB, free: 0.5039 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.003232/0.6597, allocations: 3.25 MB / 0.7998 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.6597, allocations: 0 / 0.7998 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6597, allocations: 0 / 0.7998 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.19e-05/0.6598, allocations: 4 kB / 0.7998 GB, free: 13.42 MB / 0.5261 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.004464/0.6642, allocations: 2.511 MB / 0.8023 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.6643, allocations: 8.031 kB / 0.8023 GB, free: 10.85 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003728/0.6646, allocations: 242 kB / 0.8025 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001306/0.666, allocations: 1.115 MB / 0.8036 GB, free: 9.508 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-05/0.6661, allocations: 144.2 kB / 0.8038 GB, free: 9.367 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002495/0.6663, allocations: 208.2 kB / 0.804 GB, free: 9.164 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003422/0.6698, allocations: 2.34 MB / 0.8062 GB, free: 6.816 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.553e-05/0.6698, allocations: 3.984 kB / 0.8062 GB, free: 6.812 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001605/0.67, allocations: 79.98 kB / 0.8063 GB, free: 6.734 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.556e-05/0.67, allocations: 78.69 kB / 0.8064 GB, free: 6.656 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003408/0.6735, allocations: 2.263 MB / 0.8086 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01/0.6835, allocations: 10.19 MB / 0.8186 GB, free: 9.359 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003122/0.6866, allocations: 2.117 MB / 0.8206 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/0.6882, allocations: 1.11 MB / 0.8217 GB, free: 6.121 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006246/0.6945, allocations: 6.63 MB / 0.8282 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001692/0.6962, allocations: 1.118 MB / 0.8293 GB, free: 13.6 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=199): time 3.436e-06/0.6962, allocations: 0 / 0.8293 GB, free: 13.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=204): time 0.01086/0.7071, allocations: 6.528 MB / 0.8356 GB, free: 6.898 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/0.7072, allocations: 98.98 kB / 0.8357 GB, free: 6.781 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009244/0.7081, allocations: 0.8499 MB / 0.8366 GB, free: 5.91 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.7082, allocations: 57.7 kB / 0.8366 GB, free: 5.848 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004685/0.7087, allocations: 0.7156 MB / 0.8373 GB, free: 5.121 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004609/0.7091, allocations: 0.674 MB / 0.838 GB, free: 4.453 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.935e-05/0.7092, allocations: 32 kB / 0.838 GB, free: 4.422 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.7094, allocations: 377.9 kB / 0.8384 GB, free: 4.047 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.7106, allocations: 0.7263 MB / 0.8391 GB, free: 3.32 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.712, allocations: 0.8907 MB / 0.84 GB, free: 2.406 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006801/0.7188, allocations: 2.86 MB / 0.8427 GB, free: 15.51 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.7188, allocations: 0 / 0.8427 GB, free: 15.51 MB / 0.573 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004113/0.7229, allocations: 2.478 MB / 0.8452 GB, free: 13.03 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.723, allocations: 59.41 kB / 0.8452 GB, free: 12.96 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.723, allocations: 0 / 0.8452 GB, free: 12.96 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.7242, allocations: 463.3 kB / 0.8457 GB, free: 12.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.7253, allocations: 329.9 kB / 0.846 GB, free: 12.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006684/0.732, allocations: 5.963 MB / 0.8518 GB, free: 5.992 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.7331, allocations: 135.7 kB / 0.8519 GB, free: 5.859 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.7333, allocations: 75.97 kB / 0.852 GB, free: 5.785 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: switch.tanValve.outlet.m_flow:VARIABLE(flow=true unit = "kg/s" fixed = true stateSelect=StateSelect.prefer ) "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.T_start,$PRE.pulse.count,$whenCondition1,pulse.T_start,pulse.count,$whenCondition2,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 3 * 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.0007205/0.734, allocations: 460.1 kB / 0.8524 GB, free: 5.348 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002342/0.7342, allocations: 146.2 kB / 0.8526 GB, free: 5.203 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005168/0.7394, allocations: 2.875 MB / 0.8554 GB, free: 2.359 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.7394, allocations: 24 kB / 0.8554 GB, free: 2.336 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.7395, allocations: 8 kB / 0.8554 GB, free: 2.328 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.122e-05/0.7395, allocations: 15.89 kB / 0.8554 GB, free: 2.312 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007595/0.7471, allocations: 5.285 MB / 0.8606 GB, free: 13 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.7471, allocations: 3.938 kB / 0.8606 GB, free: 13 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.7483, allocations: 339.7 kB / 0.8609 GB, free: 12.66 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.7495, allocations: 473.3 kB / 0.8614 GB, free: 12.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/0.7496, allocations: 75.94 kB / 0.8615 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006652/0.7563, allocations: 5.96 MB / 0.8673 GB, free: 5.902 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.7563, allocations: 4.031 kB / 0.8673 GB, free: 5.898 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005955/0.7623, allocations: 3.846 MB / 0.871 GB, free: 2.027 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006999/0.763, allocations: 462.9 kB / 0.8715 GB, free: 1.555 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002035/0.7632, allocations: 52 kB / 0.8715 GB, free: 1.504 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.7642, allocations: 143.6 kB / 0.8717 GB, free: 1.363 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003006/0.7645, allocations: 173.6 kB / 0.8718 GB, free: 1.191 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.7647, allocations: 79.95 kB / 0.8719 GB, free: 1.113 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0006683/0.7653, allocations: 0.5834 MB / 0.8725 GB, free: 0.5195 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7653, allocations: 3.938 kB / 0.8725 GB, free: 0.5156 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001951/0.7673, allocations: 0.8786 MB / 0.8733 GB, free: 15.63 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (185): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001228/0.7685, allocations: 0.9725 MB / 0.8743 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003957/0.7725, allocations: 2.554 MB / 0.8768 GB, free: 12.09 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.7725, allocations: 4.062 kB / 0.8768 GB, free: 12.09 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002474/0.775, allocations: 1.602 MB / 0.8783 GB, free: 10.46 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.7772, allocations: 0.5001 MB / 0.8788 GB, free: 9.969 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005885/0.7831, allocations: 4.709 MB / 0.8834 GB, free: 5.23 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009398/0.784, allocations: 1.443 MB / 0.8848 GB, free: 3.75 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/0.7845, allocations: 195.3 kB / 0.885 GB, free: 3.562 MB / 0.6042 GB Notification: Performance of SimCode: time 4.91e-07/0.7846, allocations: 0 / 0.885 GB, free: 3.562 MB / 0.6042 GB Notification: Performance of Templates: time 0.2278/1.012, allocations: 52.28 MB / 0.9361 GB, free: 264.4 MB / 0.6355 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)