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: 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_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_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.0009851/0.0009851, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005439/0.005438, allocations: 174.4 kB / 16.27 MB, free: 6.66 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.343/1.343, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6544/0.6544, allocations: 91.32 MB / 382.8 MB, free: 9.66 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004055/0.0004053, allocations: 13.53 kB / 462.7 MB, free: 23.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1302, allocations: 69.21 MB / 0.5195 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4891/0.6194, allocations: 221.9 MB / 0.7361 GB, free: 9.527 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03029/0.6497, allocations: 25.12 MB / 0.7607 GB, free: 340 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003291/0.6531, allocations: 103.2 kB / 0.7608 GB, free: 236 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004502/0.6576, allocations: 1.489 MB / 0.7622 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007912/0.6655, allocations: 2.409 MB / 0.7646 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005562/0.6711, allocations: 1.651 MB / 0.7662 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006611/0.6778, allocations: 4.74 MB / 0.7708 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001814/0.6796, allocations: 1.001 MB / 0.7718 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002693/0.6823, allocations: 1.306 MB / 0.7731 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002812/0.6851, allocations: 1.891 MB / 0.7749 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003873/0.6856, allocations: 104 kB / 0.775 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006834/0.6924, allocations: 3.162 MB / 0.7781 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006121/0.693, allocations: 429.8 kB / 0.7785 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001695/0.6947, allocations: 1.292 MB / 0.7798 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007151/0.7019, allocations: 4.416 MB / 0.7841 GB, free: 8.215 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.7019, allocations: 0 / 0.7841 GB, free: 8.215 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.653e-06/0.7019, allocations: 0 / 0.7841 GB, free: 8.215 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.847e-05/0.702, allocations: 0 / 0.7841 GB, free: 8.215 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.006571/0.7086, allocations: 2.872 MB / 0.7869 GB, free: 5.266 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.7087, allocations: 8.031 kB / 0.7869 GB, free: 5.258 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006801/0.7094, allocations: 292.4 kB / 0.7872 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002737/0.7121, allocations: 1.652 MB / 0.7888 GB, free: 3.266 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.7122, allocations: 151.8 kB / 0.7889 GB, free: 3.117 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003522/0.7126, allocations: 199.9 kB / 0.7891 GB, free: 2.922 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004088/0.7167, allocations: 2.348 MB / 0.7914 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.785e-05/0.7167, allocations: 0 / 0.7914 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001721/0.7169, allocations: 76 kB / 0.7915 GB, free: 484 kB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.587e-05/0.717, allocations: 82.69 kB / 0.7916 GB, free: 400 kB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003968/0.721, allocations: 2.26 MB / 0.7938 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01372/0.7347, allocations: 10.3 MB / 0.8038 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003402/0.7382, allocations: 1.94 MB / 0.8057 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2806/1.019, allocations: 1.059 MB / 0.8067 GB, free: 225 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009236/1.028, allocations: 6.605 MB / 0.8132 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002406/1.031, allocations: 1.076 MB / 0.8142 GB, free: 220 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=193): time 1.379e-05/1.031, allocations: 0.8125 kB / 0.8142 GB, free: 220 MB / 0.6075 GB Notification: Performance of matching and sorting (n=198): time 0.0182/1.049, allocations: 6.566 MB / 0.8207 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/1.049, allocations: 103.3 kB / 0.8208 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002638/1.052, allocations: 1.395 MB / 0.8221 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0003098/1.052, allocations: 61.52 kB / 0.8222 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000854/1.053, allocations: 0.9264 MB / 0.8231 GB, free: 215 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008308/1.054, allocations: 0.6545 MB / 0.8237 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003523/1.054, allocations: 140.2 kB / 0.8239 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.534e-05/1.054, allocations: 301.1 kB / 0.8241 GB, free: 214.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/1.056, allocations: 0.699 MB / 0.8248 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/1.057, allocations: 0.8555 MB / 0.8257 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00801/1.065, allocations: 2.721 MB / 0.8283 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/1.065, allocations: 1.844 kB / 0.8283 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005538/1.071, allocations: 2.466 MB / 0.8307 GB, free: 211.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 8.075e-05/1.071, allocations: 63.62 kB / 0.8308 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/1.071, allocations: 5.531 kB / 0.8308 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/1.073, allocations: 470.7 kB / 0.8312 GB, free: 211.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/1.074, allocations: 325.9 kB / 0.8316 GB, free: 211 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008469/1.083, allocations: 5.961 MB / 0.8374 GB, free: 206.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00222/1.085, allocations: 135 kB / 0.8375 GB, free: 206.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004566/1.086, allocations: 70.88 kB / 0.8376 GB, free: 206.6 MB / 0.6075 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.001479/1.087, allocations: 474.8 kB / 0.838 GB, free: 206.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006165/1.088, allocations: 199.7 kB / 0.8382 GB, free: 206.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006854/1.095, allocations: 3.161 MB / 0.8413 GB, free: 204.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/1.095, allocations: 20.84 kB / 0.8413 GB, free: 204.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-05/1.095, allocations: 11.98 kB / 0.8413 GB, free: 204.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.054e-05/1.095, allocations: 11.47 kB / 0.8413 GB, free: 204.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/1.105, allocations: 5.277 MB / 0.8465 GB, free: 202 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/1.105, allocations: 3.969 kB / 0.8465 GB, free: 202 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/1.106, allocations: 312.6 kB / 0.8468 GB, free: 201.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001446/1.108, allocations: 493.5 kB / 0.8473 GB, free: 201.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002193/1.108, allocations: 67.73 kB / 0.8473 GB, free: 201.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006534/1.114, allocations: 5.967 MB / 0.8532 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.114, allocations: 0 / 0.8532 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006438/1.121, allocations: 3.709 MB / 0.8568 GB, free: 194.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/1.122, allocations: 0.4976 MB / 0.8573 GB, free: 194.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004662/1.123, allocations: 46.22 kB / 0.8573 GB, free: 194.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/1.124, allocations: 144.4 kB / 0.8574 GB, free: 194.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003827/1.125, allocations: 172.4 kB / 0.8576 GB, free: 194.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001619/1.125, allocations: 73.98 kB / 0.8577 GB, free: 194.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001541/1.126, allocations: 0.9957 MB / 0.8587 GB, free: 193.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/1.126, allocations: 3.938 kB / 0.8587 GB, free: 193.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003084/1.129, allocations: 0.8924 MB / 0.8595 GB, free: 193.4 MB / 0.6075 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.001689/1.131, allocations: 0.9777 MB / 0.8605 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004513/1.136, allocations: 2.43 MB / 0.8629 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.136, allocations: 4.062 kB / 0.8629 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002766/1.138, allocations: 1.544 MB / 0.8644 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004491/1.143, allocations: 0.6067 MB / 0.865 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008697/1.152, allocations: 5.422 MB / 0.8703 GB, free: 182.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00143/1.153, allocations: 1.58 MB / 0.8718 GB, free: 181 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001992/1.155, allocations: 429.4 kB / 0.8722 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006511/1.156, allocations: 187.4 kB / 0.8724 GB, free: 180.5 MB / 0.6075 GB Notification: Performance of SimCode: time 1.763e-06/1.156, allocations: 0 / 0.8724 GB, free: 180.5 MB / 0.6075 GB Notification: Performance of Templates: time 0.0627/1.219, allocations: 43.4 MB / 0.9148 GB, free: 137.4 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile (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 & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches