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.00129/0.00129, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001493/0.001493, allocations: 216.4 kB / 23.02 MB, free: 4.945 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.453/1.453, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.8098/0.8098, allocations: 100.3 MB / 413.6 MB, free: 3.426 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: "" <> buildModelFMU(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",fmuType="cs",version="2.0",platforms={"static"}) [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.002499/0.002499, allocations: 87.83 kB / 0.564 GB, free: 35.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1395, allocations: 74.45 MB / 0.6367 GB, free: 7.41 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.5046/0.6441, allocations: 150.1 MB / 0.7833 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01205/0.6562, allocations: 10.51 MB / 0.7935 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001994/0.6582, allocations: 97.81 kB / 0.7936 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002347/0.6605, allocations: 0.8286 MB / 0.7944 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004819/0.6653, allocations: 1.747 MB / 0.7962 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003791/0.6691, allocations: 1.352 MB / 0.7975 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003703/0.6728, allocations: 2.601 MB / 0.8 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007195/0.6736, allocations: 241.2 kB / 0.8002 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003267/0.6768, allocations: 1.484 MB / 0.8017 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002053/0.6789, allocations: 1.163 MB / 0.8028 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004704/0.6793, allocations: 109.9 kB / 0.8029 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004009/0.6833, allocations: 1.569 MB / 0.8045 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005414/0.6839, allocations: 336.6 kB / 0.8048 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001499/0.6854, allocations: 0.6483 MB / 0.8054 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005554/0.6909, allocations: 2.485 MB / 0.8078 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.6909, allocations: 0 / 0.8078 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.563e-06/0.691, allocations: 0.6875 kB / 0.8078 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.292e-05/0.691, allocations: 0 / 0.8078 GB, free: 1.488 MB / 0.5762 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.004219/0.6952, allocations: 2.089 MB / 0.8099 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/0.6953, allocations: 10.53 kB / 0.8099 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.182e-05/0.6953, allocations: 28.09 kB / 0.8099 GB, free: 16.24 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001745/0.6955, allocations: 164 kB / 0.8101 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006335/0.6961, allocations: 233.2 kB / 0.8103 GB, free: 16.02 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/0.6985, allocations: 1.141 MB / 0.8114 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.999e-05/0.6986, allocations: 81.22 kB / 0.8115 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001597/0.6988, allocations: 116.4 kB / 0.8116 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/0.7007, allocations: 1.232 MB / 0.8128 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.7008, allocations: 1.547 kB / 0.8128 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.815e-05/0.7009, allocations: 44.47 kB / 0.8129 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.7009, allocations: 26.48 kB / 0.8129 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001812/0.7027, allocations: 1.096 MB / 0.8139 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006561/0.7093, allocations: 3.882 MB / 0.8177 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.7107, allocations: 0.7059 MB / 0.8184 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005803/0.7113, allocations: 390.8 kB / 0.8188 GB, free: 11.44 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003315/0.7146, allocations: 1.519 MB / 0.8203 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.7146, allocations: 44.56 kB / 0.8203 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=108): time 2.946e-06/0.7146, allocations: 0 / 0.8203 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of matching and sorting (n=108): time 0.003373/0.718, allocations: 1.462 MB / 0.8218 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.7181, allocations: 114.3 kB / 0.8219 GB, free: 9.766 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/0.7196, allocations: 1.292 MB / 0.8231 GB, free: 9.285 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.908e-05/0.7197, allocations: 44.86 kB / 0.8232 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005678/0.7202, allocations: 0.6271 MB / 0.8238 GB, free: 8.738 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003278/0.7206, allocations: 396.5 kB / 0.8242 GB, free: 8.434 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003495/0.7209, allocations: 196.6 kB / 0.8243 GB, free: 8.34 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.7211, allocations: 346.8 kB / 0.8247 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005164/0.7216, allocations: 302.2 kB / 0.825 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007175/0.7223, allocations: 0.5043 MB / 0.8255 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.7235, allocations: 0.7943 MB / 0.8262 GB, free: 7.113 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.7235, allocations: 2.875 kB / 0.8262 GB, free: 7.113 MB / 0.5919 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002232/0.7258, allocations: 1.171 MB / 0.8274 GB, free: 6.613 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.7258, allocations: 12.5 kB / 0.8274 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.7258, allocations: 5.469 kB / 0.8274 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005301/0.7263, allocations: 160 kB / 0.8275 GB, free: 6.543 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000725/0.7271, allocations: 205.4 kB / 0.8277 GB, free: 6.531 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00597/0.733, allocations: 6.721 MB / 0.8343 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.7344, allocations: 113.6 kB / 0.8344 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.7346, allocations: 45.11 kB / 0.8345 GB, free: 15.81 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.0008433/0.7354, allocations: 316.2 kB / 0.8348 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000466/0.7359, allocations: 178.1 kB / 0.8349 GB, free: 15.49 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002874/0.7387, allocations: 1.671 MB / 0.8366 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.7388, allocations: 8.188 kB / 0.8366 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.7388, allocations: 6.844 kB / 0.8366 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.7388, allocations: 3.984 kB / 0.8366 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003483/0.7423, allocations: 2.086 MB / 0.8386 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.7423, allocations: 6.531 kB / 0.8386 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004893/0.7428, allocations: 120.8 kB / 0.8387 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005152/0.7433, allocations: 168.5 kB / 0.8389 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-05/0.7433, allocations: 30.11 kB / 0.8389 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00565/0.749, allocations: 6.714 MB / 0.8455 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.749, allocations: 2.719 kB / 0.8455 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.7517, allocations: 1.555 MB / 0.847 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006201/0.7524, allocations: 256.2 kB / 0.8473 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.7526, allocations: 39.59 kB / 0.8473 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005945/0.7532, allocations: 20.56 kB / 0.8473 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.7533, allocations: 74.53 kB / 0.8474 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-05/0.7534, allocations: 32.59 kB / 0.8474 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0013/0.7547, allocations: 0.9966 MB / 0.8484 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7547, allocations: 0 / 0.8484 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001386/0.7561, allocations: 443 kB / 0.8488 GB, free: 4.129 MB / 0.6075 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.004634/0.7607, allocations: 2.753 MB / 0.8515 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002269/0.763, allocations: 1.283 MB / 0.8527 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.763, allocations: 1.938 kB / 0.8527 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.7643, allocations: 0.9061 MB / 0.8536 GB, free: 0.7773 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00275/0.7671, allocations: 490.8 kB / 0.8541 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01903/0.7861, allocations: 10.98 MB / 0.8648 GB, free: 5.238 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007385/0.7868, allocations: 0.6246 MB / 0.8654 GB, free: 4.574 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001075/0.7879, allocations: 303.9 kB / 0.8657 GB, free: 4.324 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008686/0.7888, allocations: 0.6086 MB / 0.8663 GB, free: 3.715 MB / 0.6231 GB Notification: Performance of SimCode: time 7.12e-07/0.7888, allocations: 0 / 0.8663 GB, free: 3.715 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09913/0.8879, allocations: 41.34 MB / 0.9067 GB, free: 10.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.5/15.39, allocations: 3.188 kB / 0.9067 GB, free: 10.8 MB / 0.67 GB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 1260.0] 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: 19.326790314982645]