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.002241/0.002241, allocations: 108 kB / 15.6 MB, free: 132 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.003207/0.003207, allocations: 194.4 kB / 16.53 MB, free: 6.391 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.745/1.745, allocations: 222.9 MB / 240.2 MB, free: 4.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9437/0.9437, allocations: 93.7 MB / 384.1 MB, free: 6.969 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.003738/0.003738, allocations: 90.55 kB / 463.5 MB, free: 21.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2091, allocations: 68.26 MB / 0.5193 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.8102/1.019, allocations: 225.1 MB / 0.7391 GB, free: 9.648 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.04267/1.062, allocations: 25.04 MB / 0.7636 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004562/1.067, allocations: 83.5 kB / 0.7636 GB, free: 456 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00663/1.073, allocations: 1.662 MB / 0.7653 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01239/1.086, allocations: 2.648 MB / 0.7679 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007694/1.094, allocations: 1.908 MB / 0.7697 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00893/1.103, allocations: 4.069 MB / 0.7737 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00273/1.105, allocations: 1.131 MB / 0.7748 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004678/1.11, allocations: 1.65 MB / 0.7764 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005211/1.115, allocations: 2.11 MB / 0.7785 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001067/1.117, allocations: 316 kB / 0.7788 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0109/1.127, allocations: 3.361 MB / 0.782 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001729/1.129, allocations: 0.6501 MB / 0.7827 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003652/1.133, allocations: 1.516 MB / 0.7842 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01504/1.148, allocations: 4.737 MB / 0.7888 GB, free: 6.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.452e-05/1.148, allocations: 0 / 0.7888 GB, free: 6.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.567e-06/1.148, allocations: 0 / 0.7888 GB, free: 6.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001713/1.148, allocations: 0 / 0.7888 GB, free: 6.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.01139/1.16, allocations: 3.371 MB / 0.7921 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.182e-05/1.16, allocations: 12.03 kB / 0.7921 GB, free: 3.109 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004457/1.16, allocations: 270.6 kB / 0.7923 GB, free: 2.836 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008713/1.161, allocations: 292.4 kB / 0.7926 GB, free: 2.547 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003287/1.164, allocations: 1.672 MB / 0.7943 GB, free: 0.8242 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/1.165, allocations: 147.8 kB / 0.7944 GB, free: 0.6797 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003476/1.165, allocations: 199.9 kB / 0.7946 GB, free: 496 kB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004594/1.17, allocations: 2.34 MB / 0.7969 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.83e-05/1.17, allocations: 0 / 0.7969 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001829/1.17, allocations: 83.97 kB / 0.797 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.234e-05/1.17, allocations: 70.7 kB / 0.797 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004423/1.174, allocations: 2.241 MB / 0.7992 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01819/1.193, allocations: 10.33 MB / 0.8093 GB, free: 452 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004777/1.197, allocations: 1.901 MB / 0.8112 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002124/1.2, allocations: 1.054 MB / 0.8122 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01109/1.211, allocations: 6.61 MB / 0.8186 GB, free: 6.027 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00216/1.213, allocations: 1.068 MB / 0.8197 GB, free: 4.941 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 5.861e-06/1.213, allocations: 0 / 0.8197 GB, free: 4.941 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.3495/1.562, allocations: 6.524 MB / 0.8261 GB, free: 238.1 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.622e-05/1.563, allocations: 104.1 kB / 0.8262 GB, free: 238 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/1.565, allocations: 1.426 MB / 0.8275 GB, free: 237.7 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.000377/1.566, allocations: 62.7 kB / 0.8276 GB, free: 237.7 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001167/1.567, allocations: 0.9379 MB / 0.8285 GB, free: 236.9 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.000848/1.568, allocations: 0.6549 MB / 0.8292 GB, free: 236.4 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007131/1.568, allocations: 295.1 kB / 0.8294 GB, free: 236.3 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.682e-05/1.569, allocations: 302.7 kB / 0.8297 GB, free: 236 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/1.57, allocations: 0.6858 MB / 0.8304 GB, free: 235.7 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001696/1.572, allocations: 0.8513 MB / 0.8312 GB, free: 235.3 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008089/1.58, allocations: 2.578 MB / 0.8338 GB, free: 234.2 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/1.58, allocations: 0 / 0.8338 GB, free: 234.2 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005394/1.585, allocations: 2.446 MB / 0.8361 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.019e-05/1.585, allocations: 64.61 kB / 0.8362 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/1.585, allocations: 3.938 kB / 0.8362 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001733/1.587, allocations: 476.4 kB / 0.8367 GB, free: 232.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/1.589, allocations: 315.6 kB / 0.837 GB, free: 232.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009217/1.598, allocations: 6.457 MB / 0.8433 GB, free: 228.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002825/1.601, allocations: 59.88 kB / 0.8433 GB, free: 228.1 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003442/1.601, allocations: 71.91 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.001366/1.603, allocations: 485.7 kB / 0.8439 GB, free: 227.7 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007438/1.603, allocations: 211.8 kB / 0.8441 GB, free: 227.6 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007135/1.61, allocations: 3.137 MB / 0.8471 GB, free: 226.2 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-05/1.611, allocations: 23.61 kB / 0.8471 GB, free: 226.2 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/1.611, allocations: 6.469 kB / 0.8472 GB, free: 226.2 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.811e-05/1.611, allocations: 11.89 kB / 0.8472 GB, free: 226.2 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/1.623, allocations: 5.252 MB / 0.8523 GB, free: 223.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/1.623, allocations: 6.75 kB / 0.8523 GB, free: 223.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/1.624, allocations: 309.1 kB / 0.8526 GB, free: 223.8 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001644/1.626, allocations: 0.492 MB / 0.8531 GB, free: 223.6 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001563/1.626, allocations: 72.98 kB / 0.8531 GB, free: 223.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00845/1.634, allocations: 6.453 MB / 0.8594 GB, free: 218.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.634, allocations: 5.594 kB / 0.8594 GB, free: 218.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008341/1.643, allocations: 3.684 MB / 0.863 GB, free: 217 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001839/1.645, allocations: 0.4889 MB / 0.8635 GB, free: 216.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000416/1.645, allocations: 46.38 kB / 0.8636 GB, free: 216.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/1.646, allocations: 58.95 kB / 0.8636 GB, free: 216.6 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004359/1.647, allocations: 170.5 kB / 0.8638 GB, free: 216.6 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/1.647, allocations: 73.33 kB / 0.8639 GB, free: 216.5 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001389/1.648, allocations: 1.022 MB / 0.8649 GB, free: 216 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/1.648, allocations: 0 / 0.8649 GB, free: 216 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003447/1.652, allocations: 0.8961 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.007507/1.659, allocations: 5.058 MB / 0.8707 GB, free: 213 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.006857/1.666, allocations: 2.654 MB / 0.8733 GB, free: 211.6 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.707e-05/1.666, allocations: 3.938 kB / 0.8733 GB, free: 211.6 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00302/1.669, allocations: 1.544 MB / 0.8748 GB, free: 210.7 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003759/1.673, allocations: 0.669 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.03306/1.706, 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.001124/1.707, allocations: 1.581 MB / 0.8954 GB, free: 188.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002052/1.709, allocations: 429.5 kB / 0.8958 GB, free: 188.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/1.711, allocations: 0.9913 MB / 0.8968 GB, free: 187.5 MB / 0.6231 GB Notification: Performance of SimCode: time 1.763e-06/1.711, allocations: 0 / 0.8968 GB, free: 187.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/1.835, allocations: 66.06 MB / 0.9613 GB, free: 121.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/16.01, allocations: 7.797 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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches