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.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.001383/0.001383, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.001523/0.001523, allocations: 163.1 kB / 22.46 MB, free: 5.375 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.428/1.428, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.9575/0.9575, allocations: 116 MB / 375.2 MB, free: 7.531 MB / 350.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_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_dev_ThermofluidStream.FlowControl.Tests.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 0.5537 GB, free: 13.79 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.332e-05/3.53e-05, allocations: 6.219 kB / 0.5538 GB, free: 13.79 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5572/0.5572, allocations: 206.2 MB / 0.7551 GB, free: 5.145 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02499/0.5822, allocations: 19.92 MB / 0.7746 GB, free: 15.65 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003701/0.5859, allocations: 135.2 kB / 0.7747 GB, free: 15.65 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.005441/0.5914, allocations: 1.505 MB / 0.7762 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.009233/0.6006, allocations: 2.933 MB / 0.779 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005849/0.6065, allocations: 2.048 MB / 0.781 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00638/0.6128, allocations: 4.681 MB / 0.7856 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001703/0.6145, allocations: 0.6826 MB / 0.7863 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005543/0.6201, allocations: 2.567 MB / 0.7888 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003913/0.624, allocations: 1.909 MB / 0.7906 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000796/0.6248, allocations: 323 kB / 0.7909 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00767/0.6325, allocations: 2.969 MB / 0.7938 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001162/0.6336, allocations: 0.6906 MB / 0.7945 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002828/0.6365, allocations: 1.112 MB / 0.7956 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.6479, allocations: 5.159 MB / 0.8006 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.6479, allocations: 4 kB / 0.8006 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.744e-06/0.6479, allocations: 0 / 0.8006 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001237/0.6481, allocations: 1.969 kB / 0.8006 GB, free: 15.65 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.008806/0.6569, allocations: 3.529 MB / 0.8041 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.6569, allocations: 12.03 kB / 0.8041 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.6579, allocations: 345.9 kB / 0.8044 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003949/0.6619, allocations: 1.863 MB / 0.8062 GB, free: 9.863 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.662, allocations: 151.9 kB / 0.8064 GB, free: 9.715 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004166/0.6624, allocations: 203.9 kB / 0.8066 GB, free: 9.516 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004334/0.6668, allocations: 2.426 MB / 0.809 GB, free: 7.051 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.111e-05/0.6668, allocations: 6.531 kB / 0.809 GB, free: 7.047 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/0.667, allocations: 79.98 kB / 0.809 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.15e-05/0.6671, allocations: 74.7 kB / 0.8091 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004132/0.6712, allocations: 2.282 MB / 0.8113 GB, free: 4.613 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.683, allocations: 6.418 MB / 0.8176 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003452/0.6865, allocations: 1.724 MB / 0.8193 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002137/0.6886, allocations: 0.9412 MB / 0.8202 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00733/0.696, allocations: 2.937 MB / 0.8231 GB, free: 8.562 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001951/0.6979, allocations: 1.044 MB / 0.8241 GB, free: 7.5 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 4.339e-06/0.6979, allocations: 2.062 kB / 0.8241 GB, free: 7.5 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01361/0.7115, allocations: 5.986 MB / 0.8299 GB, free: 1.484 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.444e-05/0.7116, allocations: 101.5 kB / 0.83 GB, free: 1.371 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/0.7138, allocations: 1.502 MB / 0.8315 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001576/0.714, allocations: 65.69 kB / 0.8316 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000991/0.715, allocations: 1.033 MB / 0.8326 GB, free: 14.71 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006606/0.7156, allocations: 0.6854 MB / 0.8332 GB, free: 14.02 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005313/0.7162, allocations: 307.5 kB / 0.8335 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.7163, allocations: 301.1 kB / 0.8338 GB, free: 13.42 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.7177, allocations: 0.7374 MB / 0.8345 GB, free: 12.67 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.7194, allocations: 0.9386 MB / 0.8355 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007529/0.7269, allocations: 2.596 MB / 0.838 GB, free: 9.012 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.7269, allocations: 0 / 0.838 GB, free: 9.012 MB / 0.6544 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005317/0.7322, allocations: 2.544 MB / 0.8405 GB, free: 6.473 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.983e-05/0.7323, allocations: 63.61 kB / 0.8405 GB, free: 6.398 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.7323, allocations: 8 kB / 0.8406 GB, free: 6.391 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/0.7338, allocations: 468 kB / 0.841 GB, free: 5.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/0.7352, allocations: 333.6 kB / 0.8413 GB, free: 5.621 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008532/0.7437, allocations: 6.101 MB / 0.8473 GB, free: 15.34 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.745, allocations: 59.97 kB / 0.8473 GB, free: 15.28 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/0.7452, allocations: 79.95 kB / 0.8474 GB, free: 15.2 MB / 0.67 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: 16 * 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 (180): * Single equations (assignments): 176 * 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.001011/0.7462, allocations: 0.4903 MB / 0.8479 GB, free: 14.72 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005368/0.7468, allocations: 242.5 kB / 0.8481 GB, free: 14.48 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006133/0.7529, allocations: 3.1 MB / 0.8511 GB, free: 11.38 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.7529, allocations: 20 kB / 0.8512 GB, free: 11.36 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/0.7529, allocations: 12 kB / 0.8512 GB, free: 11.35 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.24e-05/0.753, allocations: 11.95 kB / 0.8512 GB, free: 11.34 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008576/0.7615, allocations: 4.583 MB / 0.8557 GB, free: 6.727 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.064e-06/0.7615, allocations: 0 / 0.8557 GB, free: 6.727 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.7628, allocations: 317.6 kB / 0.856 GB, free: 6.434 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/0.7643, allocations: 489.8 kB / 0.8564 GB, free: 5.949 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001506/0.7645, allocations: 63.95 kB / 0.8565 GB, free: 5.887 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008314/0.7728, allocations: 6.085 MB / 0.8624 GB, free: 15.62 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.7728, allocations: 4.062 kB / 0.8624 GB, free: 15.61 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007217/0.78, allocations: 3.652 MB / 0.866 GB, free: 11.94 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009908/0.781, allocations: 434.2 kB / 0.8664 GB, free: 11.51 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002874/0.7813, allocations: 40 kB / 0.8665 GB, free: 11.47 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.7823, allocations: 64.08 kB / 0.8665 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003773/0.7827, allocations: 184.1 kB / 0.8667 GB, free: 11.23 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/0.7829, allocations: 83.89 kB / 0.8668 GB, free: 11.15 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001559/0.7844, allocations: 1.044 MB / 0.8678 GB, free: 10.09 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/0.7844, allocations: 0 / 0.8678 GB, free: 10.09 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002492/0.7869, allocations: 0.9479 MB / 0.8687 GB, free: 9.137 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.00169/0.7886, allocations: 0.9763 MB / 0.8697 GB, free: 8.168 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00463/0.7932, allocations: 2.377 MB / 0.872 GB, free: 5.75 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.7932, allocations: 0 / 0.872 GB, free: 5.75 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002864/0.7961, allocations: 1.446 MB / 0.8734 GB, free: 4.316 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004644/0.8007, allocations: 0.9303 MB / 0.8743 GB, free: 3.418 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009619/0.8104, allocations: 4.636 MB / 0.8788 GB, free: 14.73 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.8116, allocations: 1.06 MB / 0.8799 GB, free: 13.62 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001694/0.8132, allocations: 462.4 kB / 0.8803 GB, free: 13.2 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005701/0.8138, allocations: 200.4 kB / 0.8805 GB, free: 13 MB / 0.7012 GB Notification: Performance of SimCode: time 9.41e-07/0.8138, allocations: 0 / 0.8805 GB, free: 13 MB / 0.7012 GB Notification: Performance of Templates: time 0.09033/0.9042, allocations: 53.11 MB / 0.9324 GB, free: 8.785 MB / 0.7481 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (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) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.190714057534933]