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.0007456/0.0007456, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007314/0.0007314, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8427/0.8427, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.6052/0.6052, allocations: 116 MB / 375.2 MB, free: 4.168 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 0.5532 GB, free: 13.36 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.597e-05/2.736e-05, allocations: 6.281 kB / 0.5533 GB, free: 13.35 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.4057/0.4057, allocations: 151 MB / 0.7007 GB, free: 4.594 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.01074/0.4165, allocations: 10.66 MB / 0.7111 GB, free: 14.22 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002054/0.4185, allocations: 95.44 kB / 0.7112 GB, free: 14.17 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.4204, allocations: 0.8568 MB / 0.712 GB, free: 13.52 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.004454/0.4248, allocations: 1.896 MB / 0.7139 GB, free: 11.98 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.002894/0.4277, allocations: 1.389 MB / 0.7152 GB, free: 10.92 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.002968/0.4307, allocations: 2.869 MB / 0.718 GB, free: 9.184 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003966/0.4311, allocations: 233.2 kB / 0.7183 GB, free: 9.031 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002734/0.4338, allocations: 1.916 MB / 0.7201 GB, free: 7.883 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.4351, allocations: 1.054 MB / 0.7212 GB, free: 7.367 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.4352, allocations: 108.7 kB / 0.7213 GB, free: 7.367 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002655/0.4379, allocations: 1.576 MB / 0.7228 GB, free: 6.672 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002258/0.4381, allocations: 348 kB / 0.7231 GB, free: 6.398 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005812/0.4387, allocations: 0.5635 MB / 0.7237 GB, free: 6.141 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.003527/0.4422, allocations: 2.511 MB / 0.7261 GB, free: 4.586 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4422, allocations: 4.125 kB / 0.7262 GB, free: 4.586 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4422, allocations: 0 / 0.7262 GB, free: 4.586 MB / 0.573 GB Notification: Performance of Transformations before backend: time 8.012e-05/0.4423, allocations: 0 / 0.7262 GB, free: 4.586 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.003082/0.4454, allocations: 2.106 MB / 0.7282 GB, free: 3.02 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.4454, allocations: 7.844 kB / 0.7282 GB, free: 3.02 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.4456, allocations: 160.6 kB / 0.7284 GB, free: 2.887 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003846/0.446, allocations: 237 kB / 0.7286 GB, free: 2.77 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/0.4474, allocations: 1.129 MB / 0.7297 GB, free: 1.93 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.4475, allocations: 81.53 kB / 0.7298 GB, free: 1.891 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.53e-05/0.4476, allocations: 107.9 kB / 0.7299 GB, free: 1.855 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.4488, allocations: 1.245 MB / 0.7311 GB, free: 1.016 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.4489, allocations: 0 / 0.7311 GB, free: 1.016 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.115e-05/0.4489, allocations: 42.5 kB / 0.7311 GB, free: 0.9844 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.4489, allocations: 32.7 kB / 0.7312 GB, free: 0.9805 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.45, allocations: 1.093 MB / 0.7322 GB, free: 464 kB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004349/0.4544, allocations: 3.928 MB / 0.7361 GB, free: 13.39 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009302/0.4553, allocations: 0.6982 MB / 0.7368 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00038/0.4557, allocations: 387.5 kB / 0.7371 GB, free: 12.79 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001953/0.4576, allocations: 1.517 MB / 0.7386 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.4576, allocations: 52.94 kB / 0.7387 GB, free: 11.56 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=108): time 2.334e-06/0.4576, allocations: 0 / 0.7387 GB, free: 11.56 MB / 0.5886 GB Notification: Performance of matching and sorting (n=108): time 0.002135/0.4598, allocations: 1.452 MB / 0.7401 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.4598, allocations: 120.9 kB / 0.7402 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/0.4609, allocations: 1.3 MB / 0.7415 GB, free: 10 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.4609, allocations: 40.48 kB / 0.7415 GB, free: 9.961 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.00033/0.4613, allocations: 0.633 MB / 0.7421 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.4615, allocations: 390.8 kB / 0.7425 GB, free: 9.055 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.4616, allocations: 193.4 kB / 0.7427 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.464e-05/0.4617, allocations: 342.4 kB / 0.743 GB, free: 8.609 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004222/0.4622, allocations: 294.1 kB / 0.7433 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004445/0.4626, allocations: 0.5066 MB / 0.7438 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008426/0.4634, allocations: 0.8012 MB / 0.7446 GB, free: 7.59 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.4634, allocations: 6.438 kB / 0.7446 GB, free: 7.59 MB / 0.5886 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001448/0.4649, allocations: 1.174 MB / 0.7457 GB, free: 6.965 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.4649, allocations: 8.969 kB / 0.7457 GB, free: 6.961 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.4649, allocations: 9.781 kB / 0.7457 GB, free: 6.957 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003033/0.4652, allocations: 147.6 kB / 0.7459 GB, free: 6.867 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/0.4656, allocations: 208.8 kB / 0.7461 GB, free: 6.816 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.4692, allocations: 6.715 MB / 0.7526 GB, free: 68 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000598/0.4698, allocations: 106 kB / 0.7527 GB, free: 15.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.419e-05/0.4699, allocations: 44.3 kB / 0.7528 GB, free: 15.97 MB / 0.6042 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.0005277/0.4704, allocations: 316.2 kB / 0.7531 GB, free: 15.73 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.4706, allocations: 181.5 kB / 0.7532 GB, free: 15.64 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002025/0.4726, allocations: 1.683 MB / 0.7549 GB, free: 14.15 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.4727, allocations: 11.98 kB / 0.7549 GB, free: 14.14 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4727, allocations: 4 kB / 0.7549 GB, free: 14.14 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.4727, allocations: 3.984 kB / 0.7549 GB, free: 14.13 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002349/0.475, allocations: 2.084 MB / 0.7569 GB, free: 11.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.475, allocations: 0 / 0.7569 GB, free: 11.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.4753, allocations: 123.8 kB / 0.7571 GB, free: 11.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003674/0.4756, allocations: 160.5 kB / 0.7572 GB, free: 11.65 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.016e-05/0.4757, allocations: 31.97 kB / 0.7572 GB, free: 11.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00358/0.4793, allocations: 6.705 MB / 0.7638 GB, free: 4.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4793, allocations: 256 / 0.7638 GB, free: 4.34 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.481, allocations: 1.551 MB / 0.7653 GB, free: 2.711 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005137/0.4816, allocations: 266.6 kB / 0.7656 GB, free: 2.449 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/0.4817, allocations: 31.84 kB / 0.7656 GB, free: 2.418 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003357/0.482, allocations: 20 kB / 0.7656 GB, free: 2.398 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.4822, allocations: 83.73 kB / 0.7657 GB, free: 2.316 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.635e-05/0.4822, allocations: 35.98 kB / 0.7657 GB, free: 2.281 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0009801/0.4832, allocations: 0.9972 MB / 0.7667 GB, free: 1.293 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6e-08/0.4832, allocations: 0 / 0.7667 GB, free: 1.293 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001224/0.4844, allocations: 475.3 kB / 0.7671 GB, free: 0.8281 MB / 0.6042 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.003136/0.4875, allocations: 2.752 MB / 0.7698 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001505/0.489, allocations: 1.281 MB / 0.7711 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.489, allocations: 0 / 0.7711 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0007731/0.4898, allocations: 0.9071 MB / 0.772 GB, free: 11.86 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.492, allocations: 0.7391 MB / 0.7727 GB, free: 11.14 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.5052, allocations: 10.91 MB / 0.7833 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.5057, allocations: 0.633 MB / 0.784 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0009932/0.5067, allocations: 299.5 kB / 0.7842 GB, free: 14.92 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000537/0.5072, allocations: 0.6175 MB / 0.7848 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of SimCode: time 1.192e-06/0.5072, allocations: 3.938 kB / 0.7849 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08049/0.5877, allocations: 47.38 MB / 0.8311 GB, free: 15.54 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.978/8.566, allocations: 0 / 0.8311 GB, free: 15.54 MB / 0.6823 GB " [Timeout remaining time 651] (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/jenkins/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: 11.06124325003475]