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.001497/0.001497, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001894/0.001894, allocations: 218.3 kB / 23.04 MB, free: 5.074 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.384/1.384, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.6974/0.6974, allocations: 94.56 MB / 407.8 MB, free: 9.191 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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: "" <> buildModelFMU(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_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_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.00237/0.00237, allocations: 83.8 kB / 0.5557 GB, free: 38.69 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1154, allocations: 73.05 MB / 0.6271 GB, free: 500 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.4614/0.5767, allocations: 173.6 MB / 0.7966 GB, free: 1.527 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01173/0.5885, allocations: 11.56 MB / 0.8079 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002084/0.5905, allocations: 98.69 kB / 0.808 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002012/0.5926, allocations: 0.8944 MB / 0.8089 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004567/0.5971, allocations: 1.772 MB / 0.8106 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003352/0.6005, allocations: 1.373 MB / 0.8119 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003324/0.6038, allocations: 2.616 MB / 0.8145 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005504/0.6043, allocations: 240.6 kB / 0.8147 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00305/0.6074, allocations: 1.483 MB / 0.8162 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00174/0.6091, allocations: 1.159 MB / 0.8173 GB, free: 372 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000259/0.6094, allocations: 108.7 kB / 0.8174 GB, free: 372 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004737/0.6141, allocations: 1.907 MB / 0.8193 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005331/0.6147, allocations: 338.3 kB / 0.8196 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.616, allocations: 0.8121 MB / 0.8204 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006107/0.6221, allocations: 2.522 MB / 0.8229 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.6221, allocations: 0 / 0.8229 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.044e-06/0.6221, allocations: 0 / 0.8229 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.582e-05/0.6222, allocations: 0 / 0.8229 GB, free: 13.95 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.004417/0.6266, allocations: 2.103 MB / 0.8249 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.6266, allocations: 10.12 kB / 0.8249 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.64e-05/0.6267, allocations: 27.5 kB / 0.8249 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001706/0.6269, allocations: 162 kB / 0.8251 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003388/0.6272, allocations: 204.4 kB / 0.8253 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/0.6294, allocations: 1.139 MB / 0.8264 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.579e-05/0.6294, allocations: 88.69 kB / 0.8265 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.6296, allocations: 110.3 kB / 0.8266 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.6313, allocations: 1.189 MB / 0.8278 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.6314, allocations: 3.938 kB / 0.8278 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.724e-05/0.6315, allocations: 50.06 kB / 0.8278 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.6315, allocations: 27.25 kB / 0.8278 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.6331, allocations: 1.098 MB / 0.8289 GB, free: 9.953 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006748/0.6398, allocations: 5.141 MB / 0.8339 GB, free: 5.48 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.6412, allocations: 0.6911 MB / 0.8346 GB, free: 5.082 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006071/0.6418, allocations: 393.9 kB / 0.835 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003588/0.6454, allocations: 1.797 MB / 0.8367 GB, free: 3.504 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.6454, allocations: 44.09 kB / 0.8368 GB, free: 3.457 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=108): time 3.286e-06/0.6454, allocations: 0 / 0.8368 GB, free: 3.457 MB / 0.5919 GB Notification: Performance of matching and sorting (n=108): time 0.003391/0.6488, allocations: 1.467 MB / 0.8382 GB, free: 2.703 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.17e-05/0.6489, allocations: 117.7 kB / 0.8383 GB, free: 2.574 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.6505, allocations: 1.301 MB / 0.8396 GB, free: 1.883 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.305e-05/0.6506, allocations: 46.55 kB / 0.8396 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005264/0.6511, allocations: 0.6243 MB / 0.8402 GB, free: 1.281 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003299/0.6514, allocations: 391.9 kB / 0.8406 GB, free: 0.9453 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.6517, allocations: 198.7 kB / 0.8408 GB, free: 0.8242 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.6519, allocations: 345.8 kB / 0.8411 GB, free: 500 kB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005358/0.6524, allocations: 299.9 kB / 0.8414 GB, free: 356 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007021/0.6531, allocations: 444.7 kB / 0.8418 GB, free: 44 kB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.6545, allocations: 0.7739 MB / 0.8426 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.6545, allocations: 0 / 0.8426 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002253/0.6567, allocations: 1.156 MB / 0.8437 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.6567, allocations: 9.844 kB / 0.8437 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.6568, allocations: 2.094 kB / 0.8437 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005287/0.6573, allocations: 159.6 kB / 0.8439 GB, free: 14.88 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007379/0.658, allocations: 216 kB / 0.8441 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005752/0.6638, allocations: 6.747 MB / 0.8507 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009452/0.6647, allocations: 108 kB / 0.8508 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.6648, allocations: 55.98 kB / 0.8508 GB, free: 7.328 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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.0005684/0.6654, allocations: 306.2 kB / 0.8511 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000357/0.6658, allocations: 170.9 kB / 0.8513 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003006/0.6688, allocations: 1.712 MB / 0.853 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.6688, allocations: 11.98 kB / 0.853 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.6688, allocations: 4 kB / 0.853 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.6688, allocations: 7.984 kB / 0.853 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004194/0.673, allocations: 2.363 MB / 0.8553 GB, free: 2.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.487e-06/0.673, allocations: 4.344 kB / 0.8553 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.6735, allocations: 127.8 kB / 0.8554 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005115/0.674, allocations: 160.1 kB / 0.8556 GB, free: 2.305 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.597e-05/0.6741, allocations: 31.98 kB / 0.8556 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005873/0.68, allocations: 6.75 MB / 0.8622 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.68, allocations: 0 / 0.8622 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002802/0.6828, allocations: 1.592 MB / 0.8638 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00067/0.6835, allocations: 278.5 kB / 0.864 GB, free: 9.023 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.6837, allocations: 31.84 kB / 0.8641 GB, free: 8.992 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005711/0.6842, allocations: 20 kB / 0.8641 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.6844, allocations: 79.73 kB / 0.8641 GB, free: 8.895 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.447e-05/0.6845, allocations: 39.98 kB / 0.8642 GB, free: 8.855 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001367/0.6858, allocations: 0.997 MB / 0.8652 GB, free: 7.867 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.6858, allocations: 0 / 0.8652 GB, free: 7.867 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001525/0.6874, allocations: 463.3 kB / 0.8656 GB, free: 7.414 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 (74): * Single equations (assignments): 69 * 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.004691/0.6921, allocations: 2.79 MB / 0.8683 GB, free: 4.723 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002356/0.6944, allocations: 1.285 MB / 0.8696 GB, free: 3.375 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6944, allocations: 0 / 0.8696 GB, free: 3.375 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001396/0.6958, allocations: 0.9272 MB / 0.8705 GB, free: 2.383 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.6984, allocations: 489.9 kB / 0.871 GB, free: 1.922 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01834/0.7167, allocations: 10.99 MB / 0.8817 GB, free: 6.57 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008918/0.7176, allocations: 1.21 MB / 0.8829 GB, free: 5.332 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001022/0.7186, allocations: 302.1 kB / 0.8832 GB, free: 5.082 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008245/0.7195, allocations: 0.6164 MB / 0.8838 GB, free: 4.465 MB / 0.6387 GB Notification: Performance of SimCode: time 9.62e-07/0.7195, allocations: 0 / 0.8838 GB, free: 4.465 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09345/0.8129, allocations: 40.42 MB / 0.9232 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.58/17.4, allocations: 0 / 0.9232 GB, free: 12.27 MB / 0.6856 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 1260.0] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_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: 20.961837113951333]