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.00142/0.00142, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.001637/0.001637, allocations: 177.4 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9088/0.9088, allocations: 177.1 MB / 203.8 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6375/0.6375, allocations: 118.7 MB / 378.9 MB, free: 1.383 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 430.8 MB, free: 13.39 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.386e-06/9.888e-06, allocations: 2.312 kB / 430.8 MB, free: 13.39 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.2411/0.2411, allocations: 140.7 MB / 0.5581 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.005321/0.2464, allocations: 5.716 MB / 0.5636 GB, free: 8.988 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006143/0.247, allocations: 138.7 kB / 0.5638 GB, free: 8.852 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0007625/0.2478, allocations: 0.5267 MB / 0.5643 GB, free: 8.32 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002154/0.25, allocations: 1.877 MB / 0.5661 GB, free: 6.43 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.2514, allocations: 1.298 MB / 0.5674 GB, free: 5.129 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.002896/0.2543, allocations: 4.694 MB / 0.572 GB, free: 428 kB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006992/0.255, allocations: 0.7351 MB / 0.5727 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.2568, allocations: 2.521 MB / 0.5752 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001616/0.2584, allocations: 1.96 MB / 0.5771 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0002692/0.2587, allocations: 312 kB / 0.5774 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008758/0.2596, allocations: 0.8585 MB / 0.5782 GB, free: 9.953 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0006049/0.2602, allocations: 0.7043 MB / 0.5789 GB, free: 9.246 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0007763/0.2609, allocations: 1.122 MB / 0.58 GB, free: 8.121 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.002141/0.2631, allocations: 3.122 MB / 0.583 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2631, allocations: 0 / 0.583 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of FrontEnd: time 7.51e-07/0.2631, allocations: 0 / 0.583 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.877e-05/0.2631, allocations: 0 / 0.583 GB, free: 4.988 MB / 0.5261 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.003449/0.2666, allocations: 3.414 MB / 0.5864 GB, free: 1.516 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 2.638e-05/0.2666, allocations: 8.031 kB / 0.5864 GB, free: 1.508 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004347/0.267, allocations: 416.2 kB / 0.5868 GB, free: 1.102 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.2688, allocations: 1.573 MB / 0.5883 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.082e-05/0.2689, allocations: 147.1 kB / 0.5885 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/0.269, allocations: 211.9 kB / 0.5887 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.2706, allocations: 1.445 MB / 0.5901 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/0.2706, allocations: 4 kB / 0.5901 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.2707, allocations: 83.98 kB / 0.5902 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.807e-05/0.2708, allocations: 74.7 kB / 0.5902 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009208/0.2717, allocations: 0.6777 MB / 0.5909 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005028/0.2768, allocations: 4.645 MB / 0.5954 GB, free: 8.023 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.2778, allocations: 1.103 MB / 0.5965 GB, free: 6.895 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.2783, allocations: 486.8 kB / 0.597 GB, free: 6.418 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002449/0.2808, allocations: 1.861 MB / 0.5988 GB, free: 4.543 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006053/0.2814, allocations: 0.6449 MB / 0.5994 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=187): time 2.825e-06/0.2814, allocations: 0 / 0.5994 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192): time 0.004085/0.2855, allocations: 2.914 MB / 0.6023 GB, free: 0.9141 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.2855, allocations: 98.92 kB / 0.6024 GB, free: 0.8008 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008664/0.2864, allocations: 1.351 MB / 0.6037 GB, free: 15.41 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.767e-05/0.2865, allocations: 61.7 kB / 0.6037 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000336/0.2868, allocations: 0.7448 MB / 0.6045 GB, free: 14.58 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003203/0.2871, allocations: 0.6699 MB / 0.6051 GB, free: 13.91 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002842/0.2874, allocations: 291.4 kB / 0.6054 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 5.44e-05/0.2875, allocations: 301.1 kB / 0.6057 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003023/0.2878, allocations: 251.3 kB / 0.6059 GB, free: 13.06 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.2881, allocations: 462.6 kB / 0.6064 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.2892, allocations: 0.9526 MB / 0.6073 GB, free: 11.53 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2893, allocations: 4 kB / 0.6073 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001431/0.2907, allocations: 1.262 MB / 0.6085 GB, free: 10.22 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.2907, allocations: 67.33 kB / 0.6086 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2907, allocations: 4 kB / 0.6086 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008/0.2915, allocations: 400 kB / 0.609 GB, free: 9.738 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006236/0.2921, allocations: 303.5 kB / 0.6093 GB, free: 9.441 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003066/0.2952, allocations: 4.163 MB / 0.6133 GB, free: 5.102 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.2957, allocations: 55.97 kB / 0.6134 GB, free: 5.047 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002948/0.296, allocations: 55.97 kB / 0.6134 GB, free: 4.992 MB / 0.5573 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 (pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition2,$PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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 {(4,28,93.8%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003651/0.2963, allocations: 212.5 kB / 0.6136 GB, free: 4.777 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002778/0.2966, allocations: 235.4 kB / 0.6139 GB, free: 4.547 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.2986, allocations: 1.874 MB / 0.6157 GB, free: 2.637 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.2986, allocations: 27.94 kB / 0.6157 GB, free: 2.609 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.2986, allocations: 8 kB / 0.6157 GB, free: 2.602 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.2986, allocations: 7.969 kB / 0.6157 GB, free: 2.594 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002963/0.3016, allocations: 2.545 MB / 0.6182 GB, free: 15.98 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.3016, allocations: 4 kB / 0.6182 GB, free: 15.98 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005779/0.3022, allocations: 279.5 kB / 0.6185 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007965/0.303, allocations: 424.2 kB / 0.6189 GB, free: 15.29 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.444e-05/0.303, allocations: 55.95 kB / 0.6189 GB, free: 15.23 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00326/0.3063, allocations: 4.182 MB / 0.623 GB, free: 10.88 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3063, allocations: 3.938 kB / 0.623 GB, free: 10.87 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.3083, allocations: 1.778 MB / 0.6248 GB, free: 9.051 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004146/0.3087, allocations: 278.3 kB / 0.625 GB, free: 8.777 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.3089, allocations: 48.45 kB / 0.6251 GB, free: 8.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004748/0.3093, allocations: 51.97 kB / 0.6251 GB, free: 8.68 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.3095, allocations: 165.4 kB / 0.6253 GB, free: 8.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-05/0.3096, allocations: 51.95 kB / 0.6253 GB, free: 8.469 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0005221/0.3101, allocations: 0.7414 MB / 0.6261 GB, free: 7.703 MB / 0.573 GB Notification: Performance of sort global known variables: time 3e-08/0.3101, allocations: 0 / 0.6261 GB, free: 7.703 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001016/0.3111, allocations: 0.7843 MB / 0.6268 GB, free: 6.918 MB / 0.573 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 (164): * Single equations (assignments): 158 * 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.0004563/0.3116, allocations: 390.6 kB / 0.6272 GB, free: 6.527 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001619/0.3132, allocations: 1.491 MB / 0.6287 GB, free: 4.961 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/0.3132, allocations: 16 kB / 0.6287 GB, free: 4.945 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009472/0.3142, allocations: 1.025 MB / 0.6297 GB, free: 3.895 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/0.3161, allocations: 0.9466 MB / 0.6306 GB, free: 3.004 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004591/0.3207, allocations: 4.127 MB / 0.6346 GB, free: 14.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.321, allocations: 455.7 kB / 0.6351 GB, free: 14.32 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0007466/0.3217, allocations: 389.3 kB / 0.6354 GB, free: 13.95 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.3229, allocations: 0.6747 MB / 0.6361 GB, free: 13.26 MB / 0.5886 GB Notification: Performance of SimCode: time 6.01e-07/0.3229, allocations: 0 / 0.6361 GB, free: 13.26 MB / 0.5886 GB Notification: Performance of Templates: time 0.2079/0.5308, allocations: 48.47 MB / 0.6834 GB, free: 103.4 MB / 0.6042 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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.438807214144617]