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/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.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/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_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_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.001077/0.001077, allocations: 180 kB / 15.98 MB, free: 5.77 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.248/1.248, allocations: 205.1 MB / 221.8 MB, free: 8.477 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.0009985/0.0009985, allocations: 106.3 kB / 269.2 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6903/0.6903, allocations: 91.22 MB / 407.8 MB, free: 2.543 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 55.92 kB / 483.5 MB, free: 6.602 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2924, allocations: 64.97 MB / 0.5357 GB, free: 33.68 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.517/0.8095, allocations: 224.2 MB / 0.7546 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.02785/0.8374, allocations: 25.1 MB / 0.7791 GB, free: 9.555 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003122/0.8406, allocations: 32.34 kB / 0.7792 GB, free: 9.555 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.004323/0.8449, allocations: 1.469 MB / 0.7806 GB, free: 8.984 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.006983/0.8519, allocations: 2.279 MB / 0.7828 GB, free: 8.172 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.004966/0.8569, allocations: 1.634 MB / 0.7844 GB, free: 7.074 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.005115/0.8621, allocations: 4.439 MB / 0.7888 GB, free: 3.535 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001615/0.8637, allocations: 0.9833 MB / 0.7897 GB, free: 2.523 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.8663, allocations: 1.255 MB / 0.7909 GB, free: 1.402 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003157/0.8695, allocations: 1.936 MB / 0.7928 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0006324/0.8701, allocations: 168 kB / 0.793 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008462/0.8786, allocations: 3.342 MB / 0.7963 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0008398/0.8795, allocations: 486.3 kB / 0.7967 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.002864/0.8824, allocations: 1.227 MB / 0.7979 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.008934/0.8913, allocations: 4.313 MB / 0.8021 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.8913, allocations: 0 / 0.8021 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8913, allocations: 0 / 0.8021 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001167/0.8915, allocations: 0 / 0.8021 GB, free: 6.961 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.007284/0.8988, allocations: 2.903 MB / 0.805 GB, free: 4.008 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.8988, allocations: 16.03 kB / 0.805 GB, free: 3.992 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005504/0.8994, allocations: 238.1 kB / 0.8052 GB, free: 3.758 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001656/0.901, allocations: 1.119 MB / 0.8063 GB, free: 2.648 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.996e-05/0.9011, allocations: 144.2 kB / 0.8064 GB, free: 2.508 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002817/0.9014, allocations: 205.7 kB / 0.8066 GB, free: 2.309 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003843/0.9053, allocations: 2.336 MB / 0.8089 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.9053, allocations: 0 / 0.8089 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001543/0.9055, allocations: 80 kB / 0.809 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.837e-05/0.9056, allocations: 74.69 kB / 0.8091 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003588/0.9092, allocations: 2.243 MB / 0.8113 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01109/0.9203, allocations: 10.15 MB / 0.8212 GB, free: 2.512 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003441/0.9237, allocations: 2.096 MB / 0.8232 GB, free: 404 kB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001796/0.9256, allocations: 1.109 MB / 0.8243 GB, free: 15.28 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006884/0.9325, allocations: 6.627 MB / 0.8308 GB, free: 7.887 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001764/0.9342, allocations: 1.099 MB / 0.8318 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=199): time 3.386e-06/0.9343, allocations: 0 / 0.8318 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of matching and sorting (n=204): time 0.01128/0.9455, allocations: 6.461 MB / 0.8382 GB, free: 108 kB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.439e-05/0.9457, allocations: 106.2 kB / 0.8383 GB, free: 15.98 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.9467, allocations: 0.8498 MB / 0.8391 GB, free: 15.11 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.9468, allocations: 61.7 kB / 0.8391 GB, free: 15.04 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004887/0.9473, allocations: 0.7156 MB / 0.8398 GB, free: 14.32 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004934/0.9478, allocations: 0.6747 MB / 0.8405 GB, free: 13.65 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004676/0.9483, allocations: 303.6 kB / 0.8408 GB, free: 13.35 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 8.402e-05/0.9484, allocations: 305.1 kB / 0.8411 GB, free: 13.05 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.9496, allocations: 0.7106 MB / 0.8418 GB, free: 12.34 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/0.9511, allocations: 0.884 MB / 0.8426 GB, free: 11.43 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007444/0.9585, allocations: 2.696 MB / 0.8453 GB, free: 8.68 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.9586, allocations: 0 / 0.8453 GB, free: 8.68 MB / 0.573 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004528/0.9631, allocations: 2.457 MB / 0.8477 GB, free: 6.195 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/0.9632, allocations: 63.39 kB / 0.8477 GB, free: 6.121 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.9632, allocations: 4 kB / 0.8477 GB, free: 6.117 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001274/0.9645, allocations: 461.2 kB / 0.8482 GB, free: 5.66 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.9657, allocations: 327.5 kB / 0.8485 GB, free: 5.34 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007169/0.9729, allocations: 5.941 MB / 0.8543 GB, free: 15.13 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.9742, allocations: 127.8 kB / 0.8544 GB, free: 15.01 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/0.9744, allocations: 75.97 kB / 0.8545 GB, free: 14.93 MB / 0.5886 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 (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.0008128/0.9752, allocations: 441.5 kB / 0.8549 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000268/0.9755, allocations: 146.2 kB / 0.855 GB, free: 14.35 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005475/0.981, allocations: 2.87 MB / 0.8578 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.981, allocations: 24 kB / 0.8579 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.981, allocations: 8 kB / 0.8579 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-05/0.9811, allocations: 15.89 kB / 0.8579 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008129/0.9892, allocations: 5.258 MB / 0.863 GB, free: 6.145 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.9892, allocations: 0 / 0.863 GB, free: 6.145 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.9905, allocations: 331.7 kB / 0.8633 GB, free: 5.82 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.9917, allocations: 481.3 kB / 0.8638 GB, free: 5.344 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001485/0.9919, allocations: 71.95 kB / 0.8639 GB, free: 5.273 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006895/0.9988, allocations: 5.955 MB / 0.8697 GB, free: 15.06 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.9988, allocations: 0 / 0.8697 GB, free: 15.06 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0691/1.068, allocations: 32.2 MB / 0.9011 GB, free: 14.26 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006967/1.069, allocations: 454.9 kB / 0.9016 GB, free: 13.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/1.069, allocations: 55.98 kB / 0.9016 GB, free: 13.74 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/1.07, allocations: 131.6 kB / 0.9018 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003886/1.07, allocations: 181.5 kB / 0.9019 GB, free: 13.44 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001477/1.071, allocations: 79.95 kB / 0.902 GB, free: 13.36 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0007309/1.071, allocations: 0.5873 MB / 0.9026 GB, free: 12.76 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.2e-07/1.071, allocations: 4 kB / 0.9026 GB, free: 12.76 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.004252/1.076, allocations: 1.569 MB / 0.9041 GB, free: 11.19 MB / 0.6355 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.002412/1.078, allocations: 1.291 MB / 0.9054 GB, free: 9.953 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.004483/1.082, allocations: 2.538 MB / 0.9078 GB, free: 7.367 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/1.082, allocations: 0 / 0.9078 GB, free: 7.367 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.002753/1.085, allocations: 1.618 MB / 0.9094 GB, free: 5.73 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002431/1.088, allocations: 0.4984 MB / 0.9099 GB, free: 5.234 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009177/1.097, allocations: 6.512 MB / 0.9163 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/1.098, allocations: 1.527 MB / 0.9178 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001826/1.1, allocations: 442.5 kB / 0.9182 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005787/1.1, allocations: 199.3 kB / 0.9184 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of SimCode: time 7.71e-07/1.1, allocations: 0 / 0.9184 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of Templates: time 0.3248/1.425, allocations: 60.71 MB / 0.9777 GB, free: 249.7 MB / 0.6511 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile (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)