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.001406/0.001406, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001728/0.001728, allocations: 173 kB / 23.49 MB, free: 1.059 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.9359/0.9359, allocations: 177.1 MB / 203.8 MB, free: 5.633 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.7074/0.7074, allocations: 118.6 MB / 378.9 MB, free: 1.496 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.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: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 483.6 MB, free: 8.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.749e-05/3.957e-05, allocations: 3.906 kB / 483.6 MB, free: 8.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.1545/0.1546, allocations: 167.9 MB / 0.6363 GB, free: 8.543 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2882/0.4428, allocations: 12.05 MB / 0.648 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00201/0.4448, allocations: 101.4 kB / 0.6481 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002571/0.4474, allocations: 0.8598 MB / 0.649 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.005037/0.4524, allocations: 1.92 MB / 0.6508 GB, free: 12.08 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.4559, allocations: 1.401 MB / 0.6522 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.004029/0.4599, allocations: 2.915 MB / 0.6551 GB, free: 11.48 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00099/0.4609, allocations: 241.6 kB / 0.6553 GB, free: 27.41 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003508/0.4644, allocations: 1.956 MB / 0.6572 GB, free: 27.19 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001498/0.4659, allocations: 1.06 MB / 0.6582 GB, free: 27.09 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002557/0.4662, allocations: 109.1 kB / 0.6583 GB, free: 27.09 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002996/0.4692, allocations: 1.577 MB / 0.6599 GB, free: 26.97 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002826/0.4695, allocations: 350.6 kB / 0.6602 GB, free: 26.88 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008243/0.4703, allocations: 0.5612 MB / 0.6608 GB, free: 26.8 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.004004/0.4743, allocations: 2.102 MB / 0.6628 GB, free: 26.49 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4743, allocations: 0.9062 kB / 0.6628 GB, free: 26.49 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.184e-06/0.4743, allocations: 6.797 kB / 0.6628 GB, free: 26.48 MB / 0.573 GB Notification: Performance of Transformations before backend: time 7.266e-05/0.4744, allocations: 0.8125 kB / 0.6628 GB, free: 26.48 MB / 0.573 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.00357/0.4779, allocations: 2.269 MB / 0.665 GB, free: 25.31 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.478, allocations: 9.969 kB / 0.665 GB, free: 25.31 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007056/0.4787, allocations: 338.5 kB / 0.6654 GB, free: 25.19 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.4807, allocations: 1.24 MB / 0.6666 GB, free: 24.79 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.525e-05/0.4807, allocations: 82.75 kB / 0.6667 GB, free: 24.79 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.4809, allocations: 113 kB / 0.6668 GB, free: 24.79 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.4822, allocations: 0.9464 MB / 0.6677 GB, free: 24.49 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.4822, allocations: 6.891 kB / 0.6677 GB, free: 24.49 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-05/0.4823, allocations: 47.25 kB / 0.6677 GB, free: 24.48 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.222e-05/0.4824, allocations: 26.84 kB / 0.6678 GB, free: 24.48 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.4834, allocations: 0.5536 MB / 0.6683 GB, free: 24.48 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004669/0.4881, allocations: 4.225 MB / 0.6724 GB, free: 22.41 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.4892, allocations: 0.6052 MB / 0.673 GB, free: 22.3 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004159/0.4896, allocations: 277.8 kB / 0.6733 GB, free: 22.27 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002244/0.4918, allocations: 1.685 MB / 0.6749 GB, free: 21.42 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.4919, allocations: 54.02 kB / 0.675 GB, free: 21.37 MB / 0.573 GB Notification: Performance of pre-optimization done (n=108): time 3.867e-06/0.4919, allocations: 0 / 0.675 GB, free: 21.37 MB / 0.573 GB Notification: Performance of matching and sorting (n=108): time 0.002331/0.4942, allocations: 1.169 MB / 0.6761 GB, free: 21.17 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.4943, allocations: 116 kB / 0.6762 GB, free: 21.04 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/0.4955, allocations: 1.092 MB / 0.6773 GB, free: 20.79 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.046e-05/0.4955, allocations: 44.2 kB / 0.6773 GB, free: 20.76 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003875/0.4959, allocations: 0.7285 MB / 0.6781 GB, free: 20.48 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.4961, allocations: 392.2 kB / 0.6784 GB, free: 20.23 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.4963, allocations: 211.6 kB / 0.6786 GB, free: 20.2 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002099/0.4966, allocations: 0.5117 MB / 0.6791 GB, free: 19.71 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/0.4969, allocations: 175.2 kB / 0.6793 GB, free: 19.71 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000534/0.4975, allocations: 0.5721 MB / 0.6799 GB, free: 19.26 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000759/0.4982, allocations: 0.6068 MB / 0.6805 GB, free: 19.06 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.4982, allocations: 0 / 0.6805 GB, free: 19.06 MB / 0.573 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00142/0.4996, allocations: 0.9592 MB / 0.6814 GB, free: 18.86 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.4997, allocations: 8.484 kB / 0.6814 GB, free: 18.86 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.4997, allocations: 5.75 kB / 0.6814 GB, free: 18.86 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000385/0.5001, allocations: 152.8 kB / 0.6816 GB, free: 18.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004335/0.5005, allocations: 213.9 kB / 0.6818 GB, free: 18.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/0.5044, allocations: 8.885 MB / 0.6904 GB, free: 10.16 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009187/0.5054, allocations: 94.83 kB / 0.6905 GB, free: 10.11 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.47e-05/0.5054, allocations: 49.27 kB / 0.6906 GB, free: 10.11 MB / 0.573 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.0005212/0.506, allocations: 213.5 kB / 0.6908 GB, free: 9.953 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.5062, allocations: 196.3 kB / 0.691 GB, free: 9.867 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.508, allocations: 1.609 MB / 0.6925 GB, free: 9.348 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.5081, allocations: 10.48 kB / 0.6925 GB, free: 9.344 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.5081, allocations: 2.594 kB / 0.6925 GB, free: 9.344 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.5081, allocations: 7.156 kB / 0.6926 GB, free: 9.344 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.5103, allocations: 1.973 MB / 0.6945 GB, free: 8.551 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.5103, allocations: 4.062 kB / 0.6945 GB, free: 8.551 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/0.5106, allocations: 123.2 kB / 0.6946 GB, free: 8.551 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003192/0.5109, allocations: 163.6 kB / 0.6948 GB, free: 8.488 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.792e-05/0.511, allocations: 25.58 kB / 0.6948 GB, free: 8.488 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003632/0.5146, allocations: 8.899 MB / 0.7035 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.5146, allocations: 6.156 kB / 0.7035 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.5163, allocations: 1.378 MB / 0.7048 GB, free: 15.09 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003759/0.5167, allocations: 230.7 kB / 0.705 GB, free: 15 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.5168, allocations: 39.31 kB / 0.7051 GB, free: 14.99 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.5171, allocations: 19.27 kB / 0.7051 GB, free: 14.99 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.5173, allocations: 83.8 kB / 0.7052 GB, free: 14.98 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.38e-05/0.5173, allocations: 34.45 kB / 0.7052 GB, free: 14.98 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0007567/0.5181, allocations: 0.736 MB / 0.7059 GB, free: 14.83 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8e-08/0.5181, allocations: 0 / 0.7059 GB, free: 14.83 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001322/0.5194, allocations: 498.8 kB / 0.7064 GB, free: 14.77 MB / 0.5886 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.001294/0.5207, allocations: 0.7096 MB / 0.7071 GB, free: 14.59 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001473/0.5221, allocations: 1.411 MB / 0.7085 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.5221, allocations: 0.7031 kB / 0.7085 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0007015/0.5229, allocations: 1.124 MB / 0.7096 GB, free: 12.84 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/0.5246, allocations: 0.5742 MB / 0.7101 GB, free: 12.75 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003709/0.5283, allocations: 2.603 MB / 0.7127 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.5285, allocations: 259.7 kB / 0.7129 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0008856/0.5294, allocations: 274.6 kB / 0.7132 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/0.5296, allocations: 135.4 kB / 0.7133 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of SimCode: time 2.364e-06/0.5296, allocations: 0 / 0.7133 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of Templates: time 0.03277/0.5623, allocations: 26.37 MB / 0.7391 GB, free: 2.109 MB / 0.5886 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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 240] 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","",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.705254878848791]