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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 215.2 kB / 22.24 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7802/0.7802, allocations: 94.62 MB / 407 MB, free: 8.93 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,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") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002625/0.002625, allocations: 94.53 kB / 0.5554 GB, free: 38.17 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1314, allocations: 73.04 MB / 0.6268 GB, free: 15.71 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5635/0.6949, allocations: 199 MB / 0.821 GB, free: 264 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03102/0.726, allocations: 22.89 MB / 0.8434 GB, free: 2.109 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002798/0.7288, allocations: 116.8 kB / 0.8435 GB, free: 2.109 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004372/0.7331, allocations: 1.436 MB / 0.8449 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007681/0.7408, allocations: 2.644 MB / 0.8475 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005488/0.7463, allocations: 1.932 MB / 0.8494 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005046/0.7513, allocations: 4.107 MB / 0.8534 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.7527, allocations: 0.6452 MB / 0.854 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003382/0.756, allocations: 1.731 MB / 0.8557 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00375/0.7598, allocations: 2.01 MB / 0.8577 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0006414/0.7604, allocations: 318.3 kB / 0.858 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00702/0.7674, allocations: 2.94 MB / 0.8609 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0008615/0.7683, allocations: 0.6652 MB / 0.8615 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002103/0.7704, allocations: 1.227 MB / 0.8627 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.008966/0.7794, allocations: 4.799 MB / 0.8674 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.7794, allocations: 4 kB / 0.8674 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.983e-06/0.7794, allocations: 0 / 0.8674 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.621e-05/0.7795, allocations: 0 / 0.8674 GB, free: 2.484 MB / 0.6075 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.007639/0.7871, allocations: 3.386 MB / 0.8707 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.7871, allocations: 8.031 kB / 0.8707 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000726/0.7879, allocations: 326 kB / 0.871 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003425/0.7913, allocations: 1.694 MB / 0.8727 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.7914, allocations: 147.8 kB / 0.8728 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003504/0.7918, allocations: 207.9 kB / 0.873 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004389/0.7962, allocations: 2.363 MB / 0.8753 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.339e-05/0.7962, allocations: 0 / 0.8753 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001871/0.7964, allocations: 79.98 kB / 0.8754 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.492e-05/0.7965, allocations: 74.64 kB / 0.8755 GB, free: 10.14 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004211/0.8007, allocations: 2.264 MB / 0.8777 GB, free: 7.863 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01127/0.812, allocations: 5.79 MB / 0.8833 GB, free: 2.016 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003369/0.8153, allocations: 1.765 MB / 0.8851 GB, free: 244 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.8172, allocations: 0.9583 MB / 0.886 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00656/0.8238, allocations: 2.991 MB / 0.8889 GB, free: 12.26 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002136/0.8259, allocations: 1.068 MB / 0.89 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 5.13e-06/0.826, allocations: 0 / 0.89 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01315/0.8391, allocations: 5.946 MB / 0.8958 GB, free: 5.168 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.8392, allocations: 106.9 kB / 0.8959 GB, free: 5.047 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.8412, allocations: 1.346 MB / 0.8972 GB, free: 3.695 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001709/0.8413, allocations: 57.7 kB / 0.8972 GB, free: 3.633 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008851/0.8422, allocations: 0.9506 MB / 0.8982 GB, free: 2.672 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006853/0.8429, allocations: 0.6893 MB / 0.8988 GB, free: 1.977 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005089/0.8434, allocations: 299.6 kB / 0.8991 GB, free: 1.68 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.8436, allocations: 309 kB / 0.8994 GB, free: 1.375 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.845, allocations: 0.7413 MB / 0.9001 GB, free: 0.6211 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.8467, allocations: 0.8951 MB / 0.901 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007427/0.8541, allocations: 2.577 MB / 0.9035 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.8541, allocations: 0 / 0.9035 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.00529/0.8594, allocations: 2.498 MB / 0.906 GB, free: 10.51 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.763e-05/0.8595, allocations: 67.39 kB / 0.906 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.8595, allocations: 4 kB / 0.906 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.861, allocations: 465.3 kB / 0.9065 GB, free: 9.969 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.8623, allocations: 327.5 kB / 0.9068 GB, free: 9.648 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008797/0.8711, allocations: 6.091 MB / 0.9127 GB, free: 3.359 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001289/0.8724, allocations: 71.92 kB / 0.9128 GB, free: 3.289 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001874/0.8726, allocations: 71.97 kB / 0.9129 GB, free: 3.219 MB / 0.6544 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.001024/0.8736, allocations: 473.5 kB / 0.9133 GB, free: 2.746 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005282/0.8741, allocations: 222.7 kB / 0.9135 GB, free: 2.527 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006396/0.8805, allocations: 3.106 MB / 0.9166 GB, free: 15.39 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.8806, allocations: 24 kB / 0.9166 GB, free: 15.36 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.8806, allocations: 8 kB / 0.9166 GB, free: 15.36 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.55e-05/0.8806, allocations: 11.95 kB / 0.9166 GB, free: 15.34 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009134/0.8897, allocations: 4.612 MB / 0.9211 GB, free: 10.66 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.8897, allocations: 4 kB / 0.9211 GB, free: 10.66 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.891, allocations: 315.8 kB / 0.9214 GB, free: 10.35 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001447/0.8925, allocations: 485.4 kB / 0.9219 GB, free: 9.871 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001806/0.8926, allocations: 71.95 kB / 0.922 GB, free: 9.801 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008671/0.9013, allocations: 6.08 MB / 0.9279 GB, free: 3.516 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.9013, allocations: 4 kB / 0.9279 GB, free: 3.512 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007357/0.9087, allocations: 3.67 MB / 0.9315 GB, free: 15.79 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.9097, allocations: 426.4 kB / 0.9319 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002831/0.91, allocations: 59.88 kB / 0.9319 GB, free: 15.32 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.911, allocations: 55.97 kB / 0.932 GB, free: 15.26 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003628/0.9114, allocations: 181.5 kB / 0.9322 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.9115, allocations: 79.89 kB / 0.9323 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001478/0.913, allocations: 0.9562 MB / 0.9332 GB, free: 14.06 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/0.913, allocations: 0 / 0.9332 GB, free: 14.06 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002569/0.9156, allocations: 0.8971 MB / 0.9341 GB, free: 13.16 MB / 0.6856 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.00162/0.9172, allocations: 0.9337 MB / 0.935 GB, free: 12.22 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004668/0.9219, allocations: 2.368 MB / 0.9373 GB, free: 9.785 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.9219, allocations: 3.938 kB / 0.9373 GB, free: 9.781 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002915/0.9248, allocations: 1.443 MB / 0.9387 GB, free: 8.316 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/0.9276, allocations: 0.6254 MB / 0.9393 GB, free: 7.711 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00825/0.9358, allocations: 4.401 MB / 0.9436 GB, free: 3.254 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001239/0.9371, allocations: 1.013 MB / 0.9446 GB, free: 2.199 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.00158/0.9386, allocations: 423.8 kB / 0.945 GB, free: 1.809 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005387/0.9392, allocations: 187.4 kB / 0.9452 GB, free: 1.625 MB / 0.6856 GB Notification: Performance of SimCode: time 8.41e-07/0.9392, allocations: 0 / 0.9452 GB, free: 1.625 MB / 0.6856 GB Notification: Performance of Templates: time 0.08251/1.022, allocations: 49.5 MB / 0.9935 GB, free: 0.7344 MB / 0.7325 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (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) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.090226709842682]