Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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: 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_dev_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_dev_ThermofluidStream.FlowControl.Tests.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 105.6 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001901/0.001901, allocations: 195.8 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7425/0.7425, allocations: 93.7 MB / 384.4 MB, free: 5.484 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00248/0.00248, allocations: 75.88 kB / 463.6 MB, free: 6.52 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1293, allocations: 68.27 MB / 0.5194 GB, free: 2.168 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.7205/0.8498, allocations: 224.8 MB / 0.7389 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02422/0.8741, allocations: 25.27 MB / 0.7636 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003044/0.8772, allocations: 107.4 kB / 0.7637 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004298/0.8815, allocations: 1.502 MB / 0.7652 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007662/0.8892, allocations: 2.431 MB / 0.7675 GB, free: 1.008 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005586/0.8948, allocations: 1.761 MB / 0.7692 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006332/0.9012, allocations: 4.081 MB / 0.7732 GB, free: 0.9609 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0021/0.9033, allocations: 1.136 MB / 0.7743 GB, free: 16.78 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003653/0.907, allocations: 1.658 MB / 0.776 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004447/0.9115, allocations: 2.147 MB / 0.7781 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001021/0.9125, allocations: 315.2 kB / 0.7784 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009445/0.922, allocations: 3.389 MB / 0.7817 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.9231, allocations: 0.6604 MB / 0.7823 GB, free: 16.64 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002825/0.9259, allocations: 1.515 MB / 0.7838 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005981/0.9319, allocations: 3.649 MB / 0.7874 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.932, allocations: 0 / 0.7874 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.743e-06/0.932, allocations: 2.156 kB / 0.7874 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.695e-05/0.9321, allocations: 0 / 0.7874 GB, free: 15.92 MB / 0.5919 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.008095/0.9402, allocations: 3.365 MB / 0.7906 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.9402, allocations: 10.69 kB / 0.7907 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006318/0.9409, allocations: 296.9 kB / 0.7909 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002711/0.9436, allocations: 1.667 MB / 0.7926 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.9437, allocations: 158.5 kB / 0.7927 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002946/0.944, allocations: 198.5 kB / 0.7929 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004043/0.9481, allocations: 2.336 MB / 0.7952 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.922e-05/0.9481, allocations: 0 / 0.7952 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000177/0.9483, allocations: 82.55 kB / 0.7953 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.152e-05/0.9484, allocations: 74.56 kB / 0.7953 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003455/0.9519, allocations: 2.238 MB / 0.7975 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01306/0.9649, allocations: 10.27 MB / 0.8076 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002951/0.9679, allocations: 1.914 MB / 0.8094 GB, free: 8.152 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001584/0.9695, allocations: 1.048 MB / 0.8104 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007855/0.9774, allocations: 6.61 MB / 0.8169 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001767/0.9792, allocations: 1.061 MB / 0.8179 GB, free: 2.945 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=193): time 4.408e-06/0.9792, allocations: 0 / 0.8179 GB, free: 2.945 MB / 0.5919 GB Notification: Performance of matching and sorting (n=198): time 0.01236/0.9916, allocations: 6.528 MB / 0.8243 GB, free: 492 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.413e-05/0.9917, allocations: 106.3 kB / 0.8244 GB, free: 392 kB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/0.9937, allocations: 1.421 MB / 0.8258 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.000202/0.9939, allocations: 59.7 kB / 0.8259 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008951/0.9948, allocations: 0.9402 MB / 0.8268 GB, free: 14.74 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006545/0.9954, allocations: 0.652 MB / 0.8274 GB, free: 14.17 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005177/0.996, allocations: 300 kB / 0.8277 GB, free: 14 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.9961, allocations: 309.1 kB / 0.828 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.9974, allocations: 0.6809 MB / 0.8287 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001594/0.999, allocations: 0.8529 MB / 0.8295 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007381/1.006, allocations: 2.574 MB / 0.832 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/1.006, allocations: 0 / 0.832 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005057/1.012, allocations: 2.449 MB / 0.8344 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.122e-05/1.012, allocations: 63.39 kB / 0.8345 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/1.012, allocations: 0 / 0.8345 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/1.013, allocations: 473.4 kB / 0.8349 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/1.015, allocations: 325.6 kB / 0.8352 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008663/1.023, allocations: 6.462 MB / 0.8415 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/1.025, allocations: 127.8 kB / 0.8417 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002273/1.025, allocations: 67.97 kB / 0.8417 GB, free: 15.74 MB / 0.6231 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.001104/1.026, allocations: 484.8 kB / 0.8422 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004626/1.027, allocations: 201.5 kB / 0.8424 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006472/1.033, allocations: 3.145 MB / 0.8454 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.51e-05/1.033, allocations: 23.98 kB / 0.8455 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/1.034, allocations: 11.94 kB / 0.8455 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.496e-05/1.034, allocations: 7.969 kB / 0.8455 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0099/1.043, allocations: 5.249 MB / 0.8506 GB, free: 6.691 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/1.043, allocations: 4 kB / 0.8506 GB, free: 6.688 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/1.045, allocations: 309.7 kB / 0.8509 GB, free: 6.402 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/1.046, allocations: 0.4898 MB / 0.8514 GB, free: 5.906 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002161/1.047, allocations: 67.95 kB / 0.8515 GB, free: 5.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008591/1.055, allocations: 6.47 MB / 0.8578 GB, free: 15.13 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/1.055, allocations: 6.656 kB / 0.8578 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007333/1.063, allocations: 3.685 MB / 0.8614 GB, free: 11.43 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/1.064, allocations: 494.2 kB / 0.8618 GB, free: 10.92 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003359/1.064, allocations: 47.94 kB / 0.8619 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/1.065, allocations: 135.6 kB / 0.862 GB, free: 10.74 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004286/1.066, allocations: 172.1 kB / 0.8622 GB, free: 10.58 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001777/1.066, allocations: 75.95 kB / 0.8623 GB, free: 10.5 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0016/1.068, allocations: 1.01 MB / 0.8632 GB, free: 9.504 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.51e-07/1.068, allocations: 0 / 0.8632 GB, free: 9.504 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002851/1.071, allocations: 0.898 MB / 0.8641 GB, free: 8.605 MB / 0.6387 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.001687/1.072, allocations: 0.9288 MB / 0.865 GB, free: 7.762 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.006252/1.079, allocations: 2.653 MB / 0.8676 GB, free: 5.109 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.079, allocations: 0 / 0.8676 GB, free: 5.109 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002927/1.082, allocations: 1.521 MB / 0.8691 GB, free: 3.609 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003599/1.085, allocations: 0.6772 MB / 0.8698 GB, free: 3.004 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009726/1.095, allocations: 5.361 MB / 0.875 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001531/1.096, allocations: 1.573 MB / 0.8765 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008942/1.097, allocations: 215.3 kB / 0.8767 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of SimCode: time 9.92e-07/1.097, allocations: 4 kB / 0.8768 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of Templates: time 0.08221/1.18, allocations: 61.12 MB / 0.9364 GB, free: 14.92 MB / 0.7169 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)