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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.00135/0.00135, 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.002353/0.002353, allocations: 195.2 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6525/0.6525, allocations: 89.46 MB / 379.8 MB, free: 11.02 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 81.88 kB / 458.2 MB, free: 23.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1148, allocations: 67.31 MB / 0.5132 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4661/0.581, allocations: 224.7 MB / 0.7326 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02764/0.6086, allocations: 24.9 MB / 0.7569 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00231/0.611, allocations: 31.94 kB / 0.757 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004359/0.6154, allocations: 1.647 MB / 0.7586 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006665/0.6221, allocations: 2.524 MB / 0.761 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005244/0.6274, allocations: 1.906 MB / 0.7629 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.005236/0.6326, allocations: 3.8 MB / 0.7666 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001947/0.6346, allocations: 1.106 MB / 0.7677 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002678/0.6373, allocations: 1.522 MB / 0.7692 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003384/0.6407, allocations: 2.067 MB / 0.7712 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000976/0.6417, allocations: 319.9 kB / 0.7715 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007977/0.6497, allocations: 3.361 MB / 0.7748 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.6508, allocations: 0.6346 MB / 0.7754 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002706/0.6535, allocations: 1.431 MB / 0.7768 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.008835/0.6623, allocations: 4.48 MB / 0.7812 GB, free: 140 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.6624, allocations: 0 / 0.7812 GB, free: 140 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6624, allocations: 0 / 0.7812 GB, free: 140 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001192/0.6625, allocations: 0 / 0.7812 GB, free: 140 kB / 0.5762 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.008146/0.6707, allocations: 3.077 MB / 0.7842 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.6707, allocations: 12.03 kB / 0.7842 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000789/0.6715, allocations: 257.8 kB / 0.7844 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002295/0.6738, allocations: 1.247 MB / 0.7857 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.674, allocations: 144.2 kB / 0.7858 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004698/0.6745, allocations: 212.2 kB / 0.786 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004623/0.6791, allocations: 2.332 MB / 0.7883 GB, free: 8.711 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.046e-05/0.6792, allocations: 4 kB / 0.7883 GB, free: 8.707 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002146/0.6794, allocations: 79.98 kB / 0.7883 GB, free: 8.629 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.718e-05/0.6795, allocations: 78.69 kB / 0.7884 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00413/0.6836, allocations: 2.237 MB / 0.7906 GB, free: 6.309 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01295/0.6966, allocations: 10.23 MB / 0.8006 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003323/0.7, allocations: 1.912 MB / 0.8025 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/0.7018, allocations: 1.065 MB / 0.8035 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007718/0.7095, allocations: 6.607 MB / 0.81 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001892/0.7115, allocations: 1.072 MB / 0.811 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 5.019e-06/0.7115, allocations: 0 / 0.811 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.01285/0.7243, allocations: 6.383 MB / 0.8172 GB, free: 9.035 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.7244, allocations: 111 kB / 0.8173 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/0.7261, allocations: 1.129 MB / 0.8184 GB, free: 7.773 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002022/0.7263, allocations: 61.7 kB / 0.8185 GB, free: 7.707 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006077/0.7269, allocations: 0.7833 MB / 0.8193 GB, free: 6.914 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005991/0.7276, allocations: 0.6545 MB / 0.8199 GB, free: 6.25 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005691/0.7281, allocations: 299.6 kB / 0.8202 GB, free: 5.953 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.783e-05/0.7282, allocations: 309.1 kB / 0.8205 GB, free: 5.648 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.7296, allocations: 0.6872 MB / 0.8212 GB, free: 4.961 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.731, allocations: 0.845 MB / 0.822 GB, free: 4.086 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007205/0.7383, allocations: 2.571 MB / 0.8245 GB, free: 1.461 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.7383, allocations: 4 kB / 0.8245 GB, free: 1.457 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.2253/0.9636, allocations: 2.41 MB / 0.8269 GB, free: 242.7 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 7.943e-05/0.9637, allocations: 63.72 kB / 0.8269 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-05/0.9637, allocations: 3.094 kB / 0.8269 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002519/0.9663, allocations: 475.6 kB / 0.8274 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002295/0.9686, allocations: 323.2 kB / 0.8277 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.9797, allocations: 6.456 MB / 0.834 GB, free: 238.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002526/0.9823, allocations: 64.97 kB / 0.834 GB, free: 238.4 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006878/0.983, allocations: 73.23 kB / 0.8341 GB, free: 238.4 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.002303/0.9854, allocations: 456.9 kB / 0.8346 GB, free: 238 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/0.9864, allocations: 171.2 kB / 0.8347 GB, free: 238 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008535/0.9949, allocations: 3.119 MB / 0.8378 GB, free: 236.7 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.657e-05/0.995, allocations: 20.59 kB / 0.8378 GB, free: 236.7 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.86e-05/0.9951, allocations: 7.406 kB / 0.8378 GB, free: 236.7 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.435e-05/0.9951, allocations: 10.42 kB / 0.8378 GB, free: 236.7 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/1.006, allocations: 5.158 MB / 0.8428 GB, free: 234.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/1.006, allocations: 3.656 kB / 0.8428 GB, free: 234.3 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/1.008, allocations: 311.8 kB / 0.8431 GB, free: 234.3 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001389/1.009, allocations: 0.4897 MB / 0.8436 GB, free: 234.2 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/1.009, allocations: 66.72 kB / 0.8437 GB, free: 234.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006916/1.016, allocations: 6.482 MB / 0.85 GB, free: 229.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.016, allocations: 0 / 0.85 GB, free: 229.4 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006833/1.023, allocations: 3.642 MB / 0.8536 GB, free: 227.7 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008423/1.024, allocations: 471 kB / 0.854 GB, free: 227.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004038/1.024, allocations: 51.23 kB / 0.8541 GB, free: 227.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/1.025, allocations: 65.92 kB / 0.8541 GB, free: 227.3 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/1.026, allocations: 175.8 kB / 0.8543 GB, free: 227.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001594/1.026, allocations: 72.22 kB / 0.8544 GB, free: 227.3 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001294/1.027, allocations: 0.8296 MB / 0.8552 GB, free: 226.9 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.4e-07/1.027, allocations: 0 / 0.8552 GB, free: 226.9 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002786/1.03, allocations: 0.8895 MB / 0.856 GB, free: 226.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.001523/1.032, allocations: 0.9256 MB / 0.8569 GB, free: 226.6 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.005855/1.037, allocations: 2.651 MB / 0.8595 GB, free: 225.4 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/1.037, allocations: 0 / 0.8595 GB, free: 225.4 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002615/1.04, allocations: 1.533 MB / 0.861 GB, free: 224.6 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003021/1.043, allocations: 0.6464 MB / 0.8617 GB, free: 224.4 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006439/1.05, allocations: 4.018 MB / 0.8656 GB, free: 222.3 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/1.051, allocations: 1.487 MB / 0.867 GB, free: 221.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001444/1.052, allocations: 406.6 kB / 0.8674 GB, free: 221.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004619/1.053, allocations: 165.1 kB / 0.8676 GB, free: 221.2 MB / 0.6231 GB Notification: Performance of SimCode: time 8.61e-07/1.053, allocations: 3.969 kB / 0.8676 GB, free: 221.2 MB / 0.6231 GB Notification: Performance of Templates: time 0.07531/1.128, allocations: 44.77 MB / 0.9113 GB, free: 180 MB / 0.6231 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