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.001437/0.001437, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001453/0.001454, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6889/0.6889, allocations: 91.19 MB / 382.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 79.88 kB / 0.5175 GB, free: 4.137 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3101, allocations: 67.7 MB / 0.5836 GB, free: 13.96 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.0341/0.3442, allocations: 39.36 MB / 0.622 GB, free: 6.684 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01157/0.3558, allocations: 8.658 MB / 0.6305 GB, free: 14 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.3573, allocations: 39.75 kB / 0.6305 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001744/0.3591, allocations: 0.5238 MB / 0.6311 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00421/0.3633, allocations: 1.312 MB / 0.6323 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002707/0.3661, allocations: 0.8918 MB / 0.6332 GB, free: 11.22 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002825/0.3689, allocations: 1.965 MB / 0.6351 GB, free: 9.242 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005166/0.3694, allocations: 259.8 kB / 0.6354 GB, free: 8.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0025/0.3719, allocations: 1.132 MB / 0.6365 GB, free: 7.844 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001238/0.3732, allocations: 0.7272 MB / 0.6372 GB, free: 7.113 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003266/0.3735, allocations: 96 kB / 0.6373 GB, free: 7.02 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002444/0.376, allocations: 0.8621 MB / 0.6381 GB, free: 6.156 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003725/0.3764, allocations: 254.9 kB / 0.6384 GB, free: 5.906 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009158/0.3773, allocations: 0.6256 MB / 0.639 GB, free: 5.277 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003329/0.3806, allocations: 1.817 MB / 0.6407 GB, free: 3.457 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3807, allocations: 0 / 0.6407 GB, free: 3.457 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3807, allocations: 0 / 0.6407 GB, free: 3.457 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.84e-05/0.3807, allocations: 0 / 0.6407 GB, free: 3.457 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.003464/0.3842, allocations: 1.651 MB / 0.6424 GB, free: 1.754 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.3842, allocations: 8.031 kB / 0.6424 GB, free: 1.746 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004424/0.3847, allocations: 151.3 kB / 0.6425 GB, free: 1.598 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/0.3862, allocations: 0.8198 MB / 0.6433 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-05/0.3863, allocations: 95.7 kB / 0.6434 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.3864, allocations: 91.89 kB / 0.6435 GB, free: 0.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.3883, allocations: 0.9917 MB / 0.6445 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.3883, allocations: 3.938 kB / 0.6445 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.73e-05/0.3884, allocations: 40 kB / 0.6445 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.3885, allocations: 20 kB / 0.6445 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.3901, allocations: 0.8861 MB / 0.6454 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005797/0.3959, allocations: 4.612 MB / 0.6499 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002027/0.398, allocations: 1.006 MB / 0.6509 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007734/0.3988, allocations: 468.9 kB / 0.6513 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003567/0.4024, allocations: 2.987 MB / 0.6542 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.4024, allocations: 46.94 kB / 0.6543 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 2.735e-06/0.4024, allocations: 0 / 0.6543 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.009595/0.412, allocations: 4.249 MB / 0.6584 GB, free: 184 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.4121, allocations: 90.11 kB / 0.6585 GB, free: 76 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009343/0.4131, allocations: 0.7594 MB / 0.6593 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.641e-05/0.4132, allocations: 49.7 kB / 0.6593 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003133/0.4135, allocations: 472.5 kB / 0.6598 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.4138, allocations: 386.2 kB / 0.6601 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002837/0.4141, allocations: 186.9 kB / 0.6603 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4142, allocations: 349.9 kB / 0.6606 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007839/0.415, allocations: 382.4 kB / 0.661 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009059/0.4159, allocations: 0.5366 MB / 0.6615 GB, free: 12.89 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.001886/0.4178, allocations: 1.061 MB / 0.6626 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.4178, allocations: 4 kB / 0.6626 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003159/0.421, allocations: 1.462 MB / 0.664 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.421, allocations: 6.969 kB / 0.664 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/0.421, allocations: 8 kB / 0.664 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.4222, allocations: 347.1 kB / 0.6643 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007846/0.423, allocations: 199.7 kB / 0.6645 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009679/0.4327, allocations: 12.58 MB / 0.6768 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009307/0.4337, allocations: 40.03 kB / 0.6769 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.4339, allocations: 55.97 kB / 0.6769 GB, free: 11.89 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.0005801/0.4345, allocations: 258.8 kB / 0.6772 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003112/0.4348, allocations: 110.6 kB / 0.6773 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003668/0.4385, allocations: 1.601 MB / 0.6788 GB, free: 9.887 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.4385, allocations: 12 kB / 0.6788 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/0.4385, allocations: 8 kB / 0.6788 GB, free: 9.867 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.4385, allocations: 7.969 kB / 0.6789 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005067/0.4436, allocations: 2.715 MB / 0.6815 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.4436, allocations: 4 kB / 0.6815 GB, free: 7.051 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007778/0.4444, allocations: 179.8 kB / 0.6817 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.4456, allocations: 362.6 kB / 0.682 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.7e-05/0.4457, allocations: 31.98 kB / 0.6821 GB, free: 6.465 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009844/0.4556, allocations: 12.6 MB / 0.6944 GB, free: 8.754 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4556, allocations: 4.031 kB / 0.6944 GB, free: 8.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004395/0.46, allocations: 2.094 MB / 0.6964 GB, free: 6.609 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003647/0.4604, allocations: 179.6 kB / 0.6966 GB, free: 6.414 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002103/0.4606, allocations: 23.98 kB / 0.6966 GB, free: 6.391 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008242/0.4614, allocations: 55.89 kB / 0.6967 GB, free: 6.336 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.4617, allocations: 100.8 kB / 0.6967 GB, free: 6.234 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.4618, allocations: 43.97 kB / 0.6968 GB, free: 6.191 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007506/0.4626, allocations: 0.5306 MB / 0.6973 GB, free: 5.648 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.8e-07/0.4626, allocations: 0 / 0.6973 GB, free: 5.648 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001634/0.4642, allocations: 467.8 kB / 0.6978 GB, free: 5.191 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.0008399/0.4651, allocations: 459.3 kB / 0.6982 GB, free: 4.734 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003446/0.4685, allocations: 2.067 MB / 0.7002 GB, free: 2.559 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.4686, allocations: 8 kB / 0.7002 GB, free: 2.551 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002345/0.4709, allocations: 1.59 MB / 0.7018 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001807/0.4727, allocations: 370.2 kB / 0.7021 GB, free: 500 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00487/0.4776, allocations: 2.577 MB / 0.7046 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008922/0.4785, allocations: 1.079 MB / 0.7057 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003916/0.4789, allocations: 115.4 kB / 0.7058 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of SimCode: time 8.81e-07/0.479, allocations: 0 / 0.7058 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of Templates: time 0.3134/0.7924, allocations: 52.65 MB / 0.7572 GB, free: 155.6 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