Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.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.001012/0.001012, allocations: 81.86 kB / 19.87 MB, free: 4.617 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.0009927/0.0009927, allocations: 169.7 kB / 23.27 MB, free: 1.219 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.9428/0.9428, allocations: 177.1 MB / 203.7 MB, free: 5.488 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.6504/0.6504, 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.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|basicControlValve.m_flow|fan.m_flow|fan.omega|fan.phi|flowResistance.m_flow|nozzle.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|basicControlValve.m_flow|fan.m_flow|fan.omega|fan.phi|flowResistance.m_flow|nozzle.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.294e-06/2.294e-06, allocations: 0 / 484 MB, free: 8.137 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.967e-05, allocations: 5.547 kB / 484 MB, free: 8.133 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping): time 0.1174/0.1174, allocations: 130.9 MB / 0.6005 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.003821/0.1212, allocations: 3.942 MB / 0.6043 GB, free: 9.18 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003426/0.1216, allocations: 59.44 kB / 0.6044 GB, free: 9.121 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.000634/0.1222, allocations: 385.7 kB / 0.6048 GB, free: 8.742 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0009721/0.1232, allocations: 0.9043 MB / 0.6056 GB, free: 7.832 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007767/0.124, allocations: 0.6424 MB / 0.6063 GB, free: 7.188 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001502/0.1255, allocations: 2.195 MB / 0.6084 GB, free: 4.984 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002566/0.1257, allocations: 207.9 kB / 0.6086 GB, free: 4.77 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.127, allocations: 1.339 MB / 0.6099 GB, free: 3.445 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008602/0.1279, allocations: 1.087 MB / 0.611 GB, free: 2.355 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.128, allocations: 128 kB / 0.6111 GB, free: 2.23 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005066/0.1285, allocations: 471.2 kB / 0.6116 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002212/0.1287, allocations: 426.5 kB / 0.612 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0003428/0.1291, allocations: 0.5338 MB / 0.6125 GB, free: 0.8164 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.1303, allocations: 1.635 MB / 0.6141 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1303, allocations: 0 / 0.6141 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of FrontEnd: time 7.71e-07/0.1303, allocations: 0 / 0.6141 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.1303, allocations: 4 kB / 0.6141 GB, free: 15.17 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: 238 * Number of variables: 238 Notification: Performance of Generate backend data structure: time 0.002329/0.1326, allocations: 2.114 MB / 0.6161 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.1327, allocations: 8.031 kB / 0.6162 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.133, allocations: 263.8 kB / 0.6164 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.134, allocations: 0.9584 MB / 0.6173 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.518e-05/0.1341, allocations: 122 kB / 0.6175 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.1342, allocations: 107.9 kB / 0.6176 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008584/0.1351, allocations: 0.9166 MB / 0.6185 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.1351, allocations: 0 / 0.6185 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.85e-05/0.1351, allocations: 36 kB / 0.6185 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.276e-05/0.1352, allocations: 49.98 kB / 0.6185 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000801/0.136, allocations: 0.6845 MB / 0.6192 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003862/0.1399, allocations: 3.394 MB / 0.6225 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007003/0.1406, allocations: 0.7049 MB / 0.6232 GB, free: 5.613 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/0.1409, allocations: 385.3 kB / 0.6236 GB, free: 5.23 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001607/0.1425, allocations: 1.39 MB / 0.6249 GB, free: 3.84 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.1426, allocations: 50.39 kB / 0.625 GB, free: 3.781 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=120): time 2.114e-06/0.1426, allocations: 0 / 0.625 GB, free: 3.781 MB / 0.5417 GB Notification: Performance of matching and sorting (n=122): time 0.003355/0.1459, allocations: 2.595 MB / 0.6275 GB, free: 1.152 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.1459, allocations: 68.41 kB / 0.6276 GB, free: 1.074 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007708/0.1467, allocations: 0.8376 MB / 0.6284 GB, free: 220 kB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.567e-05/0.1468, allocations: 45.7 kB / 0.6284 GB, free: 168 kB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.147, allocations: 0.5511 MB / 0.629 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/0.1472, allocations: 464 kB / 0.6294 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00024/0.1475, allocations: 260.3 kB / 0.6297 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1476, allocations: 0.5315 MB / 0.6302 GB, free: 14.35 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.1479, allocations: 222.4 kB / 0.6304 GB, free: 14.13 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.1483, allocations: 0.593 MB / 0.631 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000701/0.149, allocations: 0.7044 MB / 0.6317 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.149, allocations: 4 kB / 0.6317 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001301/0.1503, allocations: 1.147 MB / 0.6328 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.1503, allocations: 4 kB / 0.6328 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1503, allocations: 7.938 kB / 0.6328 GB, free: 11.51 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004638/0.1508, allocations: 284.6 kB / 0.6331 GB, free: 11.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.1513, allocations: 235.6 kB / 0.6333 GB, free: 11 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002495/0.1538, allocations: 3.259 MB / 0.6365 GB, free: 7.633 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.1541, allocations: 38.23 kB / 0.6365 GB, free: 7.598 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.475e-05/0.1542, allocations: 51.94 kB / 0.6366 GB, free: 7.547 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (113): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002177/0.1544, allocations: 216.3 kB / 0.6368 GB, free: 7.324 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001997/0.1546, allocations: 179.2 kB / 0.6369 GB, free: 7.148 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001579/0.1562, allocations: 1.551 MB / 0.6385 GB, free: 5.578 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.1562, allocations: 15.98 kB / 0.6385 GB, free: 5.562 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.1562, allocations: 4 kB / 0.6385 GB, free: 5.559 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.1562, allocations: 11.97 kB / 0.6385 GB, free: 5.547 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002409/0.1586, allocations: 2.322 MB / 0.6408 GB, free: 3.113 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.1586, allocations: 16.08 kB / 0.6408 GB, free: 3.098 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004307/0.159, allocations: 191.6 kB / 0.641 GB, free: 2.91 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004921/0.1595, allocations: 335.4 kB / 0.6413 GB, free: 2.578 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.479e-05/0.1596, allocations: 59.94 kB / 0.6413 GB, free: 2.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2069/0.3665, allocations: 3.258 MB / 0.6445 GB, free: 49.03 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.3665, allocations: 5.969 kB / 0.6445 GB, free: 49.03 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.3693, allocations: 1.719 MB / 0.6462 GB, free: 48.59 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00047/0.3698, allocations: 253.1 kB / 0.6464 GB, free: 48.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.3699, allocations: 35.92 kB / 0.6465 GB, free: 48.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004938/0.3704, allocations: 27 kB / 0.6465 GB, free: 48.59 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.3706, allocations: 122.3 kB / 0.6466 GB, free: 48.58 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.524e-05/0.3707, allocations: 53.84 kB / 0.6467 GB, free: 48.58 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004641/0.3711, allocations: 0.5022 MB / 0.6472 GB, free: 48.43 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9e-08/0.3711, allocations: 0 / 0.6472 GB, free: 48.43 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00118/0.3723, allocations: 427.2 kB / 0.6476 GB, free: 48.43 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 8 (flowResistance.m_flow,fan.m_flow,fan.phi,fan.omega,basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow,nozzle.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 (90): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009656/0.3733, allocations: 470.7 kB / 0.648 GB, free: 48.33 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001718/0.375, allocations: 1.212 MB / 0.6492 GB, free: 48.06 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.375, allocations: 0 / 0.6492 GB, free: 48.06 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009754/0.376, allocations: 0.882 MB / 0.6501 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.3775, allocations: 0.5231 MB / 0.6506 GB, free: 47.77 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003364/0.3808, allocations: 2.609 MB / 0.6531 GB, free: 46.62 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.3811, allocations: 288 kB / 0.6534 GB, free: 46.52 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006407/0.3817, allocations: 233.8 kB / 0.6536 GB, free: 46.45 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000737/0.3824, allocations: 471.9 kB / 0.6541 GB, free: 46.39 MB / 0.5573 GB Notification: Performance of SimCode: time 6.21e-07/0.3824, allocations: 0.875 kB / 0.6541 GB, free: 46.39 MB / 0.5573 GB Notification: Performance of Templates: time 0.02788/0.4103, allocations: 27.02 MB / 0.6805 GB, free: 41.56 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_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.514405117370188]