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.001695/0.001695, 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.002126/0.002126, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.734/1.734, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8798/0.8798, allocations: 91.2 MB / 381.6 MB, free: 9.391 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 81.66 kB / 460.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2071, allocations: 67.7 MB / 0.5157 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.7526/0.9598, allocations: 225.1 MB / 0.7355 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03827/0.9981, allocations: 25 MB / 0.7599 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003684/1.002, allocations: 79.5 kB / 0.76 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.005841/1.008, allocations: 1.67 MB / 0.7616 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01095/1.019, allocations: 2.602 MB / 0.7642 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006778/1.026, allocations: 1.912 MB / 0.7661 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008155/1.034, allocations: 3.98 MB / 0.7699 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002143/1.036, allocations: 1.135 MB / 0.771 GB, free: 9.844 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003895/1.04, allocations: 1.623 MB / 0.7726 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004138/1.044, allocations: 2.106 MB / 0.7747 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0007209/1.045, allocations: 315.9 kB / 0.775 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01039/1.055, allocations: 3.361 MB / 0.7783 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001171/1.056, allocations: 0.6501 MB / 0.7789 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.004725/1.061, allocations: 1.509 MB / 0.7804 GB, free: 264 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01512/1.076, allocations: 4.71 MB / 0.785 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/1.076, allocations: 7.875 kB / 0.785 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.564e-06/1.076, allocations: 4 kB / 0.785 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002201/1.077, allocations: 4 kB / 0.785 GB, free: 11.52 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.01263/1.089, allocations: 3.332 MB / 0.7882 GB, free: 8.109 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/1.089, allocations: 16.03 kB / 0.7883 GB, free: 8.094 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007831/1.09, allocations: 278.5 kB / 0.7885 GB, free: 7.812 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/1.091, allocations: 288.5 kB / 0.7888 GB, free: 7.527 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003886/1.095, allocations: 1.64 MB / 0.7904 GB, free: 5.836 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/1.095, allocations: 147.8 kB / 0.7905 GB, free: 5.691 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005752/1.096, allocations: 207.8 kB / 0.7907 GB, free: 5.488 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005832/1.102, allocations: 2.34 MB / 0.793 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.109e-05/1.102, allocations: 0 / 0.793 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002513/1.102, allocations: 76 kB / 0.7931 GB, free: 3.047 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/1.102, allocations: 74.69 kB / 0.7932 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005611/1.108, allocations: 2.237 MB / 0.7954 GB, free: 0.7305 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0172/1.125, allocations: 10.31 MB / 0.8054 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00388/1.129, allocations: 1.908 MB / 0.8073 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/1.131, allocations: 1.058 MB / 0.8083 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/1.142, allocations: 6.603 MB / 0.8148 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002432/1.144, allocations: 1.072 MB / 0.8158 GB, free: 9.969 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 7.113e-06/1.144, allocations: 0 / 0.8158 GB, free: 9.969 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.01697/1.161, allocations: 6.514 MB / 0.8222 GB, free: 3.246 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/1.161, allocations: 98.98 kB / 0.8223 GB, free: 3.129 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003122/1.165, allocations: 1.395 MB / 0.8236 GB, free: 1.73 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002015/1.165, allocations: 65.64 kB / 0.8237 GB, free: 1.66 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009354/1.166, allocations: 0.9299 MB / 0.8246 GB, free: 0.7188 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009594/1.167, allocations: 0.6584 MB / 0.8253 GB, free: 52 kB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.3572/1.524, allocations: 294.2 kB / 0.8255 GB, free: 240.7 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 5.221e-05/1.524, allocations: 301.8 kB / 0.8258 GB, free: 240.4 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/1.526, allocations: 0.6843 MB / 0.8265 GB, free: 240.4 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/1.528, allocations: 0.8472 MB / 0.8273 GB, free: 240.3 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008235/1.536, allocations: 2.571 MB / 0.8298 GB, free: 239.5 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/1.536, allocations: 2 kB / 0.8298 GB, free: 239.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.006806/1.543, allocations: 2.445 MB / 0.8322 GB, free: 238.5 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 7.646e-05/1.543, allocations: 65.33 kB / 0.8323 GB, free: 238.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/1.543, allocations: 2.625 kB / 0.8323 GB, free: 238.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/1.544, allocations: 470.3 kB / 0.8327 GB, free: 238.3 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/1.546, allocations: 324 kB / 0.833 GB, free: 238.3 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007768/1.554, allocations: 6.454 MB / 0.8393 GB, free: 233.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/1.556, allocations: 71.89 kB / 0.8394 GB, free: 233.6 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/1.556, allocations: 70.12 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.001196/1.557, allocations: 483.2 kB / 0.8399 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004587/1.557, allocations: 203.1 kB / 0.8401 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007039/1.564, allocations: 3.131 MB / 0.8432 GB, free: 231.9 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-05/1.565, allocations: 25.16 kB / 0.8432 GB, free: 231.9 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.591e-05/1.565, allocations: 7.438 kB / 0.8432 GB, free: 231.9 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.601e-05/1.565, allocations: 11.08 kB / 0.8432 GB, free: 231.9 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/1.577, allocations: 5.246 MB / 0.8484 GB, free: 229.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/1.577, allocations: 2.312 kB / 0.8484 GB, free: 229.4 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/1.579, allocations: 309.2 kB / 0.8487 GB, free: 229.4 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001995/1.581, allocations: 493.4 kB / 0.8491 GB, free: 229.3 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002071/1.581, allocations: 64.89 kB / 0.8492 GB, free: 229.3 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/1.591, allocations: 6.472 MB / 0.8555 GB, free: 224.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/1.591, allocations: 6.875 kB / 0.8555 GB, free: 224.5 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00903/1.6, allocations: 3.67 MB / 0.8591 GB, free: 222.8 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/1.601, allocations: 0.4933 MB / 0.8596 GB, free: 222.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002754/1.602, allocations: 49.72 kB / 0.8596 GB, free: 222.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/1.603, allocations: 64.17 kB / 0.8597 GB, free: 222.3 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004901/1.603, allocations: 168.4 kB / 0.8598 GB, free: 222.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001671/1.604, allocations: 76.73 kB / 0.8599 GB, free: 222.3 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00211/1.606, allocations: 0.9953 MB / 0.8609 GB, free: 221.9 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/1.606, allocations: 0 / 0.8609 GB, free: 221.9 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003308/1.609, allocations: 0.8901 MB / 0.8618 GB, free: 221.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.007638/1.617, allocations: 5.059 MB / 0.8667 GB, free: 219.4 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00556/1.622, allocations: 2.656 MB / 0.8693 GB, free: 218 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/1.622, allocations: 0 / 0.8693 GB, free: 218 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002552/1.625, allocations: 1.536 MB / 0.8708 GB, free: 217.1 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003084/1.628, allocations: 0.6653 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.02725/1.655, allocations: 18.71 MB / 0.8897 GB, free: 198 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/1.656, allocations: 1.584 MB / 0.8913 GB, free: 196.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00176/1.658, allocations: 421.7 kB / 0.8917 GB, free: 196 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/1.659, allocations: 0.9796 MB / 0.8926 GB, free: 195 MB / 0.6231 GB Notification: Performance of SimCode: time 7.72e-07/1.659, allocations: 0 / 0.8926 GB, free: 195 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1029/1.762, allocations: 65.73 MB / 0.9568 GB, free: 129.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/15.77, allocations: 7.922 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 & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches