Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.0008025/0.0008025, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.000888/0.000888, allocations: 173 kB / 23.49 MB, free: 1.055 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.9979/0.9979, allocations: 177.1 MB / 203.8 MB, free: 5.652 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.6904/0.6904, allocations: 118.6 MB / 378.9 MB, free: 1.516 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.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 483.6 MB, free: 8.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.039e-05/2.247e-05, allocations: 2.312 kB / 483.6 MB, free: 8.289 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.04995/0.04998, allocations: 69.06 MB / 0.5397 GB, free: 11.8 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01659/0.06657, allocations: 18.47 MB / 0.5578 GB, free: 9.27 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00223/0.0688, allocations: 118.9 kB / 0.5579 GB, free: 9.152 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.07117, allocations: 1.105 MB / 0.559 GB, free: 8.039 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006491/0.07766, allocations: 3.123 MB / 0.562 GB, free: 4.895 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00353/0.08119, allocations: 1.658 MB / 0.5636 GB, free: 3.23 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.004879/0.08607, allocations: 4.389 MB / 0.5679 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007637/0.08683, allocations: 383.4 kB / 0.5683 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003257/0.09009, allocations: 2.376 MB / 0.5706 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001425/0.09151, allocations: 1.309 MB / 0.5719 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0002553/0.09177, allocations: 192 kB / 0.5721 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003777/0.09555, allocations: 1.509 MB / 0.5736 GB, free: 9.027 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0003471/0.09589, allocations: 0.5132 MB / 0.5741 GB, free: 8.512 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0009645/0.09686, allocations: 0.9235 MB / 0.575 GB, free: 7.586 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.005943/0.1028, allocations: 3.211 MB / 0.5781 GB, free: 4.363 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1028, allocations: 8 kB / 0.5781 GB, free: 4.355 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1028, allocations: 0 / 0.5781 GB, free: 4.355 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.487e-05/0.1029, allocations: 0 / 0.5781 GB, free: 4.355 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.003752/0.1066, allocations: 3.175 MB / 0.5812 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.1066, allocations: 8.031 kB / 0.5812 GB, free: 1.109 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008704/0.1075, allocations: 0.5609 MB / 0.5818 GB, free: 0.5469 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001776/0.1093, allocations: 1.487 MB / 0.5832 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.471e-05/0.1094, allocations: 144.1 kB / 0.5833 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001787/0.1095, allocations: 196.3 kB / 0.5835 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001892/0.1114, allocations: 1.593 MB / 0.5851 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.1115, allocations: 4.188 kB / 0.5851 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.1116, allocations: 80.12 kB / 0.5852 GB, free: 12.95 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.87e-05/0.1116, allocations: 44 kB / 0.5852 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.1132, allocations: 1.072 MB / 0.5863 GB, free: 11.83 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005744/0.1189, allocations: 5.105 MB / 0.5912 GB, free: 6.629 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.1206, allocations: 1.412 MB / 0.5926 GB, free: 5.207 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006757/0.1213, allocations: 0.5562 MB / 0.5932 GB, free: 4.648 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003434/0.1247, allocations: 2.593 MB / 0.5957 GB, free: 2.027 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001051/0.1258, allocations: 0.8407 MB / 0.5965 GB, free: 1.141 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=200): time 4.719e-06/0.1258, allocations: 0 / 0.5965 GB, free: 1.141 MB / 0.5105 GB Notification: Performance of matching and sorting (n=200): time 0.003015/0.1288, allocations: 1.989 MB / 0.5985 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.1289, allocations: 158.5 kB / 0.5986 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009118/0.1298, allocations: 1.179 MB / 0.5998 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.963e-05/0.1299, allocations: 61.7 kB / 0.5998 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004974/0.1304, allocations: 0.9547 MB / 0.6008 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003716/0.1307, allocations: 0.7048 MB / 0.6014 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/0.131, allocations: 341.2 kB / 0.6018 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.552e-05/0.1311, allocations: 484.7 kB / 0.6022 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005398/0.1317, allocations: 373.5 kB / 0.6026 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008973/0.1326, allocations: 0.9852 MB / 0.6035 GB, free: 9.645 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.1339, allocations: 1.151 MB / 0.6047 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.1339, allocations: 0 / 0.6047 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.002245/0.1362, allocations: 1.662 MB / 0.6063 GB, free: 6.703 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.1362, allocations: 33.7 kB / 0.6063 GB, free: 6.664 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1362, allocations: 4 kB / 0.6063 GB, free: 6.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004447/0.1367, allocations: 167 kB / 0.6065 GB, free: 6.484 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000763/0.1374, allocations: 383.5 kB / 0.6069 GB, free: 6.109 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.1403, allocations: 5.631 MB / 0.6124 GB, free: 112 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007272/0.141, allocations: 148.4 kB / 0.6125 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.1411, allocations: 83.97 kB / 0.6126 GB, free: 15.88 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004502/0.1416, allocations: 264.2 kB / 0.6128 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/0.1419, allocations: 278.6 kB / 0.6131 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003277/0.1451, allocations: 2.606 MB / 0.6156 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.1451, allocations: 20 kB / 0.6157 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1452, allocations: 4 kB / 0.6157 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.1452, allocations: 15.89 kB / 0.6157 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004467/0.1496, allocations: 3.46 MB / 0.6191 GB, free: 9.211 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.1496, allocations: 0 / 0.6191 GB, free: 9.211 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007149/0.1504, allocations: 371.5 kB / 0.6194 GB, free: 8.848 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003966/0.1508, allocations: 190.9 kB / 0.6196 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.1509, allocations: 67.97 kB / 0.6197 GB, free: 8.582 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002787/0.1537, allocations: 5.609 MB / 0.6251 GB, free: 2.609 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.1537, allocations: 4 kB / 0.6251 GB, free: 2.605 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003088/0.1567, allocations: 2.292 MB / 0.6274 GB, free: 264 kB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006571/0.1574, allocations: 449.8 kB / 0.6278 GB, free: 15.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.1576, allocations: 47.89 kB / 0.6279 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000421/0.158, allocations: 55.92 kB / 0.6279 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/0.1582, allocations: 169.7 kB / 0.6281 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.1584, allocations: 79.97 kB / 0.6281 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000669/0.159, allocations: 0.7487 MB / 0.6289 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.159, allocations: 0 / 0.6289 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001821/0.1608, allocations: 0.8577 MB / 0.6297 GB, free: 13.86 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000911/0.1618, allocations: 0.7878 MB / 0.6305 GB, free: 13.09 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002345/0.1641, allocations: 1.812 MB / 0.6323 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.1641, allocations: 0 / 0.6323 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.1653, allocations: 1.234 MB / 0.6335 GB, free: 9.906 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.1677, allocations: 0.8937 MB / 0.6343 GB, free: 9.039 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006154/0.1738, allocations: 3.869 MB / 0.6381 GB, free: 5.086 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.1741, allocations: 373.9 kB / 0.6385 GB, free: 4.691 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001414/0.1755, allocations: 493.7 kB / 0.6389 GB, free: 4.316 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004194/0.176, allocations: 240.4 kB / 0.6392 GB, free: 4.082 MB / 0.5573 GB Notification: Performance of SimCode: time 2.194e-06/0.176, allocations: 0 / 0.6392 GB, free: 4.082 MB / 0.5573 GB Notification: Performance of Templates: time 0.2139/0.3899, allocations: 44.56 MB / 0.6827 GB, free: 146.8 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_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.825393598061055]