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.001027/0.001027, 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.001015/0.001015, allocations: 177 kB / 23.36 MB, free: 1.129 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.9781/0.9781, allocations: 177.2 MB / 203.8 MB, free: 5.469 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.7201/0.7201, allocations: 118.6 MB / 378.9 MB, free: 1.348 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.112e-06/1.112e-06, allocations: 0 / 430.9 MB, free: 13.3 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.543e-05/1.654e-05, allocations: 5.547 kB / 430.9 MB, free: 13.3 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3369/0.3369, allocations: 140.7 MB / 0.5582 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.00951/0.3464, allocations: 5.713 MB / 0.5637 GB, free: 8.836 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.3478, allocations: 138.8 kB / 0.5639 GB, free: 8.699 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0009572/0.3488, allocations: 0.5345 MB / 0.5644 GB, free: 8.16 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002701/0.3515, allocations: 1.873 MB / 0.5662 GB, free: 6.273 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.002067/0.3536, allocations: 1.216 MB / 0.5674 GB, free: 5.055 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.003575/0.3571, allocations: 4.689 MB / 0.572 GB, free: 360 kB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007657/0.3579, allocations: 0.739 MB / 0.5727 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.3604, allocations: 2.517 MB / 0.5752 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.362, allocations: 1.964 MB / 0.5771 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.000261/0.3623, allocations: 312 kB / 0.5774 GB, free: 10.74 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.3634, allocations: 0.9406 MB / 0.5783 GB, free: 9.801 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0003629/0.3638, allocations: 0.6965 MB / 0.579 GB, free: 9.102 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0007517/0.3645, allocations: 1.13 MB / 0.5801 GB, free: 7.969 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.002486/0.367, allocations: 3.126 MB / 0.5831 GB, free: 4.832 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.367, allocations: 0 / 0.5831 GB, free: 4.832 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.042e-06/0.367, allocations: 0 / 0.5831 GB, free: 4.832 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.331e-05/0.367, allocations: 0 / 0.5831 GB, free: 4.832 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.003257/0.3703, allocations: 3.414 MB / 0.5865 GB, free: 1.359 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.3703, allocations: 8.031 kB / 0.5865 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004642/0.3708, allocations: 420.2 kB / 0.5869 GB, free: 0.9414 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001741/0.3725, allocations: 1.56 MB / 0.5884 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.042e-05/0.3726, allocations: 152.5 kB / 0.5885 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001905/0.3728, allocations: 207.9 kB / 0.5887 GB, free: 14.94 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.3745, allocations: 1.449 MB / 0.5902 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.3746, allocations: 4 kB / 0.5902 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.3747, allocations: 84 kB / 0.5902 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.116e-05/0.3747, allocations: 78.69 kB / 0.5903 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009431/0.3757, allocations: 0.6816 MB / 0.591 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004821/0.3805, allocations: 4.638 MB / 0.5955 GB, free: 7.871 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.3818, allocations: 1.103 MB / 0.5966 GB, free: 6.746 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005252/0.3823, allocations: 483.4 kB / 0.5971 GB, free: 6.273 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002344/0.3847, allocations: 1.867 MB / 0.5989 GB, free: 4.395 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006106/0.3853, allocations: 0.6414 MB / 0.5995 GB, free: 3.73 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=187): time 2.845e-06/0.3853, allocations: 0 / 0.5995 GB, free: 3.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192): time 0.003846/0.3891, allocations: 2.921 MB / 0.6024 GB, free: 0.7578 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.3892, allocations: 102.9 kB / 0.6025 GB, free: 0.6406 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.3903, allocations: 1.343 MB / 0.6038 GB, free: 15.26 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.519e-05/0.3904, allocations: 61.7 kB / 0.6038 GB, free: 15.19 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000354/0.3907, allocations: 0.7409 MB / 0.6045 GB, free: 14.43 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/0.391, allocations: 0.6699 MB / 0.6052 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002801/0.3913, allocations: 295.4 kB / 0.6055 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 6.08e-05/0.3914, allocations: 301.1 kB / 0.6058 GB, free: 13.17 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.3917, allocations: 247.3 kB / 0.606 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003834/0.3921, allocations: 462.6 kB / 0.6064 GB, free: 12.4 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008989/0.393, allocations: 0.9565 MB / 0.6074 GB, free: 11.38 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.393, allocations: 0 / 0.6074 GB, free: 11.38 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001421/0.3944, allocations: 1.262 MB / 0.6086 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.3944, allocations: 67.33 kB / 0.6087 GB, free: 9.992 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3944, allocations: 4 kB / 0.6087 GB, free: 9.988 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008109/0.3952, allocations: 403 kB / 0.6091 GB, free: 9.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006692/0.3959, allocations: 327.5 kB / 0.6094 GB, free: 9.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/0.3991, allocations: 4.199 MB / 0.6135 GB, free: 4.898 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.3995, allocations: 59.97 kB / 0.6135 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.027e-05/0.3996, allocations: 55.97 kB / 0.6136 GB, free: 4.785 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.0003497/0.4, allocations: 200.4 kB / 0.6138 GB, free: 4.578 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002684/0.4002, allocations: 235.4 kB / 0.614 GB, free: 4.348 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001949/0.4022, allocations: 1.885 MB / 0.6158 GB, free: 2.426 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.4022, allocations: 20 kB / 0.6159 GB, free: 2.406 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4022, allocations: 4 kB / 0.6159 GB, free: 2.402 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.4022, allocations: 15.95 kB / 0.6159 GB, free: 2.387 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003007/0.4052, allocations: 2.549 MB / 0.6184 GB, free: 15.78 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.4052, allocations: 8.031 kB / 0.6184 GB, free: 15.77 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006017/0.4058, allocations: 303.5 kB / 0.6187 GB, free: 15.47 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007632/0.4066, allocations: 423.5 kB / 0.6191 GB, free: 15.05 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.294e-05/0.4067, allocations: 63.89 kB / 0.6191 GB, free: 14.99 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003051/0.4097, allocations: 4.201 MB / 0.6232 GB, free: 10.61 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4097, allocations: 0 / 0.6232 GB, free: 10.61 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.4117, allocations: 1.778 MB / 0.625 GB, free: 8.793 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.4121, allocations: 274.3 kB / 0.6252 GB, free: 8.523 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.4122, allocations: 51.94 kB / 0.6253 GB, free: 8.473 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.4127, allocations: 47.97 kB / 0.6253 GB, free: 8.426 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001945/0.4129, allocations: 165.4 kB / 0.6255 GB, free: 8.266 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.951e-05/0.4129, allocations: 55.95 kB / 0.6255 GB, free: 8.211 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0005055/0.4134, allocations: 0.7414 MB / 0.6263 GB, free: 7.445 MB / 0.573 GB Notification: Performance of sort global known variables: time 6e-08/0.4134, allocations: 0 / 0.6263 GB, free: 7.445 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001049/0.4145, allocations: 0.7765 MB / 0.627 GB, free: 6.668 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.0004621/0.4149, allocations: 394.3 kB / 0.6274 GB, free: 6.273 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001394/0.4163, allocations: 1.499 MB / 0.6289 GB, free: 4.699 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/0.4164, allocations: 20 kB / 0.6289 GB, free: 4.68 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009325/0.4173, allocations: 1.029 MB / 0.6299 GB, free: 3.625 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.4192, allocations: 0.9572 MB / 0.6308 GB, free: 2.723 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004667/0.4239, allocations: 4.096 MB / 0.6348 GB, free: 14.54 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.4242, allocations: 455.7 kB / 0.6353 GB, free: 14.07 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0007968/0.425, allocations: 392.4 kB / 0.6356 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001154/0.4261, allocations: 0.6708 MB / 0.6363 GB, free: 13.01 MB / 0.5886 GB Notification: Performance of SimCode: time 6.91e-07/0.4261, allocations: 0 / 0.6363 GB, free: 13.01 MB / 0.5886 GB Notification: Performance of Templates: time 0.258/0.6842, allocations: 48.49 MB / 0.6836 GB, free: 103.3 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 -s gbode -gbm=radauIIA3 -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.97362841386348]