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.0008786/0.0008786, allocations: 80.88 kB / 19.94 MB, free: 4.551 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.0009091/0.0009091, allocations: 177 kB / 23.36 MB, free: 1.137 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.8767/0.8767, allocations: 177.2 MB / 203.8 MB, free: 5.477 MB / 186.7 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.6315/0.6315, allocations: 118.6 MB / 378.9 MB, free: 1.359 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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.573e-06/1.573e-06, allocations: 0 / 430.8 MB, free: 13.35 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.096e-05, allocations: 2.312 kB / 430.8 MB, free: 13.35 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.2617/0.2617, allocations: 140.7 MB / 0.5581 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.007583/0.2693, allocations: 5.709 MB / 0.5636 GB, free: 8.801 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.2703, allocations: 138.7 kB / 0.5638 GB, free: 8.664 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0008621/0.2712, allocations: 0.5345 MB / 0.5643 GB, free: 8.125 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002323/0.2735, allocations: 1.881 MB / 0.5661 GB, free: 6.23 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.2754, allocations: 1.29 MB / 0.5674 GB, free: 4.938 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.003109/0.2785, allocations: 4.697 MB / 0.572 GB, free: 232 kB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007194/0.2792, allocations: 0.7351 MB / 0.5727 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002149/0.2814, allocations: 2.513 MB / 0.5752 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001675/0.283, allocations: 1.968 MB / 0.5771 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0002721/0.2833, allocations: 316 kB / 0.5774 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009716/0.2843, allocations: 0.8546 MB / 0.5782 GB, free: 9.762 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0003838/0.2847, allocations: 0.7004 MB / 0.5789 GB, free: 9.059 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0008013/0.2855, allocations: 1.122 MB / 0.58 GB, free: 7.934 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.002504/0.288, allocations: 3.122 MB / 0.583 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.288, allocations: 0 / 0.583 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.052e-06/0.288, allocations: 4 kB / 0.583 GB, free: 4.797 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.035e-05/0.288, allocations: 4 kB / 0.583 GB, free: 4.793 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.003317/0.2913, allocations: 3.407 MB / 0.5864 GB, free: 1.328 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 2.79e-05/0.2913, allocations: 8.031 kB / 0.5864 GB, free: 1.32 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004559/0.2918, allocations: 420.2 kB / 0.5868 GB, free: 0.9102 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001808/0.2936, allocations: 1.569 MB / 0.5883 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.412e-05/0.2937, allocations: 151.1 kB / 0.5885 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000422/0.2941, allocations: 207.9 kB / 0.5887 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.2955, allocations: 1.445 MB / 0.5901 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/0.2955, allocations: 0 / 0.5901 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.2956, allocations: 79.98 kB / 0.5901 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.997e-05/0.2957, allocations: 78.69 kB / 0.5902 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009275/0.2966, allocations: 0.6817 MB / 0.5909 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00491/0.3015, allocations: 4.645 MB / 0.5954 GB, free: 7.832 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.3029, allocations: 1.109 MB / 0.5965 GB, free: 6.699 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005318/0.3034, allocations: 482.8 kB / 0.597 GB, free: 6.227 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002474/0.3059, allocations: 1.864 MB / 0.5988 GB, free: 4.348 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006127/0.3065, allocations: 0.6371 MB / 0.5994 GB, free: 3.691 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=187): time 3.065e-06/0.3065, allocations: 0 / 0.5994 GB, free: 3.691 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192): time 0.003954/0.3104, allocations: 2.917 MB / 0.6023 GB, free: 0.7227 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.3105, allocations: 98.92 kB / 0.6023 GB, free: 0.6094 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.3116, allocations: 1.351 MB / 0.6037 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.721e-05/0.3117, allocations: 57.7 kB / 0.6037 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003458/0.312, allocations: 0.7487 MB / 0.6045 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003192/0.3124, allocations: 0.666 MB / 0.6051 GB, free: 13.72 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002902/0.3126, allocations: 291.4 kB / 0.6054 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 5.665e-05/0.3127, allocations: 301.1 kB / 0.6057 GB, free: 13.13 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.313, allocations: 255.3 kB / 0.6059 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.3134, allocations: 466.6 kB / 0.6064 GB, free: 12.35 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009019/0.3143, allocations: 0.9525 MB / 0.6073 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3143, allocations: 4 kB / 0.6073 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001464/0.3158, allocations: 1.262 MB / 0.6085 GB, free: 10.02 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.3158, allocations: 67.33 kB / 0.6086 GB, free: 9.945 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.3158, allocations: 4 kB / 0.6086 GB, free: 9.941 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008209/0.3166, allocations: 388.6 kB / 0.609 GB, free: 9.555 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006417/0.3173, allocations: 307.5 kB / 0.6093 GB, free: 9.254 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004367/0.3216, allocations: 4.174 MB / 0.6133 GB, free: 4.906 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/0.3223, allocations: 51.98 kB / 0.6134 GB, free: 4.855 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.3224, allocations: 51.97 kB / 0.6134 GB, free: 4.805 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.0004371/0.3228, allocations: 207.7 kB / 0.6136 GB, free: 4.594 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003799/0.3232, allocations: 235.4 kB / 0.6139 GB, free: 4.363 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002666/0.3259, allocations: 1.876 MB / 0.6157 GB, free: 2.453 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.3259, allocations: 23.94 kB / 0.6157 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.3259, allocations: 8 kB / 0.6157 GB, free: 2.422 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/0.3259, allocations: 11.95 kB / 0.6157 GB, free: 2.41 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004196/0.3301, allocations: 2.553 MB / 0.6182 GB, free: 15.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.3301, allocations: 7.984 kB / 0.6182 GB, free: 15.79 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000797/0.3309, allocations: 271.6 kB / 0.6185 GB, free: 15.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.332, allocations: 425.5 kB / 0.6189 GB, free: 15.1 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.3321, allocations: 55.95 kB / 0.6189 GB, free: 15.05 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004003/0.3361, allocations: 4.181 MB / 0.623 GB, free: 10.69 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3361, allocations: 3.969 kB / 0.623 GB, free: 10.68 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002793/0.3389, allocations: 1.774 MB / 0.6248 GB, free: 8.867 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005366/0.3394, allocations: 278.2 kB / 0.625 GB, free: 8.594 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002201/0.3396, allocations: 55.3 kB / 0.6251 GB, free: 8.543 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006516/0.3403, allocations: 47.98 kB / 0.6251 GB, free: 8.496 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002524/0.3405, allocations: 169.3 kB / 0.6253 GB, free: 8.332 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.709e-05/0.3406, allocations: 51.95 kB / 0.6253 GB, free: 8.281 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0007244/0.3414, allocations: 0.7375 MB / 0.6261 GB, free: 7.52 MB / 0.573 GB Notification: Performance of sort global known variables: time 8e-08/0.3414, allocations: 0 / 0.6261 GB, free: 7.52 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001501/0.3429, allocations: 0.7843 MB / 0.6268 GB, free: 6.734 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.0009135/0.3438, allocations: 391.2 kB / 0.6272 GB, free: 6.34 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001871/0.3456, allocations: 1.492 MB / 0.6287 GB, free: 4.773 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.895e-05/0.3457, allocations: 24 kB / 0.6287 GB, free: 4.75 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.3469, allocations: 1.016 MB / 0.6297 GB, free: 3.707 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002878/0.3498, allocations: 0.9569 MB / 0.6306 GB, free: 2.805 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005912/0.3557, allocations: 4.114 MB / 0.6346 GB, free: 14.61 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.3561, allocations: 451.7 kB / 0.6351 GB, free: 14.14 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001042/0.3572, allocations: 392.5 kB / 0.6354 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001492/0.3587, allocations: 0.6786 MB / 0.6361 GB, free: 13.07 MB / 0.5886 GB Notification: Performance of SimCode: time 8.22e-07/0.3587, allocations: 0 / 0.6361 GB, free: 13.07 MB / 0.5886 GB Notification: Performance of Templates: time 0.2286/0.5873, allocations: 48.48 MB / 0.6834 GB, free: 103.2 MB / 0.6042 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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.582881987094879]