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.0009205/0.0009205, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.0009506/0.0009506, allocations: 173 kB / 23.49 MB, free: 1.055 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.8996/0.8996, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.6761/0.6761, allocations: 118.6 MB / 378.9 MB, free: 1.5 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.794e-06/1.794e-06, allocations: 0 / 483.6 MB, free: 8.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.24e-05, allocations: 6.453 kB / 483.6 MB, free: 8.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.149/0.149, allocations: 167.9 MB / 0.6363 GB, free: 8.555 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2346/0.3836, allocations: 12.05 MB / 0.648 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.3849, allocations: 97.94 kB / 0.6481 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001557/0.3865, allocations: 0.8634 MB / 0.649 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.003131/0.3896, allocations: 1.915 MB / 0.6509 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.3919, allocations: 1.401 MB / 0.6522 GB, free: 12.13 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.002709/0.3946, allocations: 2.922 MB / 0.6551 GB, free: 11.57 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005852/0.3952, allocations: 240.6 kB / 0.6553 GB, free: 27.51 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002221/0.3974, allocations: 1.953 MB / 0.6572 GB, free: 27.29 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.3985, allocations: 1.063 MB / 0.6582 GB, free: 27.18 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.3986, allocations: 111.9 kB / 0.6584 GB, free: 27.18 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002114/0.4007, allocations: 1.57 MB / 0.6599 GB, free: 27.07 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002444/0.401, allocations: 351.2 kB / 0.6602 GB, free: 26.98 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005491/0.4015, allocations: 0.5648 MB / 0.6608 GB, free: 26.9 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.002485/0.404, allocations: 2.106 MB / 0.6628 GB, free: 26.59 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.404, allocations: 0 / 0.6628 GB, free: 26.59 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.182e-06/0.404, allocations: 1 kB / 0.6628 GB, free: 26.59 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.452e-05/0.4041, allocations: 0 / 0.6628 GB, free: 26.59 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.002707/0.4068, allocations: 2.272 MB / 0.665 GB, free: 25.41 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4068, allocations: 7.719 kB / 0.6651 GB, free: 25.41 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005002/0.4073, allocations: 342.1 kB / 0.6654 GB, free: 25.29 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001487/0.4088, allocations: 1.239 MB / 0.6666 GB, free: 24.89 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.152e-05/0.4088, allocations: 80.75 kB / 0.6667 GB, free: 24.89 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.409, allocations: 116.6 kB / 0.6668 GB, free: 24.88 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.41, allocations: 0.9489 MB / 0.6677 GB, free: 24.59 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.41, allocations: 0.75 kB / 0.6677 GB, free: 24.59 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.07e-05/0.4101, allocations: 49.16 kB / 0.6678 GB, free: 24.58 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/0.4101, allocations: 26.12 kB / 0.6678 GB, free: 24.58 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008661/0.4109, allocations: 0.5581 MB / 0.6683 GB, free: 24.57 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.4146, allocations: 4.212 MB / 0.6724 GB, free: 22.51 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008722/0.4154, allocations: 0.6082 MB / 0.673 GB, free: 22.4 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.4158, allocations: 275.4 kB / 0.6733 GB, free: 22.37 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001762/0.4176, allocations: 1.69 MB / 0.6749 GB, free: 21.52 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.4176, allocations: 56.14 kB / 0.675 GB, free: 21.47 MB / 0.573 GB Notification: Performance of pre-optimization done (n=108): time 2.514e-06/0.4176, allocations: 0 / 0.675 GB, free: 21.47 MB / 0.573 GB Notification: Performance of matching and sorting (n=108): time 0.002025/0.4196, allocations: 1.17 MB / 0.6761 GB, free: 21.27 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.4197, allocations: 118.5 kB / 0.6763 GB, free: 21.14 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009513/0.4206, allocations: 1.095 MB / 0.6773 GB, free: 20.89 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.4207, allocations: 44.17 kB / 0.6774 GB, free: 20.86 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003477/0.421, allocations: 0.7211 MB / 0.6781 GB, free: 20.59 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.4212, allocations: 395.5 kB / 0.6784 GB, free: 20.33 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002061/0.4214, allocations: 210.8 kB / 0.6786 GB, free: 20.3 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4215, allocations: 0.5122 MB / 0.6791 GB, free: 19.82 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003136/0.4218, allocations: 170.9 kB / 0.6793 GB, free: 19.82 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007306/0.4226, allocations: 0.5759 MB / 0.6799 GB, free: 19.36 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006741/0.4232, allocations: 0.6015 MB / 0.6805 GB, free: 19.16 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.4232, allocations: 1.906 kB / 0.6805 GB, free: 19.16 MB / 0.573 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001177/0.4244, allocations: 0.9614 MB / 0.6814 GB, free: 18.96 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.4244, allocations: 12.56 kB / 0.6814 GB, free: 18.96 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.4244, allocations: 8.625 kB / 0.6814 GB, free: 18.96 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003244/0.4248, allocations: 150.8 kB / 0.6816 GB, free: 18.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003878/0.4252, allocations: 208.8 kB / 0.6818 GB, free: 18.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/0.4284, allocations: 8.889 MB / 0.6904 GB, free: 10.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.4288, allocations: 94.42 kB / 0.6905 GB, free: 10.21 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.721e-05/0.4289, allocations: 49.38 kB / 0.6906 GB, free: 10.21 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.000244/0.4291, allocations: 209.9 kB / 0.6908 GB, free: 10.05 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.4293, allocations: 196.3 kB / 0.691 GB, free: 9.969 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.4308, allocations: 1.597 MB / 0.6925 GB, free: 9.449 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.4309, allocations: 10.72 kB / 0.6925 GB, free: 9.449 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4309, allocations: 5.234 kB / 0.6925 GB, free: 9.449 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.4309, allocations: 3.141 kB / 0.6925 GB, free: 9.449 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.4328, allocations: 1.976 MB / 0.6945 GB, free: 8.656 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4328, allocations: 3.531 kB / 0.6945 GB, free: 8.656 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.4331, allocations: 123.5 kB / 0.6946 GB, free: 8.656 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002621/0.4333, allocations: 171.9 kB / 0.6948 GB, free: 8.586 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.915e-05/0.4334, allocations: 26.06 kB / 0.6948 GB, free: 8.586 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003295/0.4367, allocations: 8.901 MB / 0.7035 GB, free: 15.93 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4367, allocations: 2.562 kB / 0.7035 GB, free: 15.93 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.4378, allocations: 1.382 MB / 0.7048 GB, free: 15.19 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002209/0.4381, allocations: 231.5 kB / 0.7051 GB, free: 15.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.979e-05/0.4381, allocations: 30.3 kB / 0.7051 GB, free: 15.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.4384, allocations: 22.81 kB / 0.7051 GB, free: 15.09 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.32e-05/0.4385, allocations: 76.84 kB / 0.7052 GB, free: 15.09 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.4385, allocations: 30.84 kB / 0.7052 GB, free: 15.09 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0005427/0.4391, allocations: 0.7354 MB / 0.7059 GB, free: 14.94 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.4391, allocations: 0.875 kB / 0.7059 GB, free: 14.94 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0008932/0.44, allocations: 0.4895 MB / 0.7064 GB, free: 14.87 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.001115/0.4411, allocations: 0.7222 MB / 0.7071 GB, free: 14.68 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001081/0.4422, allocations: 1.401 MB / 0.7085 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4422, allocations: 1.094 kB / 0.7085 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0006093/0.4428, allocations: 1.13 MB / 0.7096 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.4442, allocations: 0.5764 MB / 0.7101 GB, free: 12.84 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.447, allocations: 2.603 MB / 0.7127 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.4472, allocations: 258.4 kB / 0.7129 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0005337/0.4477, allocations: 281.2 kB / 0.7132 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.4479, allocations: 128.8 kB / 0.7133 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of SimCode: time 9.92e-07/0.4479, allocations: 0 / 0.7133 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of Templates: time 0.02863/0.4766, allocations: 26.37 MB / 0.7391 GB, free: 2.164 MB / 0.5886 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.386399100068957]