Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.0008606/0.0008606, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009483/0.0009483, allocations: 169 kB / 23.02 MB, free: 1.547 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 1.013/1.013, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.6918/0.6918, allocations: 118.7 MB / 378.6 MB, free: 1.539 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.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 483.6 MB, free: 8.207 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.165e-05/3.369e-05, allocations: 13.38 kB / 483.6 MB, free: 8.199 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.1401/0.1401, allocations: 133.5 MB / 0.6026 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005249/0.1454, allocations: 2.858 MB / 0.6054 GB, free: 7.934 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.1464, allocations: 63.38 kB / 0.6055 GB, free: 7.871 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0007502/0.1472, allocations: 217.9 kB / 0.6057 GB, free: 7.656 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001532/0.1487, allocations: 0.7059 MB / 0.6064 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.15, allocations: 0.5607 MB / 0.6069 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001697/0.1517, allocations: 1.569 MB / 0.6085 GB, free: 4.805 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.1521, allocations: 199.7 kB / 0.6087 GB, free: 4.598 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001199/0.1533, allocations: 0.8764 MB / 0.6095 GB, free: 3.719 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007546/0.154, allocations: 0.5804 MB / 0.6101 GB, free: 3.137 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.1541, allocations: 76 kB / 0.6102 GB, free: 3.062 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007927/0.1549, allocations: 415.4 kB / 0.6106 GB, free: 2.656 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.1551, allocations: 211 kB / 0.6108 GB, free: 2.449 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0003431/0.1554, allocations: 367 kB / 0.6111 GB, free: 2.09 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.1567, allocations: 1.132 MB / 0.6122 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1567, allocations: 0 / 0.6122 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.824e-06/0.1567, allocations: 0 / 0.6122 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.715e-05/0.1568, allocations: 4 kB / 0.6122 GB, free: 0.9492 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001716/0.1585, allocations: 1.538 MB / 0.6137 GB, free: 15.37 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.1585, allocations: 8.031 kB / 0.6137 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002938/0.1588, allocations: 215.9 kB / 0.6139 GB, free: 15.15 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009452/0.1598, allocations: 0.8442 MB / 0.6148 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.1598, allocations: 54.38 kB / 0.6148 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.82e-05/0.1599, allocations: 72.33 kB / 0.6149 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007328/0.1606, allocations: 0.5646 MB / 0.6154 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1606, allocations: 192 / 0.6154 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.1607, allocations: 35.94 kB / 0.6155 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.1607, allocations: 20 kB / 0.6155 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004409/0.1611, allocations: 319.7 kB / 0.6158 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/0.1636, allocations: 2.196 MB / 0.6179 GB, free: 10.93 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007577/0.1643, allocations: 0.4929 MB / 0.6184 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.1645, allocations: 169.9 kB / 0.6186 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009881/0.1655, allocations: 0.817 MB / 0.6194 GB, free: 9.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.1655, allocations: 37.89 kB / 0.6194 GB, free: 9.383 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/0.1655, allocations: 0 / 0.6194 GB, free: 9.383 MB / 0.5417 GB Notification: Performance of matching and sorting (n=50): time 0.001862/0.1674, allocations: 1.204 MB / 0.6206 GB, free: 8.133 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.1674, allocations: 59.91 kB / 0.6206 GB, free: 8.062 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006112/0.168, allocations: 0.7308 MB / 0.6214 GB, free: 7.305 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.1681, allocations: 33.7 kB / 0.6214 GB, free: 7.266 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002972/0.1684, allocations: 0.55 MB / 0.6219 GB, free: 6.711 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.57e-05/0.1685, allocations: 186.4 kB / 0.6221 GB, free: 6.527 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.985e-05/0.1686, allocations: 91.8 kB / 0.6222 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1687, allocations: 0.4926 MB / 0.6227 GB, free: 5.93 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.1688, allocations: 76.94 kB / 0.6227 GB, free: 5.855 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.169, allocations: 186.5 kB / 0.6229 GB, free: 5.637 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.1694, allocations: 303.1 kB / 0.6232 GB, free: 5.305 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1694, allocations: 0 / 0.6232 GB, free: 5.305 MB / 0.5417 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007145/0.1701, allocations: 0.5118 MB / 0.6237 GB, free: 4.781 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.1701, allocations: 8 kB / 0.6237 GB, free: 4.773 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1701, allocations: 0 / 0.6237 GB, free: 4.773 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000598/0.1707, allocations: 119.8 kB / 0.6238 GB, free: 4.652 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.1709, allocations: 91.83 kB / 0.6239 GB, free: 4.562 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.1725, allocations: 2.152 MB / 0.626 GB, free: 2.293 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.1728, allocations: 24.02 kB / 0.626 GB, free: 2.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.774e-05/0.1728, allocations: 16 kB / 0.6261 GB, free: 2.254 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.173, allocations: 184.5 kB / 0.6262 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.1731, allocations: 131.2 kB / 0.6264 GB, free: 1.934 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008325/0.174, allocations: 0.6495 MB / 0.627 GB, free: 1.25 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.174, allocations: 8 kB / 0.627 GB, free: 1.242 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.174, allocations: 0 / 0.627 GB, free: 1.242 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.174, allocations: 7.922 kB / 0.627 GB, free: 1.234 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.1755, allocations: 1.208 MB / 0.6282 GB, free: 15.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.1755, allocations: 0 / 0.6282 GB, free: 15.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.1757, allocations: 79.78 kB / 0.6283 GB, free: 15.89 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003672/0.1761, allocations: 131.3 kB / 0.6284 GB, free: 15.76 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.1761, allocations: 20 kB / 0.6284 GB, free: 15.74 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.1776, allocations: 2.143 MB / 0.6305 GB, free: 13.47 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.1776, allocations: 7.938 kB / 0.6305 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.1788, allocations: 0.7674 MB / 0.6313 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001957/0.179, allocations: 135.2 kB / 0.6314 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.574e-05/0.1791, allocations: 12 kB / 0.6314 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.1792, allocations: 20.05 kB / 0.6314 GB, free: 12.48 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.1794, allocations: 48.36 kB / 0.6315 GB, free: 12.44 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.1794, allocations: 19.98 kB / 0.6315 GB, free: 12.42 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004351/0.1798, allocations: 500 kB / 0.632 GB, free: 11.92 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.1798, allocations: 4 kB / 0.632 GB, free: 11.91 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0007028/0.1805, allocations: 267.6 kB / 0.6322 GB, free: 11.65 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003723/0.1809, allocations: 230.7 kB / 0.6324 GB, free: 11.42 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0007456/0.1816, allocations: 0.5083 MB / 0.6329 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1816, allocations: 4.125 kB / 0.6329 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004018/0.182, allocations: 405 kB / 0.6333 GB, free: 10.47 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009195/0.183, allocations: 345.7 kB / 0.6337 GB, free: 10.15 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.1855, allocations: 1.651 MB / 0.6353 GB, free: 8.441 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.1857, allocations: 179.5 kB / 0.6354 GB, free: 8.246 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003527/0.186, allocations: 142.3 kB / 0.6356 GB, free: 8.102 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.1861, allocations: 80.47 kB / 0.6357 GB, free: 8.02 MB / 0.5573 GB Notification: Performance of SimCode: time 1.984e-06/0.1861, allocations: 3.938 kB / 0.6357 GB, free: 8.016 MB / 0.5573 GB Notification: Performance of Templates: time 0.247/0.4331, allocations: 15.62 MB / 0.6509 GB, free: 49.56 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_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.430081821978092]