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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_dev_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.002589/0.00259, 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.003581/0.003581, allocations: 195.9 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.383/2.383, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.301/1.301, allocations: 93.71 MB / 384.1 MB, free: 6.953 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00283/0.002831, allocations: 83.14 kB / 463.5 MB, free: 22.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2999, allocations: 68.26 MB / 0.5193 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 1.192/1.492, allocations: 225.1 MB / 0.7391 GB, free: 9.684 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.05864/1.551, allocations: 25.06 MB / 0.7636 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007477/1.559, allocations: 79.5 kB / 0.7636 GB, free: 480 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.01004/1.569, allocations: 1.666 MB / 0.7653 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01995/1.589, allocations: 2.637 MB / 0.7678 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.01316/1.602, allocations: 1.919 MB / 0.7697 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01416/1.616, allocations: 4.065 MB / 0.7737 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004455/1.621, allocations: 1.129 MB / 0.7748 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007555/1.628, allocations: 1.654 MB / 0.7764 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007466/1.636, allocations: 2.114 MB / 0.7785 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001908/1.638, allocations: 312 kB / 0.7788 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01696/1.655, allocations: 3.365 MB / 0.782 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.002853/1.658, allocations: 0.6501 MB / 0.7827 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.005094/1.663, allocations: 1.52 MB / 0.7842 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0224/1.685, allocations: 4.733 MB / 0.7888 GB, free: 6.586 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.555e-05/1.686, allocations: 0 / 0.7888 GB, free: 6.586 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.377e-06/1.686, allocations: 8 kB / 0.7888 GB, free: 6.578 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002154/1.686, allocations: 0 / 0.7888 GB, free: 6.578 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.01496/1.701, allocations: 3.359 MB / 0.7921 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 7.34e-05/1.701, allocations: 8.031 kB / 0.7921 GB, free: 3.133 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005443/1.701, allocations: 278.6 kB / 0.7923 GB, free: 2.852 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001107/1.703, allocations: 296.4 kB / 0.7926 GB, free: 2.559 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005561/1.708, allocations: 1.672 MB / 0.7943 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/1.708, allocations: 139.8 kB / 0.7944 GB, free: 0.6992 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003691/1.709, allocations: 207.9 kB / 0.7946 GB, free: 0.4961 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006676/1.715, allocations: 2.336 MB / 0.7969 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.846e-05/1.715, allocations: 0 / 0.7969 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002128/1.716, allocations: 76 kB / 0.797 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/1.716, allocations: 82.67 kB / 0.797 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005925/1.722, allocations: 2.229 MB / 0.7992 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02462/1.746, allocations: 10.33 MB / 0.8093 GB, free: 476 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004424/1.751, allocations: 1.908 MB / 0.8112 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002957/1.754, allocations: 1.07 MB / 0.8122 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01373/1.768, allocations: 6.595 MB / 0.8186 GB, free: 6.043 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003276/1.771, allocations: 1.064 MB / 0.8197 GB, free: 4.961 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 7.494e-06/1.771, allocations: 0 / 0.8197 GB, free: 4.961 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.7117/2.483, allocations: 6.528 MB / 0.8261 GB, free: 238.1 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002703/2.483, allocations: 100.4 kB / 0.8262 GB, free: 238 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004384/2.488, allocations: 1.426 MB / 0.8275 GB, free: 237.7 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0005817/2.488, allocations: 58.22 kB / 0.8276 GB, free: 237.7 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.002113/2.49, allocations: 0.939 MB / 0.8285 GB, free: 237 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001602/2.492, allocations: 0.6527 MB / 0.8292 GB, free: 236.4 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/2.493, allocations: 304.6 kB / 0.8294 GB, free: 236.3 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001573/2.493, allocations: 304 kB / 0.8297 GB, free: 236 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/2.496, allocations: 0.6823 MB / 0.8304 GB, free: 235.7 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002983/2.499, allocations: 0.8543 MB / 0.8312 GB, free: 235.3 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01145/2.51, allocations: 2.574 MB / 0.8337 GB, free: 234.2 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.489e-05/2.51, allocations: 1.188 kB / 0.8337 GB, free: 234.2 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.007325/2.518, allocations: 2.444 MB / 0.8361 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/2.518, allocations: 64.59 kB / 0.8362 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/2.518, allocations: 2.844 kB / 0.8362 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002028/2.52, allocations: 471.2 kB / 0.8367 GB, free: 232.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/2.521, allocations: 317 kB / 0.837 GB, free: 232.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/2.535, allocations: 6.475 MB / 0.8433 GB, free: 228.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/2.538, allocations: 62.03 kB / 0.8433 GB, free: 228.1 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000753/2.538, allocations: 71.3 kB / 0.8434 GB, free: 228.1 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.002416/2.541, allocations: 491.4 kB / 0.8439 GB, free: 227.7 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007244/2.542, allocations: 199.9 kB / 0.8441 GB, free: 227.6 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/2.552, allocations: 3.14 MB / 0.8471 GB, free: 226.2 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-05/2.552, allocations: 20.19 kB / 0.8471 GB, free: 226.2 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.673e-05/2.552, allocations: 8.625 kB / 0.8472 GB, free: 226.2 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.798e-05/2.552, allocations: 11.67 kB / 0.8472 GB, free: 226.2 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01836/2.57, allocations: 5.254 MB / 0.8523 GB, free: 223.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.555e-05/2.571, allocations: 2.25 kB / 0.8523 GB, free: 223.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002134/2.573, allocations: 308.5 kB / 0.8526 GB, free: 223.8 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/2.575, allocations: 495.8 kB / 0.8531 GB, free: 223.6 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000188/2.575, allocations: 72.17 kB / 0.8531 GB, free: 223.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/2.587, allocations: 6.465 MB / 0.8594 GB, free: 218.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.137e-05/2.587, allocations: 11.36 kB / 0.8595 GB, free: 218.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01189/2.599, allocations: 3.675 MB / 0.863 GB, free: 217 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002612/2.602, allocations: 0.49 MB / 0.8635 GB, free: 216.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/2.603, allocations: 45.66 kB / 0.8636 GB, free: 216.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/2.605, allocations: 58.42 kB / 0.8636 GB, free: 216.6 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000691/2.605, allocations: 175.7 kB / 0.8638 GB, free: 216.5 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/2.606, allocations: 79.2 kB / 0.8639 GB, free: 216.5 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.002058/2.608, allocations: 1.019 MB / 0.8649 GB, free: 216 MB / 0.6231 GB Notification: Performance of sort global known variables: time 6.71e-07/2.608, allocations: 0 / 0.8649 GB, free: 216 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.005948/2.614, allocations: 0.8885 MB / 0.8657 GB, free: 215.8 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.01023/2.624, allocations: 5.062 MB / 0.8707 GB, free: 213 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.008299/2.632, allocations: 2.647 MB / 0.8733 GB, free: 211.5 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.011e-05/2.632, allocations: 0 / 0.8733 GB, free: 211.5 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004416/2.637, allocations: 1.539 MB / 0.8748 GB, free: 210.6 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004956/2.642, allocations: 0.6718 MB / 0.8754 GB, free: 210.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03948/2.681, allocations: 18.89 MB / 0.8939 GB, free: 190.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001498/2.683, allocations: 1.581 MB / 0.8954 GB, free: 188.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002398/2.685, allocations: 442.1 kB / 0.8958 GB, free: 188.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002589/2.688, allocations: 0.9874 MB / 0.8968 GB, free: 187.5 MB / 0.6231 GB Notification: Performance of SimCode: time 3.036e-06/2.688, allocations: 0 / 0.8968 GB, free: 187.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1984/2.886, allocations: 66.06 MB / 0.9613 GB, free: 121.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.94/20.83, allocations: 11.92 kB / 0.9613 GB, free: 121.8 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)