Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 109.9 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 183 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7007/0.7007, allocations: 91.19 MB / 382.4 MB, free: 7.543 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 75.88 kB / 0.5175 GB, free: 4.121 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.344, allocations: 67.68 MB / 0.5836 GB, free: 13.87 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03397/0.378, allocations: 41.11 MB / 0.6238 GB, free: 4.914 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007853/0.3859, allocations: 5.331 MB / 0.629 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.3874, allocations: 43.69 kB / 0.629 GB, free: 15.52 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.3889, allocations: 0.5394 MB / 0.6295 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004057/0.3931, allocations: 1.34 MB / 0.6308 GB, free: 13.63 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002531/0.3956, allocations: 0.8767 MB / 0.6317 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002869/0.3985, allocations: 2.124 MB / 0.6338 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00058/0.3991, allocations: 272.9 kB / 0.634 GB, free: 10.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003179/0.4023, allocations: 1.303 MB / 0.6353 GB, free: 9.035 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.4038, allocations: 0.7778 MB / 0.6361 GB, free: 8.254 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004059/0.4042, allocations: 104 kB / 0.6362 GB, free: 8.152 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002478/0.4067, allocations: 0.7413 MB / 0.6369 GB, free: 7.41 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004527/0.4072, allocations: 266.8 kB / 0.6371 GB, free: 7.148 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001076/0.4083, allocations: 0.6451 MB / 0.6378 GB, free: 6.5 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00428/0.4125, allocations: 1.847 MB / 0.6396 GB, free: 4.652 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.4126, allocations: 0 / 0.6396 GB, free: 4.652 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4126, allocations: 0 / 0.6396 GB, free: 4.652 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.84e-05/0.4127, allocations: 4 kB / 0.6396 GB, free: 4.648 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00415/0.4168, allocations: 1.651 MB / 0.6412 GB, free: 2.945 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.4169, allocations: 8.031 kB / 0.6412 GB, free: 2.938 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005234/0.4174, allocations: 147.2 kB / 0.6413 GB, free: 2.793 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.4193, allocations: 0.8638 MB / 0.6422 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.824e-05/0.4194, allocations: 82.11 kB / 0.6423 GB, free: 1.805 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.4195, allocations: 95.91 kB / 0.6423 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00202/0.4216, allocations: 1.077 MB / 0.6434 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.4216, allocations: 4 kB / 0.6434 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-05/0.4217, allocations: 36 kB / 0.6434 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.343e-05/0.4217, allocations: 24 kB / 0.6435 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.4235, allocations: 1.008 MB / 0.6444 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006186/0.4297, allocations: 4.747 MB / 0.6491 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001998/0.4317, allocations: 0.9314 MB / 0.65 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.4329, allocations: 0.495 MB / 0.6505 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005374/0.4383, allocations: 3.469 MB / 0.6539 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.4383, allocations: 43.12 kB / 0.6539 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 2.836e-06/0.4383, allocations: 0 / 0.6539 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.01075/0.4491, allocations: 4.434 MB / 0.6582 GB, free: 348 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.4492, allocations: 94.2 kB / 0.6583 GB, free: 236 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.4502, allocations: 0.7516 MB / 0.6591 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.4504, allocations: 49.7 kB / 0.6591 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004039/0.4508, allocations: 484.6 kB / 0.6596 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003321/0.4511, allocations: 417.9 kB / 0.66 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003087/0.4514, allocations: 194.9 kB / 0.6602 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4516, allocations: 353.9 kB / 0.6605 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009026/0.4525, allocations: 414.4 kB / 0.6609 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.4535, allocations: 0.5662 MB / 0.6614 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001982/0.4555, allocations: 1.044 MB / 0.6625 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.4555, allocations: 4 kB / 0.6625 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003341/0.4589, allocations: 1.495 MB / 0.6639 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.4589, allocations: 8.438 kB / 0.6639 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.459, allocations: 11.94 kB / 0.6639 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.46, allocations: 314.5 kB / 0.6642 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009109/0.461, allocations: 235.7 kB / 0.6645 GB, free: 9.734 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009814/0.4708, allocations: 12.13 MB / 0.6763 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009907/0.4718, allocations: 52.03 kB / 0.6764 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002089/0.472, allocations: 51.98 kB / 0.6764 GB, free: 12.39 MB / 0.5294 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 (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (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.0005787/0.4726, allocations: 252.2 kB / 0.6766 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000331/0.473, allocations: 122.6 kB / 0.6768 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00412/0.4771, allocations: 1.868 MB / 0.6786 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.4771, allocations: 12 kB / 0.6786 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/0.4772, allocations: 7.938 kB / 0.6786 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.4772, allocations: 3.984 kB / 0.6786 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005935/0.4831, allocations: 2.886 MB / 0.6814 GB, free: 7.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.4832, allocations: 4 kB / 0.6814 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009495/0.4841, allocations: 207.7 kB / 0.6816 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.4852, allocations: 318.7 kB / 0.6819 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/0.4854, allocations: 43.97 kB / 0.682 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.4956, allocations: 12.14 MB / 0.6938 GB, free: 9.246 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.4957, allocations: 4.219 kB / 0.6938 GB, free: 9.242 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005156/0.5008, allocations: 2.175 MB / 0.696 GB, free: 7.012 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004263/0.5013, allocations: 187.7 kB / 0.6961 GB, free: 6.809 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002767/0.5016, allocations: 35.84 kB / 0.6962 GB, free: 6.773 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00099/0.5026, allocations: 51.95 kB / 0.6962 GB, free: 6.723 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003066/0.5029, allocations: 100.9 kB / 0.6963 GB, free: 6.625 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.5031, allocations: 55.97 kB / 0.6964 GB, free: 6.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000961/0.504, allocations: 0.5551 MB / 0.6969 GB, free: 6.004 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.504, allocations: 0 / 0.6969 GB, free: 6.004 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001891/0.5059, allocations: 435.9 kB / 0.6973 GB, free: 5.578 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000935/0.5069, allocations: 423.7 kB / 0.6977 GB, free: 5.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.004003/0.5109, allocations: 2.079 MB / 0.6998 GB, free: 2.984 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/0.5109, allocations: 7.938 kB / 0.6998 GB, free: 2.977 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002862/0.5138, allocations: 1.601 MB / 0.7013 GB, free: 1.27 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.5162, allocations: 359.3 kB / 0.7017 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005673/0.5218, allocations: 2.686 MB / 0.7043 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009212/0.5228, allocations: 1.096 MB / 0.7054 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004866/0.5233, allocations: 127.4 kB / 0.7055 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of SimCode: time 8.11e-07/0.5233, allocations: 0 / 0.7055 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of Templates: time 0.3452/0.8685, allocations: 55.4 MB / 0.7596 GB, free: 154.2 MB / 0.5919 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches