Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001306/0.001306, allocations: 79.34 kB / 19.76 MB, free: 2.035 MB / 14.72 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.001414/0.001414, allocations: 158.7 kB / 23.01 MB, free: 4.941 MB / 14.72 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.398/1.398, allocations: 177.2 MB / 203.4 MB, free: 8.977 MB / 190.1 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.7147/0.7147, allocations: 79.61 MB / 339.4 MB, free: 10.98 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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.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_dev_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_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00252/0.00252, allocations: 88.62 kB / 0.4924 GB, free: 25.87 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1211, allocations: 74.59 MB / 0.5652 GB, free: 5.875 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.4485/0.5696, allocations: 150.2 MB / 0.7119 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01272/0.5824, allocations: 10.52 MB / 0.7222 GB, free: 3.391 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.5839, allocations: 100.8 kB / 0.7222 GB, free: 3.391 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.5858, allocations: 0.8391 MB / 0.7231 GB, free: 3.367 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004184/0.59, allocations: 1.732 MB / 0.7248 GB, free: 3.312 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003237/0.5932, allocations: 1.355 MB / 0.7261 GB, free: 3.281 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002611/0.5958, allocations: 2.587 MB / 0.7286 GB, free: 3.273 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004165/0.5963, allocations: 236.7 kB / 0.7288 GB, free: 3.203 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002566/0.5988, allocations: 1.489 MB / 0.7303 GB, free: 3.191 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001563/0.6004, allocations: 1.096 MB / 0.7314 GB, free: 3.176 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001972/0.6006, allocations: 106.9 kB / 0.7315 GB, free: 3.176 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003119/0.6037, allocations: 1.56 MB / 0.733 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.604, allocations: 339.8 kB / 0.7333 GB, free: 3.066 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006091/0.6046, allocations: 0.6395 MB / 0.7339 GB, free: 2.863 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003159/0.6077, allocations: 2.486 MB / 0.7364 GB, free: 2.434 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.6077, allocations: 2.188 kB / 0.7364 GB, free: 2.434 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.313e-06/0.6077, allocations: 1 kB / 0.7364 GB, free: 2.434 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.489e-05/0.6078, allocations: 0 / 0.7364 GB, free: 2.434 MB / 0.5919 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.0032/0.611, allocations: 2.086 MB / 0.7384 GB, free: 17.38 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.611, allocations: 12.78 kB / 0.7384 GB, free: 17.38 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004747/0.6115, allocations: 233.8 kB / 0.7386 GB, free: 17.27 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.6132, allocations: 1.138 MB / 0.7397 GB, free: 16.88 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.617e-05/0.6132, allocations: 81.75 kB / 0.7398 GB, free: 16.87 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.6133, allocations: 116.5 kB / 0.7399 GB, free: 16.86 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.6148, allocations: 1.238 MB / 0.7411 GB, free: 16.61 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.6148, allocations: 1.969 kB / 0.7411 GB, free: 16.61 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.609e-05/0.6149, allocations: 43.94 kB / 0.7412 GB, free: 16.61 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.6149, allocations: 28.22 kB / 0.7412 GB, free: 16.61 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.6163, allocations: 1.092 MB / 0.7423 GB, free: 16.6 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004844/0.6212, allocations: 3.686 MB / 0.7459 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.6225, allocations: 0.7011 MB / 0.7466 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005518/0.623, allocations: 389.3 kB / 0.7469 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002736/0.6258, allocations: 1.492 MB / 0.7484 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.6258, allocations: 47.06 kB / 0.7484 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=108): time 2.635e-06/0.6258, allocations: 0.8438 kB / 0.7484 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of matching and sorting (n=108): time 0.002806/0.6286, allocations: 1.432 MB / 0.7498 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.6287, allocations: 117.2 kB / 0.75 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.6297, allocations: 1.08 MB / 0.751 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.66e-05/0.6298, allocations: 42.8 kB / 0.751 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003435/0.6301, allocations: 0.6545 MB / 0.7517 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/0.6304, allocations: 388.8 kB / 0.7521 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.6306, allocations: 200.2 kB / 0.7522 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.6308, allocations: 344.3 kB / 0.7526 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004473/0.6312, allocations: 299 kB / 0.7529 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006399/0.6319, allocations: 0.5128 MB / 0.7534 GB, free: 12.83 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.633, allocations: 0.7907 MB / 0.7541 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.633, allocations: 0 / 0.7541 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001995/0.635, allocations: 1.149 MB / 0.7553 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.6351, allocations: 9.812 kB / 0.7553 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.6351, allocations: 5.281 kB / 0.7553 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004917/0.6356, allocations: 159.8 kB / 0.7554 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006849/0.6363, allocations: 210.9 kB / 0.7556 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005376/0.6416, allocations: 6.615 MB / 0.7621 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008268/0.6425, allocations: 81.84 kB / 0.7622 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.6426, allocations: 51.36 kB / 0.7622 GB, free: 5.5 MB / 0.6075 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.0006236/0.6432, allocations: 304.8 kB / 0.7625 GB, free: 5.297 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.6435, allocations: 154.6 kB / 0.7627 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002533/0.646, allocations: 1.669 MB / 0.7643 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.646, allocations: 12.78 kB / 0.7643 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.646, allocations: 2.875 kB / 0.7643 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.646, allocations: 6.531 kB / 0.7643 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002877/0.6489, allocations: 1.97 MB / 0.7662 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.6489, allocations: 3.094 kB / 0.7662 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.6494, allocations: 124.9 kB / 0.7663 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004402/0.6498, allocations: 173.8 kB / 0.7665 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.468e-05/0.6499, allocations: 27.89 kB / 0.7665 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005274/0.6552, allocations: 6.612 MB / 0.773 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.6552, allocations: 9.406 kB / 0.773 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.6575, allocations: 1.512 MB / 0.7745 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004711/0.658, allocations: 236.3 kB / 0.7747 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.6581, allocations: 34.62 kB / 0.7747 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005144/0.6587, allocations: 22.52 kB / 0.7748 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.6588, allocations: 84.03 kB / 0.7748 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.338e-05/0.6588, allocations: 28.5 kB / 0.7749 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001002/0.6598, allocations: 0.8259 MB / 0.7757 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of sort global known variables: time 6e-08/0.6598, allocations: 0.8438 kB / 0.7757 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001429/0.6613, allocations: 472.1 kB / 0.7761 GB, free: 11.26 MB / 0.6231 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.00186/0.6631, allocations: 0.7471 MB / 0.7769 GB, free: 11.01 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002029/0.6652, allocations: 1.283 MB / 0.7781 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.6652, allocations: 0.875 kB / 0.7781 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.6663, allocations: 0.9057 MB / 0.779 GB, free: 9.547 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.6679, allocations: 332.9 kB / 0.7793 GB, free: 9.422 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005048/0.6729, allocations: 2.839 MB / 0.7821 GB, free: 7.898 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005677/0.6735, allocations: 0.6347 MB / 0.7827 GB, free: 7.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0007176/0.6742, allocations: 254.3 kB / 0.7829 GB, free: 7.684 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.6745, allocations: 123.2 kB / 0.7831 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of SimCode: time 7.12e-07/0.6745, allocations: 3.188 kB / 0.7831 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of Templates: time 0.03616/0.7106, allocations: 20.83 MB / 0.8034 GB, free: 7.816 MB / 0.6387 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=1200 -s ida -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.327891008928418]