Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.001065/0.001065, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.00117/0.00117, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9406/0.9406, allocations: 177.1 MB / 204.5 MB, free: 5.516 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.6665/0.6665, allocations: 118.7 MB / 379.7 MB, free: 1.375 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.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 484.8 MB, free: 8.102 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.305e-05/1.445e-05, allocations: 5.125 kB / 484.9 MB, free: 8.098 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1156/0.1156, allocations: 133.4 MB / 0.6038 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005711/0.1213, allocations: 3.655 MB / 0.6074 GB, free: 6.875 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008961/0.1222, allocations: 71.38 kB / 0.6074 GB, free: 6.805 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0007891/0.123, allocations: 353.1 kB / 0.6078 GB, free: 6.457 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001989/0.125, allocations: 1.238 MB / 0.609 GB, free: 5.211 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.1263, allocations: 0.7169 MB / 0.6097 GB, free: 4.492 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002343/0.1287, allocations: 2.792 MB / 0.6124 GB, free: 1.691 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004509/0.1291, allocations: 290.3 kB / 0.6127 GB, free: 1.375 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001717/0.1308, allocations: 1.438 MB / 0.6141 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001747/0.1326, allocations: 1.274 MB / 0.6153 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002036/0.1328, allocations: 144 kB / 0.6155 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008599/0.1336, allocations: 0.4955 MB / 0.616 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002795/0.1339, allocations: 386.5 kB / 0.6163 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0006062/0.1345, allocations: 0.6002 MB / 0.6169 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.1363, allocations: 1.651 MB / 0.6185 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1363, allocations: 0 / 0.6185 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1363, allocations: 0 / 0.6185 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.041e-05/0.1363, allocations: 4 kB / 0.6185 GB, free: 11.38 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.002756/0.1391, allocations: 2.033 MB / 0.6205 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.1391, allocations: 11.97 kB / 0.6205 GB, free: 9.285 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004632/0.1396, allocations: 319.5 kB / 0.6208 GB, free: 8.973 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/0.1411, allocations: 0.9563 MB / 0.6218 GB, free: 7.977 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.343e-05/0.1411, allocations: 90.78 kB / 0.6218 GB, free: 7.887 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.1413, allocations: 124.4 kB / 0.622 GB, free: 7.766 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.1425, allocations: 0.9159 MB / 0.6229 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.1425, allocations: 3.938 kB / 0.6229 GB, free: 6.797 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.828e-05/0.1426, allocations: 48 kB / 0.6229 GB, free: 6.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.226e-05/0.1426, allocations: 28 kB / 0.6229 GB, free: 6.723 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008826/0.1435, allocations: 0.5507 MB / 0.6235 GB, free: 6.16 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004201/0.1477, allocations: 3.207 MB / 0.6266 GB, free: 2.898 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.1488, allocations: 0.7787 MB / 0.6274 GB, free: 2.109 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/0.1491, allocations: 299.4 kB / 0.6276 GB, free: 1.816 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002776/0.1519, allocations: 1.75 MB / 0.6294 GB, free: 48 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005258/0.1524, allocations: 426.9 kB / 0.6298 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 3.416e-06/0.1524, allocations: 4 kB / 0.6298 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.002806/0.1553, allocations: 2.075 MB / 0.6318 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.1553, allocations: 68.72 kB / 0.6319 GB, free: 13.42 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/0.1557, allocations: 0.6942 MB / 0.6325 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.072e-05/0.1558, allocations: 53.62 kB / 0.6326 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/0.1561, allocations: 0.6015 MB / 0.6332 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002781/0.1564, allocations: 467.9 kB / 0.6336 GB, free: 11.58 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/0.1566, allocations: 216.5 kB / 0.6338 GB, free: 11.36 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1568, allocations: 0.5198 MB / 0.6343 GB, free: 10.83 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.157, allocations: 216.2 kB / 0.6345 GB, free: 10.61 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003246/0.1574, allocations: 365.6 kB / 0.6349 GB, free: 10.22 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006446/0.158, allocations: 0.6303 MB / 0.6355 GB, free: 9.559 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.158, allocations: 0 / 0.6355 GB, free: 9.559 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001197/0.1592, allocations: 1.026 MB / 0.6365 GB, free: 8.508 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.62e-05/0.1592, allocations: 37.69 kB / 0.6365 GB, free: 8.465 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1593, allocations: 0 / 0.6365 GB, free: 8.465 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003074/0.1596, allocations: 127.6 kB / 0.6367 GB, free: 8.336 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004551/0.16, allocations: 231.7 kB / 0.6369 GB, free: 8.109 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.1621, allocations: 2.602 MB / 0.6394 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.1624, allocations: 35.98 kB / 0.6395 GB, free: 5.359 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.644e-05/0.1624, allocations: 39.98 kB / 0.6395 GB, free: 5.32 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002521/0.1627, allocations: 215.8 kB / 0.6397 GB, free: 5.102 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/0.1629, allocations: 202.9 kB / 0.6399 GB, free: 4.902 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001838/0.1648, allocations: 1.631 MB / 0.6415 GB, free: 3.262 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.1648, allocations: 12 kB / 0.6415 GB, free: 3.25 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1648, allocations: 7.938 kB / 0.6415 GB, free: 3.242 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.1648, allocations: 11.97 kB / 0.6415 GB, free: 3.23 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002498/0.1673, allocations: 2.044 MB / 0.6435 GB, free: 1.129 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.1673, allocations: 8.125 kB / 0.6435 GB, free: 1.121 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004587/0.1678, allocations: 227.7 kB / 0.6437 GB, free: 0.8984 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002902/0.168, allocations: 123.5 kB / 0.6439 GB, free: 0.7734 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.793e-05/0.1681, allocations: 43.97 kB / 0.6439 GB, free: 0.7305 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2337/0.4018, allocations: 2.473 MB / 0.6463 GB, free: 51.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4018, allocations: 1.391 kB / 0.6463 GB, free: 51.55 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002277/0.4041, allocations: 1.437 MB / 0.6477 GB, free: 51.27 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003826/0.4045, allocations: 257.5 kB / 0.648 GB, free: 51.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.4046, allocations: 24.25 kB / 0.648 GB, free: 51.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.4049, allocations: 35.17 kB / 0.648 GB, free: 51.27 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.4051, allocations: 106.8 kB / 0.6481 GB, free: 51.27 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.968e-05/0.4052, allocations: 39.97 kB / 0.6482 GB, free: 51.27 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003614/0.4055, allocations: 453.2 kB / 0.6486 GB, free: 51.11 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4055, allocations: 0 / 0.6486 GB, free: 51.11 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001088/0.4066, allocations: 449.3 kB / 0.649 GB, free: 51.11 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.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 (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004045/0.407, allocations: 265.2 kB / 0.6493 GB, free: 51.02 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001341/0.4083, allocations: 1.03 MB / 0.6503 GB, free: 50.71 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4084, allocations: 2.188 kB / 0.6503 GB, free: 50.71 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007922/0.4091, allocations: 0.6847 MB / 0.651 GB, free: 50.51 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.4104, allocations: 0.511 MB / 0.6515 GB, free: 50.49 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.4135, allocations: 2.395 MB / 0.6538 GB, free: 49.49 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001669/0.4137, allocations: 268.3 kB / 0.6541 GB, free: 49.4 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000651/0.4143, allocations: 288 kB / 0.6543 GB, free: 49.32 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006986/0.415, allocations: 491.2 kB / 0.6548 GB, free: 49.26 MB / 0.5573 GB Notification: Performance of SimCode: time 1.232e-06/0.415, allocations: 0 / 0.6548 GB, free: 49.26 MB / 0.5573 GB Notification: Performance of Templates: time 0.03568/0.4507, allocations: 27.3 MB / 0.6815 GB, free: 44.36 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.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.577231451869011]