Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.001371/0.001371, allocations: 73.97 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.001818/0.001818, allocations: 169.4 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.8864/0.8864, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.691/0.691, allocations: 118.7 MB / 379.7 MB, free: 1.371 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.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 484.8 MB, free: 8.117 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.227e-05/1.335e-05, allocations: 6.25 kB / 484.8 MB, free: 8.109 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.1201/0.1201, allocations: 133.9 MB / 0.6043 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.004977/0.1251, allocations: 3.675 MB / 0.6079 GB, free: 6.348 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006308/0.1257, allocations: 103.1 kB / 0.608 GB, free: 6.246 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0008658/0.1265, allocations: 0.5509 MB / 0.6085 GB, free: 5.691 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001628/0.1282, allocations: 1.331 MB / 0.6098 GB, free: 4.352 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.1292, allocations: 0.6545 MB / 0.6105 GB, free: 3.695 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002171/0.1314, allocations: 2.925 MB / 0.6133 GB, free: 0.7578 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.1318, allocations: 237.3 kB / 0.6135 GB, free: 0.5039 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001982/0.1337, allocations: 1.668 MB / 0.6152 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.1348, allocations: 1.06 MB / 0.6162 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.1349, allocations: 112 kB / 0.6163 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004929/0.1354, allocations: 347.5 kB / 0.6166 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.1356, allocations: 350.3 kB / 0.617 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0003833/0.136, allocations: 0.5648 MB / 0.6175 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.1372, allocations: 1.56 MB / 0.6191 GB, free: 10.86 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1372, allocations: 4 kB / 0.6191 GB, free: 10.86 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.513e-06/0.1372, allocations: 3.938 kB / 0.6191 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.068e-05/0.1372, allocations: 0 / 0.6191 GB, free: 10.85 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: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.001961/0.1392, allocations: 2.198 MB / 0.6212 GB, free: 8.602 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.1392, allocations: 12.03 kB / 0.6212 GB, free: 8.59 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003782/0.1396, allocations: 347.4 kB / 0.6215 GB, free: 8.25 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.1407, allocations: 1.205 MB / 0.6227 GB, free: 7.004 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.1408, allocations: 82.47 kB / 0.6228 GB, free: 6.922 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.855e-05/0.1408, allocations: 120.3 kB / 0.6229 GB, free: 6.805 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007456/0.1416, allocations: 0.8674 MB / 0.6238 GB, free: 5.836 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.1416, allocations: 4 kB / 0.6238 GB, free: 5.832 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.1417, allocations: 43.94 kB / 0.6238 GB, free: 5.789 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.1417, allocations: 28 kB / 0.6238 GB, free: 5.762 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.1421, allocations: 435.6 kB / 0.6243 GB, free: 5.34 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003055/0.1452, allocations: 4.033 MB / 0.6282 GB, free: 1.195 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006126/0.1458, allocations: 0.5506 MB / 0.6287 GB, free: 0.6016 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.146, allocations: 237.7 kB / 0.629 GB, free: 368 kB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001437/0.1475, allocations: 1.605 MB / 0.6305 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.1475, allocations: 53.97 kB / 0.6306 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=108): time 2.124e-06/0.1475, allocations: 0 / 0.6306 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of matching and sorting (n=108): time 0.001394/0.1489, allocations: 1.067 MB / 0.6316 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.1489, allocations: 119.4 kB / 0.6317 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006684/0.1496, allocations: 1.069 MB / 0.6328 GB, free: 12.33 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.1497, allocations: 45.7 kB / 0.6328 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003454/0.15, allocations: 0.7175 MB / 0.6335 GB, free: 11.56 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.1502, allocations: 392.5 kB / 0.6339 GB, free: 11.17 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.1504, allocations: 216.4 kB / 0.6341 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1505, allocations: 0.5159 MB / 0.6346 GB, free: 10.43 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.1507, allocations: 138.5 kB / 0.6347 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003405/0.151, allocations: 0.5394 MB / 0.6353 GB, free: 9.621 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005118/0.1515, allocations: 0.5328 MB / 0.6358 GB, free: 9.031 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1515, allocations: 0 / 0.6358 GB, free: 9.031 MB / 0.5573 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.0009208/0.1524, allocations: 0.8744 MB / 0.6366 GB, free: 8.133 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1524, allocations: 4 kB / 0.6366 GB, free: 8.129 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/0.1525, allocations: 4 kB / 0.6366 GB, free: 8.125 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002855/0.1527, allocations: 154.4 kB / 0.6368 GB, free: 7.953 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.1531, allocations: 211.7 kB / 0.637 GB, free: 7.746 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2106/0.3637, allocations: 8.753 MB / 0.6455 GB, free: 49.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.3647, allocations: 88.7 kB / 0.6456 GB, free: 49.17 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.3649, allocations: 39.67 kB / 0.6457 GB, free: 49.17 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (117): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000442/0.3653, allocations: 216.1 kB / 0.6459 GB, free: 49.01 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003389/0.3657, allocations: 197.8 kB / 0.6461 GB, free: 49.01 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002379/0.368, allocations: 1.586 MB / 0.6476 GB, free: 48.54 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.368, allocations: 9.125 kB / 0.6476 GB, free: 48.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.3681, allocations: 3.406 kB / 0.6476 GB, free: 48.54 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.3681, allocations: 4.562 kB / 0.6476 GB, free: 48.54 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.3705, allocations: 1.726 MB / 0.6493 GB, free: 47.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.3705, allocations: 3.375 kB / 0.6493 GB, free: 47.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/0.3709, allocations: 122.5 kB / 0.6494 GB, free: 47.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004162/0.3713, allocations: 161.7 kB / 0.6496 GB, free: 47.79 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.661e-05/0.3714, allocations: 29.7 kB / 0.6496 GB, free: 47.79 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00315/0.3745, allocations: 8.771 MB / 0.6582 GB, free: 39.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.3745, allocations: 7.031 kB / 0.6582 GB, free: 39.34 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.3761, allocations: 1.307 MB / 0.6595 GB, free: 38.61 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004511/0.3766, allocations: 229.4 kB / 0.6597 GB, free: 38.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.3768, allocations: 36.77 kB / 0.6597 GB, free: 38.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005508/0.3773, allocations: 23.34 kB / 0.6597 GB, free: 38.52 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.3774, allocations: 77.95 kB / 0.6598 GB, free: 38.52 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.162e-05/0.3775, allocations: 26.66 kB / 0.6598 GB, free: 38.52 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006415/0.3781, allocations: 0.6805 MB / 0.6605 GB, free: 38.37 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4e-08/0.3781, allocations: 0 / 0.6605 GB, free: 38.37 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0008834/0.379, allocations: 420.9 kB / 0.6609 GB, free: 38.34 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (flowResistance1.m_flow,flowResistance.m_flow,basicControlValve.m_flow,specificValveType.m_flow,tanValve.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 (70): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007923/0.3798, allocations: 396.3 kB / 0.6613 GB, free: 38.22 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0009465/0.3808, allocations: 1.353 MB / 0.6626 GB, free: 37.34 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3808, allocations: 0.875 kB / 0.6626 GB, free: 37.34 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00047/0.3812, allocations: 1.101 MB / 0.6637 GB, free: 36.48 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.3827, allocations: 0.579 MB / 0.6642 GB, free: 36.39 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.3856, allocations: 2.576 MB / 0.6668 GB, free: 35.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.3857, allocations: 259.6 kB / 0.667 GB, free: 35.02 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006051/0.3863, allocations: 277.7 kB / 0.6673 GB, free: 34.93 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006603/0.387, allocations: 493.7 kB / 0.6677 GB, free: 34.87 MB / 0.5573 GB Notification: Performance of SimCode: time 1.363e-06/0.387, allocations: 0 / 0.6677 GB, free: 34.87 MB / 0.5573 GB Notification: Performance of Templates: time 0.02924/0.4162, allocations: 24.11 MB / 0.6913 GB, free: 30.78 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.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.396493819076568]