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.001792/0.001792, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.001576/0.001576, allocations: 154.8 kB / 23.01 MB, free: 4.949 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.442/1.442, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.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.7498/0.7498, allocations: 74.92 MB / 334.7 MB, free: 15.52 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.002728/0.002728, allocations: 90.42 kB / 496.4 MB, free: 29.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1212, allocations: 73.03 MB / 0.5561 GB, free: 15.59 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5429/0.6641, allocations: 199 MB / 0.7504 GB, free: 2.789 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02382/0.6879, allocations: 22.88 MB / 0.7727 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003082/0.691, allocations: 114.8 kB / 0.7728 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004212/0.6952, allocations: 1.443 MB / 0.7742 GB, free: 0.8555 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007742/0.703, allocations: 2.653 MB / 0.7768 GB, free: 440 kB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005562/0.7085, allocations: 1.933 MB / 0.7787 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005815/0.7143, allocations: 4.104 MB / 0.7827 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001403/0.7157, allocations: 0.6413 MB / 0.7833 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003344/0.7191, allocations: 1.737 MB / 0.785 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003556/0.7226, allocations: 2.01 MB / 0.787 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0005225/0.7232, allocations: 313.7 kB / 0.7873 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007623/0.7308, allocations: 2.939 MB / 0.7902 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0009156/0.7317, allocations: 0.6574 MB / 0.7908 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002188/0.7339, allocations: 1.225 MB / 0.792 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00916/0.743, allocations: 4.811 MB / 0.7967 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.743, allocations: 0 / 0.7967 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.273e-06/0.7431, allocations: 0 / 0.7967 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.754e-05/0.7431, allocations: 0 / 0.7967 GB, free: 6.891 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.007784/0.7509, allocations: 3.391 MB / 0.8 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.7509, allocations: 9.594 kB / 0.8 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006969/0.7516, allocations: 316.1 kB / 0.8003 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003416/0.7551, allocations: 1.706 MB / 0.802 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.7552, allocations: 154.3 kB / 0.8021 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003064/0.7555, allocations: 196 kB / 0.8023 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004188/0.7597, allocations: 2.359 MB / 0.8046 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.276e-05/0.7597, allocations: 0 / 0.8046 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001842/0.7599, allocations: 84 kB / 0.8047 GB, free: 1.309 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.846e-05/0.76, allocations: 74.69 kB / 0.8048 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00443/0.7644, allocations: 2.26 MB / 0.807 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01208/0.7765, allocations: 5.782 MB / 0.8126 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003486/0.78, allocations: 1.77 MB / 0.8144 GB, free: 7.441 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001954/0.7819, allocations: 0.9614 MB / 0.8153 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006621/0.7886, allocations: 2.985 MB / 0.8182 GB, free: 3.477 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00209/0.7907, allocations: 1.062 MB / 0.8192 GB, free: 2.395 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 4.689e-06/0.7907, allocations: 0 / 0.8192 GB, free: 2.395 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.01367/0.8043, allocations: 5.951 MB / 0.8251 GB, free: 12.41 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.546e-05/0.8044, allocations: 114.8 kB / 0.8252 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/0.8064, allocations: 1.346 MB / 0.8265 GB, free: 10.93 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001703/0.8066, allocations: 61.7 kB / 0.8265 GB, free: 10.87 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009167/0.8075, allocations: 0.9545 MB / 0.8275 GB, free: 9.902 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006527/0.8082, allocations: 0.6816 MB / 0.8281 GB, free: 9.215 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005417/0.8087, allocations: 299.5 kB / 0.8284 GB, free: 8.918 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.8089, allocations: 309.1 kB / 0.8287 GB, free: 8.613 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/0.8104, allocations: 0.7374 MB / 0.8294 GB, free: 7.863 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00167/0.812, allocations: 0.9029 MB / 0.8303 GB, free: 6.922 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007647/0.8197, allocations: 2.569 MB / 0.8328 GB, free: 4.312 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.8197, allocations: 4 kB / 0.8328 GB, free: 4.309 MB / 0.6387 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005434/0.8251, allocations: 2.5 MB / 0.8353 GB, free: 1.805 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 8.177e-05/0.8252, allocations: 67.39 kB / 0.8353 GB, free: 1.727 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.8252, allocations: 0 / 0.8353 GB, free: 1.727 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.8267, allocations: 469.3 kB / 0.8358 GB, free: 1.262 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.8281, allocations: 314.2 kB / 0.8361 GB, free: 0.9727 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008928/0.837, allocations: 6.095 MB / 0.842 GB, free: 10.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.8385, allocations: 71.91 kB / 0.8421 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002046/0.8387, allocations: 72.06 kB / 0.8422 GB, free: 10.56 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.001032/0.8397, allocations: 484.2 kB / 0.8426 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005764/0.8403, allocations: 214.7 kB / 0.8428 GB, free: 9.887 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006479/0.8468, allocations: 3.111 MB / 0.8459 GB, free: 6.773 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/0.8468, allocations: 20 kB / 0.8459 GB, free: 6.754 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.8468, allocations: 8 kB / 0.8459 GB, free: 6.746 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-05/0.8468, allocations: 15.95 kB / 0.8459 GB, free: 6.73 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009287/0.8561, allocations: 4.604 MB / 0.8504 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.8561, allocations: 8 kB / 0.8504 GB, free: 2.09 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.8574, allocations: 307.2 kB / 0.8507 GB, free: 1.805 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.859, allocations: 492.1 kB / 0.8512 GB, free: 1.32 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001904/0.8592, allocations: 67.95 kB / 0.8513 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008921/0.8681, allocations: 6.092 MB / 0.8572 GB, free: 10.98 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.8681, allocations: 4.031 kB / 0.8572 GB, free: 10.97 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007476/0.8756, allocations: 3.665 MB / 0.8608 GB, free: 7.285 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.8768, allocations: 418.4 kB / 0.8612 GB, free: 6.875 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.8771, allocations: 51.92 kB / 0.8612 GB, free: 6.824 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.8781, allocations: 63.95 kB / 0.8613 GB, free: 6.762 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000394/0.8785, allocations: 184.1 kB / 0.8615 GB, free: 6.582 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/0.8786, allocations: 75.95 kB / 0.8615 GB, free: 6.508 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001512/0.8802, allocations: 0.9484 MB / 0.8625 GB, free: 5.566 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8802, allocations: 4 kB / 0.8625 GB, free: 5.562 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002888/0.883, allocations: 0.8996 MB / 0.8634 GB, free: 4.664 MB / 0.67 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.001632/0.8847, allocations: 0.9493 MB / 0.8643 GB, free: 3.727 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004707/0.8894, allocations: 2.378 MB / 0.8666 GB, free: 1.309 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.8894, allocations: 4.125 kB / 0.8666 GB, free: 1.305 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002862/0.8922, allocations: 1.447 MB / 0.868 GB, free: 15.87 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.895, allocations: 0.6107 MB / 0.8686 GB, free: 15.28 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008087/0.9031, allocations: 4.378 MB / 0.8729 GB, free: 10.85 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/0.9043, allocations: 1.017 MB / 0.8739 GB, free: 9.797 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001519/0.9059, allocations: 428.3 kB / 0.8743 GB, free: 9.398 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005303/0.9064, allocations: 188.4 kB / 0.8745 GB, free: 9.215 MB / 0.6856 GB Notification: Performance of SimCode: time 1.352e-06/0.9064, allocations: 0 / 0.8745 GB, free: 9.215 MB / 0.6856 GB Notification: Performance of Templates: time 0.07959/0.986, allocations: 45.88 MB / 0.9193 GB, free: 11.96 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 -s ida -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/jenkins1/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: 7.834355268976651]