Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 112.8 kB / 16.41 MB, free: 6.484 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.001201/0.001201, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.279/1.279, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7391/0.7391, allocations: 91.19 MB / 382.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 71.89 kB / 0.5175 GB, free: 4.121 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3549, allocations: 67.69 MB / 0.5836 GB, free: 14.18 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.03603/0.391, allocations: 39.37 MB / 0.622 GB, free: 6.793 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.4017, allocations: 8.662 MB / 0.6305 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.4028, allocations: 35.75 kB / 0.6305 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001346/0.4041, allocations: 0.5238 MB / 0.6311 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003526/0.4077, allocations: 1.305 MB / 0.6323 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002266/0.41, allocations: 0.8957 MB / 0.6332 GB, free: 11.33 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002046/0.412, allocations: 1.957 MB / 0.6351 GB, free: 9.363 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003832/0.4124, allocations: 272 kB / 0.6354 GB, free: 9.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001938/0.4144, allocations: 1.136 MB / 0.6365 GB, free: 7.949 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007363/0.4151, allocations: 0.7272 MB / 0.6372 GB, free: 7.219 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.4153, allocations: 96 kB / 0.6373 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001986/0.4173, allocations: 0.8465 MB / 0.6381 GB, free: 6.277 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.4175, allocations: 258.9 kB / 0.6384 GB, free: 6.023 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005667/0.4181, allocations: 0.6295 MB / 0.639 GB, free: 5.391 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002203/0.4203, allocations: 1.821 MB / 0.6408 GB, free: 3.566 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.4203, allocations: 0 / 0.6408 GB, free: 3.566 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4203, allocations: 11.92 kB / 0.6408 GB, free: 3.555 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.4203, allocations: 0 / 0.6408 GB, free: 3.555 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: 211 * Number of variables: 211 Notification: Performance of Generate backend data structure: time 0.002924/0.4233, allocations: 1.647 MB / 0.6424 GB, free: 1.855 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.4233, allocations: 8.031 kB / 0.6424 GB, free: 1.848 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003495/0.4237, allocations: 143.3 kB / 0.6425 GB, free: 1.707 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.425, allocations: 0.8198 MB / 0.6433 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.575e-05/0.4251, allocations: 91.7 kB / 0.6434 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.4252, allocations: 91.91 kB / 0.6435 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.4268, allocations: 0.9956 MB / 0.6445 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.4269, allocations: 0 / 0.6445 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.36e-05/0.427, allocations: 40 kB / 0.6445 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.427, allocations: 20 kB / 0.6445 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00154/0.4285, allocations: 0.8939 MB / 0.6454 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00543/0.434, allocations: 4.604 MB / 0.6499 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.4359, allocations: 1.008 MB / 0.6509 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007414/0.4367, allocations: 465 kB / 0.6513 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003435/0.4401, allocations: 2.991 MB / 0.6542 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.4402, allocations: 43 kB / 0.6543 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 2.325e-06/0.4402, allocations: 0 / 0.6543 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.009021/0.4492, allocations: 4.257 MB / 0.6584 GB, free: 296 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.4493, allocations: 94.11 kB / 0.6585 GB, free: 184 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008639/0.4502, allocations: 0.7517 MB / 0.6593 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.199e-05/0.4503, allocations: 49.69 kB / 0.6593 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003215/0.4506, allocations: 464.6 kB / 0.6598 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002721/0.4509, allocations: 390.2 kB / 0.6601 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.4512, allocations: 186.9 kB / 0.6603 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4513, allocations: 349.9 kB / 0.6606 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007534/0.4521, allocations: 382.5 kB / 0.661 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008753/0.4529, allocations: 0.5473 MB / 0.6615 GB, free: 13 MB / 0.5137 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: conductionElement.deltaE_system = $START.conductionElement.deltaE_system (0.0 = $START.conductionElement.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.001808/0.4548, allocations: 1.061 MB / 0.6626 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4548, allocations: 7.938 kB / 0.6626 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002939/0.4577, allocations: 1.458 MB / 0.664 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.4577, allocations: 8 kB / 0.664 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.4578, allocations: 4.5 kB / 0.664 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.4589, allocations: 354.6 kB / 0.6644 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000742/0.4596, allocations: 187.8 kB / 0.6645 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009711/0.4693, allocations: 12.59 MB / 0.6768 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007997/0.4702, allocations: 39.97 kB / 0.6769 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.605e-05/0.4703, allocations: 43.98 kB / 0.6769 GB, free: 12.02 MB / 0.5294 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: conductionElement.deltaE_system = $START.conductionElement.deltaE_system. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (110): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,6,100.0%), (1,4,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004792/0.4708, allocations: 257.6 kB / 0.6771 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002145/0.471, allocations: 114.6 kB / 0.6773 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003382/0.4744, allocations: 1.601 MB / 0.6788 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.4744, allocations: 15.98 kB / 0.6788 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.4744, allocations: 4 kB / 0.6788 GB, free: 9.98 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.4744, allocations: 3.984 kB / 0.6788 GB, free: 9.977 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004632/0.4791, allocations: 2.723 MB / 0.6815 GB, free: 7.164 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.4791, allocations: 144 / 0.6815 GB, free: 7.164 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007264/0.4798, allocations: 179.8 kB / 0.6817 GB, free: 6.988 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.4809, allocations: 366.4 kB / 0.682 GB, free: 6.605 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.741e-05/0.481, allocations: 43.97 kB / 0.6821 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009659/0.4907, allocations: 12.59 MB / 0.6944 GB, free: 8.863 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4907, allocations: 0 / 0.6944 GB, free: 8.863 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004025/0.4947, allocations: 2.095 MB / 0.6964 GB, free: 6.723 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002748/0.495, allocations: 179.6 kB / 0.6966 GB, free: 6.527 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.4951, allocations: 24 kB / 0.6966 GB, free: 6.504 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007259/0.4959, allocations: 60.08 kB / 0.6967 GB, free: 6.445 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.4961, allocations: 100.8 kB / 0.6968 GB, free: 6.344 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.096e-05/0.4962, allocations: 39.98 kB / 0.6968 GB, free: 6.305 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007016/0.4969, allocations: 0.5306 MB / 0.6973 GB, free: 5.762 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4969, allocations: 0 / 0.6973 GB, free: 5.762 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001597/0.4985, allocations: 467.8 kB / 0.6978 GB, free: 5.305 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (reservoir1.M,reservoir1.U_med,pump.m_flow,conductionElement.h,reservoir.M,reservoir.U_med,flowResistance1.inlet.m_flow,flowResistance2.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 (91): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,6,100.0%), (1,4,100.0%), (1,1,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.0008125/0.4993, allocations: 478.9 kB / 0.6982 GB, free: 4.832 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003523/0.5028, allocations: 2.056 MB / 0.7002 GB, free: 2.668 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.5029, allocations: 3.938 kB / 0.7002 GB, free: 2.664 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002289/0.5052, allocations: 1.602 MB / 0.7018 GB, free: 0.9453 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.5068, allocations: 353.3 kB / 0.7021 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004266/0.5111, allocations: 2.584 MB / 0.7046 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/0.5117, allocations: 1.075 MB / 0.7057 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.512, allocations: 111.4 kB / 0.7058 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of SimCode: time 7.71e-07/0.5121, allocations: 0 / 0.7058 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of Templates: time 0.329/0.841, allocations: 52.66 MB / 0.7572 GB, free: 155.8 MB / 0.5919 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches