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.01007/0.01007, allocations: 101.5 kB / 15.73 MB, free: 6.422 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.0021/0.0021, allocations: 191.3 kB / 16.67 MB, free: 6.352 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.587/1.587, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7473/0.7473, allocations: 91.18 MB / 381.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 75.88 kB / 0.5168 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1355, allocations: 67.7 MB / 0.583 GB, free: 5.223 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5374/0.6729, allocations: 225.1 MB / 0.8027 GB, free: 6.781 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02963/0.7026, allocations: 25 MB / 0.8271 GB, free: 13.71 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003018/0.7056, allocations: 79.5 kB / 0.8272 GB, free: 13.63 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004886/0.7105, allocations: 1.67 MB / 0.8289 GB, free: 11.95 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.00763/0.7182, allocations: 2.656 MB / 0.8314 GB, free: 9.281 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005312/0.7236, allocations: 1.92 MB / 0.8333 GB, free: 7.355 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.005775/0.7294, allocations: 4.022 MB / 0.8372 GB, free: 3.316 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002047/0.7314, allocations: 1.125 MB / 0.8383 GB, free: 2.16 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003005/0.7345, allocations: 1.658 MB / 0.84 GB, free: 0.4922 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3812/1.116, allocations: 2.096 MB / 0.842 GB, free: 8.188 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.001401/1.117, allocations: 317.4 kB / 0.8423 GB, free: 8.188 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009013/1.126, allocations: 3.367 MB / 0.8456 GB, free: 8.188 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001449/1.128, allocations: 0.6474 MB / 0.8462 GB, free: 8.188 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.003416/1.131, allocations: 1.511 MB / 0.8477 GB, free: 8.188 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.01263/1.144, allocations: 4.801 MB / 0.8524 GB, free: 7.988 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/1.144, allocations: 1.906 kB / 0.8524 GB, free: 7.988 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.933e-06/1.144, allocations: 0 / 0.8524 GB, free: 7.988 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001388/1.144, allocations: 0 / 0.8524 GB, free: 7.988 MB / 0.67 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.01004/1.154, allocations: 3.346 MB / 0.8557 GB, free: 6.492 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/1.154, allocations: 9.75 kB / 0.8557 GB, free: 6.492 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008877/1.155, allocations: 291.9 kB / 0.856 GB, free: 6.348 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003275/1.158, allocations: 1.75 MB / 0.8577 GB, free: 5.863 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/1.158, allocations: 148.6 kB / 0.8578 GB, free: 5.859 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003937/1.159, allocations: 203.8 kB / 0.858 GB, free: 5.855 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004678/1.163, allocations: 2.338 MB / 0.8603 GB, free: 5.727 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.301e-05/1.164, allocations: 1.938 kB / 0.8603 GB, free: 5.727 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001723/1.164, allocations: 78.33 kB / 0.8604 GB, free: 5.727 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.699e-05/1.164, allocations: 75.42 kB / 0.8604 GB, free: 5.723 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004136/1.168, allocations: 2.236 MB / 0.8626 GB, free: 5.707 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01571/1.184, allocations: 10.23 MB / 0.8726 GB, free: 16.35 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003894/1.188, allocations: 1.917 MB / 0.8745 GB, free: 16.27 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/1.19, allocations: 1.068 MB / 0.8755 GB, free: 16.24 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008692/1.198, allocations: 6.597 MB / 0.882 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001664/1.2, allocations: 1.066 MB / 0.883 GB, free: 11.62 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=193): time 4.118e-06/1.2, allocations: 3.438 kB / 0.883 GB, free: 11.62 MB / 0.6856 GB Notification: Performance of matching and sorting (n=198): time 0.01234/1.212, allocations: 6.517 MB / 0.8894 GB, free: 9.805 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.735e-05/1.213, allocations: 106.2 kB / 0.8895 GB, free: 9.711 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/1.214, allocations: 1.396 MB / 0.8908 GB, free: 9.547 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001818/1.215, allocations: 58.86 kB / 0.8909 GB, free: 9.516 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006651/1.215, allocations: 0.924 MB / 0.8918 GB, free: 9.199 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004731/1.216, allocations: 0.6578 MB / 0.8924 GB, free: 8.77 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004815/1.216, allocations: 300.1 kB / 0.8927 GB, free: 8.746 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001208/1.216, allocations: 301.1 kB / 0.893 GB, free: 8.449 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/1.218, allocations: 0.6872 MB / 0.8937 GB, free: 8.445 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/1.219, allocations: 0.8485 MB / 0.8945 GB, free: 8.355 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006881/1.226, allocations: 2.566 MB / 0.897 GB, free: 8.125 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/1.226, allocations: 0.7188 kB / 0.897 GB, free: 8.125 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005035/1.231, allocations: 2.446 MB / 0.8994 GB, free: 7.867 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 6.604e-05/1.231, allocations: 67.05 kB / 0.8995 GB, free: 7.805 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/1.231, allocations: 3.281 kB / 0.8995 GB, free: 7.805 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/1.233, allocations: 463.4 kB / 0.8999 GB, free: 7.789 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/1.234, allocations: 323.9 kB / 0.9002 GB, free: 7.785 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007661/1.242, allocations: 6.446 MB / 0.9065 GB, free: 4.859 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/1.244, allocations: 60.41 kB / 0.9066 GB, free: 4.859 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003775/1.244, allocations: 70.86 kB / 0.9066 GB, free: 4.859 MB / 0.6856 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.001314/1.245, allocations: 484.6 kB / 0.9071 GB, free: 4.738 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006359/1.246, allocations: 205 kB / 0.9073 GB, free: 4.633 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005471/1.251, allocations: 3.128 MB / 0.9104 GB, free: 4.332 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/1.251, allocations: 21.81 kB / 0.9104 GB, free: 4.332 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/1.251, allocations: 6.531 kB / 0.9104 GB, free: 4.332 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.12e-05/1.251, allocations: 13.27 kB / 0.9104 GB, free: 4.332 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008513/1.26, allocations: 5.236 MB / 0.9155 GB, free: 3.758 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/1.26, allocations: 4.594 kB / 0.9155 GB, free: 3.758 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/1.261, allocations: 304.8 kB / 0.9158 GB, free: 3.758 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001419/1.263, allocations: 499 kB / 0.9163 GB, free: 3.723 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/1.263, allocations: 70.2 kB / 0.9163 GB, free: 3.723 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00744/1.27, allocations: 6.452 MB / 0.9226 GB, free: 0.7812 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.27, allocations: 4.375 kB / 0.9227 GB, free: 0.7812 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006903/1.277, allocations: 3.692 MB / 0.9263 GB, free: 15.35 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001314/1.279, allocations: 0.4886 MB / 0.9267 GB, free: 15 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003386/1.279, allocations: 45.66 kB / 0.9268 GB, free: 14.96 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/1.28, allocations: 63.97 kB / 0.9268 GB, free: 14.94 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003775/1.28, allocations: 176.8 kB / 0.927 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/1.281, allocations: 74.38 kB / 0.9271 GB, free: 14.89 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001367/1.282, allocations: 1.001 MB / 0.9281 GB, free: 14.5 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.91e-07/1.282, allocations: 0 / 0.9281 GB, free: 14.5 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003031/1.285, allocations: 0.8945 MB / 0.9289 GB, free: 14.31 MB / 0.7012 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.001727/1.287, allocations: 0.9327 MB / 0.9298 GB, free: 14.04 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.004311/1.291, allocations: 2.41 MB / 0.9322 GB, free: 12.94 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/1.291, allocations: 2.312 kB / 0.9322 GB, free: 12.94 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002853/1.294, allocations: 1.542 MB / 0.9337 GB, free: 11.97 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00353/1.298, allocations: 0.661 MB / 0.9343 GB, free: 11.45 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007723/1.305, allocations: 4.268 MB / 0.9385 GB, free: 7.449 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/1.307, allocations: 1.575 MB / 0.9401 GB, free: 6.129 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001903/1.308, allocations: 433.7 kB / 0.9405 GB, free: 5.805 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005516/1.309, allocations: 187.2 kB / 0.9406 GB, free: 5.641 MB / 0.7012 GB Notification: Performance of SimCode: time 1.082e-06/1.309, allocations: 0 / 0.9406 GB, free: 5.641 MB / 0.7012 GB Notification: Performance of Templates: time 0.07808/1.387, allocations: 45.8 MB / 0.9854 GB, free: 8.531 MB / 0.7481 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