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.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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002302/0.002302, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0023/0.0023, allocations: 191.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.379/2.379, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.373/1.373, allocations: 91.19 MB / 381.6 MB, free: 9.43 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001904, allocations: 84.58 kB / 460.4 MB, free: 23.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.305, allocations: 67.69 MB / 0.5157 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 1.217/1.522, allocations: 225.1 MB / 0.7355 GB, free: 14.42 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.05707/1.579, allocations: 25.02 MB / 0.7599 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007847/1.587, allocations: 79.5 kB / 0.76 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.01095/1.598, allocations: 1.659 MB / 0.7616 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01824/1.616, allocations: 2.606 MB / 0.7642 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.01154/1.628, allocations: 1.907 MB / 0.766 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01254/1.641, allocations: 3.991 MB / 0.7699 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004515/1.645, allocations: 1.127 MB / 0.771 GB, free: 9.883 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006802/1.652, allocations: 1.623 MB / 0.7726 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006211/1.658, allocations: 2.11 MB / 0.7747 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002869/1.661, allocations: 312 kB / 0.775 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01604/1.677, allocations: 3.361 MB / 0.7783 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.002459/1.68, allocations: 0.6501 MB / 0.7789 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.007479/1.687, allocations: 1.509 MB / 0.7804 GB, free: 304 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02505/1.713, allocations: 4.706 MB / 0.785 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.717e-05/1.713, allocations: 3.938 kB / 0.785 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 5.731e-06/1.713, allocations: 0 / 0.785 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002779/1.713, allocations: 0 / 0.785 GB, free: 11.57 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.01766/1.731, allocations: 3.351 MB / 0.7882 GB, free: 8.145 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 8.752e-05/1.731, allocations: 12.03 kB / 0.7882 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004467/1.731, allocations: 274.6 kB / 0.7885 GB, free: 7.855 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008824/1.732, allocations: 288.5 kB / 0.7888 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005411/1.738, allocations: 1.644 MB / 0.7904 GB, free: 5.875 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/1.738, allocations: 151.8 kB / 0.7905 GB, free: 5.727 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003775/1.738, allocations: 203.8 kB / 0.7907 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007088/1.745, allocations: 2.34 MB / 0.793 GB, free: 3.16 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.211e-05/1.745, allocations: 4 kB / 0.793 GB, free: 3.156 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000214/1.745, allocations: 79.98 kB / 0.7931 GB, free: 3.078 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/1.746, allocations: 70.69 kB / 0.7932 GB, free: 3.008 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005186/1.751, allocations: 2.241 MB / 0.7953 GB, free: 0.7617 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02176/1.773, allocations: 10.31 MB / 0.8054 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005236/1.778, allocations: 1.908 MB / 0.8073 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002344/1.78, allocations: 1.054 MB / 0.8083 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/1.795, allocations: 6.607 MB / 0.8148 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00274/1.798, allocations: 1.072 MB / 0.8158 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 1.006e-05/1.798, allocations: 0 / 0.8158 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.02225/1.82, allocations: 6.518 MB / 0.8222 GB, free: 3.281 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/1.82, allocations: 98.98 kB / 0.8223 GB, free: 3.164 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003323/1.824, allocations: 1.395 MB / 0.8236 GB, free: 1.766 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002566/1.824, allocations: 65.69 kB / 0.8237 GB, free: 1.695 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.00161/1.826, allocations: 0.9183 MB / 0.8246 GB, free: 0.7656 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.00153/1.827, allocations: 0.6584 MB / 0.8252 GB, free: 100 kB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.6969/2.524, allocations: 294.9 kB / 0.8255 GB, free: 240.8 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001201/2.524, allocations: 302.3 kB / 0.8258 GB, free: 240.5 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003319/2.528, allocations: 0.6858 MB / 0.8265 GB, free: 240.5 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002324/2.53, allocations: 0.8486 MB / 0.8273 GB, free: 240.4 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01309/2.543, allocations: 2.576 MB / 0.8298 GB, free: 239.6 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-05/2.543, allocations: 0 / 0.8298 GB, free: 239.6 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.008668/2.552, allocations: 2.445 MB / 0.8322 GB, free: 238.6 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002129/2.552, allocations: 58.16 kB / 0.8323 GB, free: 238.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.027e-05/2.552, allocations: 7.094 kB / 0.8323 GB, free: 238.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002493/2.555, allocations: 479 kB / 0.8327 GB, free: 238.4 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/2.556, allocations: 324.4 kB / 0.833 GB, free: 238.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/2.568, allocations: 6.455 MB / 0.8393 GB, free: 233.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003301/2.571, allocations: 60.56 kB / 0.8394 GB, free: 233.6 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000671/2.572, allocations: 71.47 kB / 0.8395 GB, free: 233.6 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.001886/2.574, allocations: 488.4 kB / 0.8399 GB, free: 233.3 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000592/2.574, allocations: 204.3 kB / 0.8401 GB, free: 233.3 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009993/2.584, allocations: 3.127 MB / 0.8432 GB, free: 231.9 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.337e-05/2.584, allocations: 24.06 kB / 0.8432 GB, free: 231.9 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.95e-05/2.584, allocations: 9.234 kB / 0.8432 GB, free: 231.9 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.825e-05/2.584, allocations: 11.75 kB / 0.8432 GB, free: 231.9 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0175/2.602, allocations: 5.241 MB / 0.8483 GB, free: 229.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/2.602, allocations: 1.75 kB / 0.8483 GB, free: 229.5 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001918/2.604, allocations: 311.3 kB / 0.8486 GB, free: 229.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003139/2.607, allocations: 496 kB / 0.8491 GB, free: 229.4 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003125/2.607, allocations: 72.5 kB / 0.8492 GB, free: 229.3 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01267/2.62, allocations: 6.47 MB / 0.8555 GB, free: 224.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.465e-06/2.62, allocations: 9.734 kB / 0.8555 GB, free: 224.6 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/2.633, allocations: 3.67 MB / 0.8591 GB, free: 222.8 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/2.635, allocations: 0.4927 MB / 0.8596 GB, free: 222.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004168/2.635, allocations: 42.03 kB / 0.8596 GB, free: 222.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/2.637, allocations: 61.73 kB / 0.8597 GB, free: 222.4 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000696/2.637, allocations: 176.8 kB / 0.8598 GB, free: 222.4 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002187/2.638, allocations: 72.23 kB / 0.8599 GB, free: 222.4 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.003625/2.641, allocations: 0.9986 MB / 0.8609 GB, free: 222 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/2.641, allocations: 0 / 0.8609 GB, free: 222 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.005193/2.647, allocations: 0.891 MB / 0.8617 GB, free: 221.9 MB / 0.6231 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.01224/2.659, allocations: 5.061 MB / 0.8667 GB, free: 219.4 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.009236/2.668, allocations: 2.648 MB / 0.8693 GB, free: 218.1 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/2.668, allocations: 0 / 0.8693 GB, free: 218.1 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003426/2.672, allocations: 1.529 MB / 0.8708 GB, free: 217.2 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00569/2.677, allocations: 0.6745 MB / 0.8714 GB, free: 216.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04134/2.719, allocations: 18.72 MB / 0.8897 GB, free: 198 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001601/2.72, allocations: 1.565 MB / 0.8912 GB, free: 196.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002323/2.723, allocations: 442.4 kB / 0.8917 GB, free: 196 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001519/2.724, allocations: 0.9796 MB / 0.8926 GB, free: 195 MB / 0.6231 GB Notification: Performance of SimCode: time 2.816e-06/2.724, allocations: 0 / 0.8926 GB, free: 195 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3022/3.027, allocations: 65.72 MB / 0.9568 GB, free: 129.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.39/24.42, allocations: 7.797 kB / 0.9568 GB, free: 129.6 MB / 0.6231 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)