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.001254/0.001254, allocations: 75.75 kB / 19.76 MB, free: 1.871 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.001353/0.001353, allocations: 166.8 kB / 23.01 MB, free: 4.594 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.371/1.371, allocations: 177.2 MB / 203.4 MB, free: 8.977 MB / 190.1 MB " [Timeout remaining time 179] 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.7403/0.7403, allocations: 79.61 MB / 339.4 MB, free: 11.01 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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: 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.002513/0.002513, allocations: 87.78 kB / 0.4923 GB, free: 26.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1146, allocations: 74.58 MB / 0.5652 GB, free: 6.047 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4977/0.6123, allocations: 199 MB / 0.7595 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02542/0.6377, allocations: 22.89 MB / 0.7818 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00257/0.6403, allocations: 114.8 kB / 0.782 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003935/0.6442, allocations: 1.45 MB / 0.7834 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007145/0.6514, allocations: 2.643 MB / 0.7859 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005501/0.6569, allocations: 1.928 MB / 0.7878 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005502/0.6624, allocations: 4.097 MB / 0.7918 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001223/0.6636, allocations: 0.6457 MB / 0.7925 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00305/0.6667, allocations: 1.728 MB / 0.7941 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003417/0.6701, allocations: 2.003 MB / 0.7961 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0005348/0.6706, allocations: 313.7 kB / 0.7964 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006581/0.6772, allocations: 2.941 MB / 0.7993 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0007876/0.678, allocations: 0.6559 MB / 0.7999 GB, free: 404 kB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001951/0.6799, allocations: 1.227 MB / 0.8011 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.007806/0.6877, allocations: 4.812 MB / 0.8058 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.6877, allocations: 4.188 kB / 0.8058 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.322e-06/0.6877, allocations: 0 / 0.8058 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 5.739e-05/0.6878, allocations: 0 / 0.8058 GB, free: 12.51 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: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.007281/0.6951, allocations: 3.385 MB / 0.8091 GB, free: 9.164 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.6951, allocations: 13.47 kB / 0.8091 GB, free: 9.152 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006959/0.6958, allocations: 318.1 kB / 0.8094 GB, free: 8.84 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003142/0.699, allocations: 1.696 MB / 0.8111 GB, free: 7.148 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.6991, allocations: 151.8 kB / 0.8112 GB, free: 7 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003333/0.6994, allocations: 203.9 kB / 0.8114 GB, free: 6.801 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0042/0.7036, allocations: 2.359 MB / 0.8137 GB, free: 4.422 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.762e-05/0.7037, allocations: 0 / 0.8137 GB, free: 4.422 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.7039, allocations: 76 kB / 0.8138 GB, free: 4.348 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.793e-05/0.704, allocations: 70.69 kB / 0.8139 GB, free: 4.277 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00417/0.7081, allocations: 2.272 MB / 0.8161 GB, free: 2 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01125/0.7194, allocations: 5.794 MB / 0.8218 GB, free: 12.23 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003344/0.7227, allocations: 1.746 MB / 0.8235 GB, free: 10.47 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001907/0.7246, allocations: 0.9685 MB / 0.8244 GB, free: 9.5 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006054/0.7307, allocations: 2.987 MB / 0.8273 GB, free: 6.496 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002023/0.7327, allocations: 1.064 MB / 0.8284 GB, free: 5.418 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 6.452e-06/0.7327, allocations: 3.984 kB / 0.8284 GB, free: 5.414 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01722/0.7499, allocations: 5.951 MB / 0.8342 GB, free: 15.44 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.75, allocations: 110.3 kB / 0.8343 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003003/0.753, allocations: 1.35 MB / 0.8356 GB, free: 13.96 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.000297/0.7533, allocations: 61.64 kB / 0.8357 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.7545, allocations: 0.9545 MB / 0.8366 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001038/0.7556, allocations: 0.6816 MB / 0.8373 GB, free: 12.24 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009029/0.7565, allocations: 303.5 kB / 0.8375 GB, free: 11.94 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.7566, allocations: 309.1 kB / 0.8378 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002215/0.7588, allocations: 0.7374 MB / 0.8386 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00249/0.7613, allocations: 0.899 MB / 0.8394 GB, free: 9.945 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01093/0.7723, allocations: 2.578 MB / 0.842 GB, free: 7.32 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.7723, allocations: 0 / 0.842 GB, free: 7.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.007946/0.7802, allocations: 2.497 MB / 0.8444 GB, free: 4.816 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 8.415e-05/0.7803, allocations: 69.75 kB / 0.8445 GB, free: 4.738 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.7803, allocations: 4 kB / 0.8445 GB, free: 4.734 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002076/0.7824, allocations: 468.2 kB / 0.8449 GB, free: 4.273 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.7838, allocations: 325 kB / 0.8452 GB, free: 3.973 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008743/0.7926, allocations: 6.075 MB / 0.8512 GB, free: 13.71 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.794, allocations: 67.89 kB / 0.8512 GB, free: 13.65 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002613/0.7942, allocations: 75.45 kB / 0.8513 GB, free: 13.58 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: 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.00105/0.7953, allocations: 476.8 kB / 0.8517 GB, free: 13.12 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006457/0.7959, allocations: 214.7 kB / 0.852 GB, free: 12.91 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00643/0.8023, allocations: 3.126 MB / 0.855 GB, free: 9.773 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.8024, allocations: 20 kB / 0.855 GB, free: 9.754 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.86e-05/0.8024, allocations: 8.875 kB / 0.855 GB, free: 9.746 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.608e-05/0.8024, allocations: 7.969 kB / 0.855 GB, free: 9.738 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009476/0.8119, allocations: 4.599 MB / 0.8595 GB, free: 5.117 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.8119, allocations: 0 / 0.8595 GB, free: 5.117 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/0.8132, allocations: 318.9 kB / 0.8598 GB, free: 4.828 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.8147, allocations: 485.4 kB / 0.8603 GB, free: 4.348 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/0.8149, allocations: 67.95 kB / 0.8604 GB, free: 4.281 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008723/0.8236, allocations: 6.096 MB / 0.8663 GB, free: 14 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.8236, allocations: 4.062 kB / 0.8663 GB, free: 14 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007576/0.8312, allocations: 3.671 MB / 0.8699 GB, free: 10.31 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/0.8323, allocations: 422.4 kB / 0.8703 GB, free: 9.898 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003943/0.8327, allocations: 51.94 kB / 0.8704 GB, free: 9.848 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.8339, allocations: 55.95 kB / 0.8704 GB, free: 9.793 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004055/0.8343, allocations: 185.5 kB / 0.8706 GB, free: 9.613 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001943/0.8345, allocations: 75.95 kB / 0.8707 GB, free: 9.539 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00163/0.8361, allocations: 0.9592 MB / 0.8716 GB, free: 8.59 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/0.8361, allocations: 0 / 0.8716 GB, free: 8.59 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002892/0.839, allocations: 0.8971 MB / 0.8725 GB, free: 7.691 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.001754/0.8408, allocations: 0.9438 MB / 0.8734 GB, free: 6.758 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00491/0.8457, allocations: 2.373 MB / 0.8757 GB, free: 4.34 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.8457, allocations: 0 / 0.8757 GB, free: 4.34 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.00311/0.8488, allocations: 1.448 MB / 0.8771 GB, free: 2.906 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003132/0.8519, allocations: 0.6116 MB / 0.8777 GB, free: 2.316 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008548/0.8605, allocations: 4.393 MB / 0.882 GB, free: 13.87 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.8619, allocations: 1.009 MB / 0.883 GB, free: 12.82 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001685/0.8635, allocations: 425.5 kB / 0.8834 GB, free: 12.42 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006024/0.8641, allocations: 192.4 kB / 0.8836 GB, free: 12.23 MB / 0.7012 GB Notification: Performance of SimCode: time 1.032e-06/0.8641, allocations: 0 / 0.8836 GB, free: 12.23 MB / 0.7012 GB Notification: Performance of Templates: time 0.07912/0.9433, allocations: 45.9 MB / 0.9284 GB, free: 15 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 -s ida -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/jenkins1/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: 7.540388089953922]