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: 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_dev_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_dev_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.001512/0.001512, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001741/0.001742, allocations: 196.1 kB / 16.14 MB, free: 6.73 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.328/1.328, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6824/0.6824, allocations: 93.71 MB / 383.7 MB, free: 7.164 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002403/0.002403, allocations: 83.59 kB / 462.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1236, allocations: 68.26 MB / 0.5185 GB, free: 7.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4438/0.5675, allocations: 224.9 MB / 0.7382 GB, free: 10.4 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0293/0.5968, allocations: 25.51 MB / 0.7631 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002921/0.5998, allocations: 111.2 kB / 0.7632 GB, free: 0.6992 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003917/0.6037, allocations: 1.497 MB / 0.7647 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006266/0.61, allocations: 2.433 MB / 0.767 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004439/0.6145, allocations: 1.636 MB / 0.7686 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005242/0.6197, allocations: 4.818 MB / 0.7734 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.6212, allocations: 1.036 MB / 0.7744 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002445/0.6237, allocations: 1.462 MB / 0.7758 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002825/0.6265, allocations: 2.055 MB / 0.7778 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004095/0.627, allocations: 180 kB / 0.778 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007048/0.634, allocations: 3.224 MB / 0.7811 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0008239/0.6349, allocations: 0.5211 MB / 0.7816 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002094/0.637, allocations: 1.383 MB / 0.783 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007689/0.6447, allocations: 4.55 MB / 0.7874 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.6447, allocations: 0 / 0.7874 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6447, allocations: 0 / 0.7874 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.679e-05/0.6448, allocations: 0 / 0.7874 GB, free: 7.777 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.006866/0.6517, allocations: 3.37 MB / 0.7907 GB, free: 4.328 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.6517, allocations: 12.03 kB / 0.7907 GB, free: 4.316 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005384/0.6523, allocations: 292.4 kB / 0.791 GB, free: 4.027 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00244/0.6547, allocations: 1.668 MB / 0.7926 GB, free: 2.309 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.967e-05/0.6548, allocations: 147.8 kB / 0.7928 GB, free: 2.164 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002862/0.6551, allocations: 207.9 kB / 0.793 GB, free: 1.961 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003917/0.659, allocations: 2.332 MB / 0.7952 GB, free: 15.6 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.85e-05/0.6591, allocations: 4 kB / 0.7953 GB, free: 15.6 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.6593, allocations: 76 kB / 0.7953 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.842e-05/0.6594, allocations: 74.69 kB / 0.7954 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003811/0.6632, allocations: 2.237 MB / 0.7976 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01257/0.6758, allocations: 10.27 MB / 0.8076 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003314/0.6791, allocations: 1.903 MB / 0.8095 GB, free: 64 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.681, allocations: 1.058 MB / 0.8105 GB, free: 15 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008202/0.6892, allocations: 6.603 MB / 0.8169 GB, free: 7.57 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001916/0.6912, allocations: 1.068 MB / 0.818 GB, free: 6.484 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 3.297e-06/0.6912, allocations: 0 / 0.818 GB, free: 6.484 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.2334/0.9245, allocations: 6.519 MB / 0.8244 GB, free: 238.2 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.9246, allocations: 100.6 kB / 0.8245 GB, free: 238.1 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/0.9269, allocations: 1.422 MB / 0.8258 GB, free: 237.9 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0003619/0.9273, allocations: 65.48 kB / 0.8259 GB, free: 237.9 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007412/0.928, allocations: 0.9351 MB / 0.8268 GB, free: 237.5 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006416/0.9287, allocations: 0.6591 MB / 0.8275 GB, free: 237.2 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005086/0.9292, allocations: 296.2 kB / 0.8277 GB, free: 237 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 4.169e-05/0.9293, allocations: 305.2 kB / 0.828 GB, free: 236.7 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.9306, allocations: 0.6868 MB / 0.8287 GB, free: 236.5 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.9322, allocations: 0.8481 MB / 0.8295 GB, free: 236.1 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007054/0.9393, allocations: 2.569 MB / 0.832 GB, free: 235 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.9393, allocations: 0.6562 kB / 0.832 GB, free: 235 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004613/0.9439, allocations: 2.457 MB / 0.8344 GB, free: 233.9 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.574e-05/0.944, allocations: 61.81 kB / 0.8345 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.944, allocations: 6.078 kB / 0.8345 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.9455, allocations: 458.1 kB / 0.8349 GB, free: 233.7 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.9468, allocations: 329.3 kB / 0.8353 GB, free: 233.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006579/0.9533, allocations: 5.931 MB / 0.8411 GB, free: 229.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.955, allocations: 129.3 kB / 0.8412 GB, free: 229.2 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001848/0.9552, allocations: 70.7 kB / 0.8412 GB, free: 229.2 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.0009007/0.9561, allocations: 485.4 kB / 0.8417 GB, free: 228.9 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003731/0.9565, allocations: 204.2 kB / 0.8419 GB, free: 228.8 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005645/0.9622, allocations: 3.147 MB / 0.845 GB, free: 227.4 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.9622, allocations: 20.31 kB / 0.845 GB, free: 227.4 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/0.9622, allocations: 7.375 kB / 0.845 GB, free: 227.4 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/0.9622, allocations: 10.27 kB / 0.845 GB, free: 227.4 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008819/0.9711, allocations: 5.258 MB / 0.8501 GB, free: 224.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.9711, allocations: 6.281 kB / 0.8501 GB, free: 224.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.9724, allocations: 308.8 kB / 0.8504 GB, free: 224.9 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/0.9738, allocations: 486.5 kB / 0.8509 GB, free: 224.8 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/0.974, allocations: 67.55 kB / 0.851 GB, free: 224.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006476/0.9804, allocations: 5.948 MB / 0.8568 GB, free: 220.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.9805, allocations: 6.562 kB / 0.8568 GB, free: 220.4 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007116/0.9876, allocations: 3.68 MB / 0.8604 GB, free: 218.6 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.9889, allocations: 494.6 kB / 0.8609 GB, free: 218.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003325/0.9892, allocations: 54.86 kB / 0.8609 GB, free: 218.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/0.9905, allocations: 126.8 kB / 0.861 GB, free: 218.2 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004512/0.991, allocations: 172.3 kB / 0.8612 GB, free: 218.1 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001673/0.9912, allocations: 72.66 kB / 0.8613 GB, free: 218.1 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00163/0.9928, allocations: 1.015 MB / 0.8623 GB, free: 217.6 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9928, allocations: 0 / 0.8623 GB, free: 217.6 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002992/0.9958, allocations: 0.8966 MB / 0.8631 GB, free: 217.5 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.001375/0.9972, allocations: 0.9319 MB / 0.864 GB, free: 217.2 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00398/1.001, allocations: 2.415 MB / 0.8664 GB, free: 215.8 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/1.001, allocations: 0 / 0.8664 GB, free: 215.8 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002356/1.004, allocations: 1.538 MB / 0.8679 GB, free: 214.9 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/1.007, allocations: 0.6118 MB / 0.8685 GB, free: 214.6 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007168/1.014, allocations: 5.332 MB / 0.8737 GB, free: 211 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008802/1.015, allocations: 1.578 MB / 0.8752 GB, free: 209.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001624/1.016, allocations: 440.1 kB / 0.8757 GB, free: 209.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004758/1.017, allocations: 187.2 kB / 0.8758 GB, free: 209.7 MB / 0.6231 GB Notification: Performance of SimCode: time 9.42e-07/1.017, allocations: 0 / 0.8758 GB, free: 209.7 MB / 0.6231 GB Notification: Performance of Templates: time 0.056/1.073, allocations: 43.97 MB / 0.9188 GB, free: 166.4 MB / 0.6231 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.makefile (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 & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches