Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.007523/0.007523, allocations: 101.7 kB / 15.73 MB, free: 6.449 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.001621/0.001621, allocations: 194.1 kB / 16.68 MB, free: 6.352 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.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7967/0.7967, allocations: 93.71 MB / 384.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 83.81 kB / 0.5204 GB, free: 5.789 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1711, allocations: 68.26 MB / 0.5871 GB, free: 1.449 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.4244/0.5955, allocations: 39.37 MB / 0.6255 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01673/0.6123, allocations: 8.686 MB / 0.634 GB, free: 7.375 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002473/0.6149, allocations: 34.59 kB / 0.6341 GB, free: 7.363 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.6173, allocations: 0.5237 MB / 0.6346 GB, free: 7.051 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006569/0.624, allocations: 1.322 MB / 0.6359 GB, free: 6.234 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004115/0.6281, allocations: 0.891 MB / 0.6367 GB, free: 5.688 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004556/0.6327, allocations: 1.989 MB / 0.6387 GB, free: 4.516 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008099/0.6336, allocations: 257.8 kB / 0.6389 GB, free: 4.383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004304/0.6379, allocations: 1.125 MB / 0.64 GB, free: 3.691 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00257/0.6405, allocations: 0.7239 MB / 0.6407 GB, free: 3.227 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006802/0.6412, allocations: 96.69 kB / 0.6408 GB, free: 3.227 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004458/0.6457, allocations: 0.8527 MB / 0.6416 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007559/0.6465, allocations: 266.6 kB / 0.6419 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001977/0.6485, allocations: 0.6228 MB / 0.6425 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006277/0.6548, allocations: 1.837 MB / 0.6443 GB, free: 1.066 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.6548, allocations: 0 / 0.6443 GB, free: 1.066 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.6548, allocations: 5.312 kB / 0.6443 GB, free: 1.062 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.955e-05/0.6549, allocations: 0 / 0.6443 GB, free: 1.062 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.005039/0.66, allocations: 1.706 MB / 0.646 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.6601, allocations: 8.781 kB / 0.646 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006064/0.6607, allocations: 159.5 kB / 0.6461 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001858/0.6625, allocations: 0.8424 MB / 0.647 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.6627, allocations: 96.42 kB / 0.647 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.6628, allocations: 84.47 kB / 0.6471 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.6648, allocations: 0.9973 MB / 0.6481 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/0.6649, allocations: 3.938 kB / 0.6481 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.665, allocations: 37.62 kB / 0.6481 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.665, allocations: 24.61 kB / 0.6482 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.6669, allocations: 0.884 MB / 0.649 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007218/0.6741, allocations: 4.616 MB / 0.6535 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.6765, allocations: 1.009 MB / 0.6545 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009218/0.6775, allocations: 465 kB / 0.655 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004891/0.6824, allocations: 2.988 MB / 0.6579 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/0.6825, allocations: 51.8 kB / 0.6579 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 3.747e-06/0.6825, allocations: 0 / 0.6579 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.01196/0.6944, allocations: 4.277 MB / 0.6621 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.672e-05/0.6946, allocations: 92.64 kB / 0.6622 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.696, allocations: 0.7663 MB / 0.6629 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001893/0.6962, allocations: 51.45 kB / 0.663 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000437/0.6967, allocations: 485.4 kB / 0.6635 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004126/0.6971, allocations: 408.6 kB / 0.6638 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003952/0.6975, allocations: 180.5 kB / 0.664 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000177/0.6977, allocations: 351 kB / 0.6644 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000945/0.6986, allocations: 379.7 kB / 0.6647 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.6998, allocations: 0.5465 MB / 0.6652 GB, free: 0.5742 MB / 0.4981 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.002353/0.7021, allocations: 1.057 MB / 0.6663 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.719e-06/0.7022, allocations: 1.188 kB / 0.6663 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003829/0.706, allocations: 1.472 MB / 0.6677 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.706, allocations: 8 kB / 0.6677 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.051e-05/0.7061, allocations: 4 kB / 0.6677 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/0.7074, allocations: 348.8 kB / 0.6681 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008477/0.7083, allocations: 199.7 kB / 0.6683 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/0.7207, allocations: 12.6 MB / 0.6806 GB, free: 0.5078 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.7223, allocations: 44.09 kB / 0.6806 GB, free: 476 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/0.7226, allocations: 43.98 kB / 0.6806 GB, free: 432 kB / 0.5137 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.000836/0.7234, allocations: 253.5 kB / 0.6809 GB, free: 168 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006313/0.7241, allocations: 131.2 kB / 0.681 GB, free: 36 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004203/0.7283, allocations: 1.6 MB / 0.6826 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/0.7284, allocations: 12 kB / 0.6826 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.969e-05/0.7284, allocations: 7.938 kB / 0.6826 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.7284, allocations: 7.969 kB / 0.6826 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006248/0.7347, allocations: 2.729 MB / 0.6853 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/0.7347, allocations: 4 kB / 0.6853 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008048/0.7355, allocations: 179.8 kB / 0.6854 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001286/0.7369, allocations: 359 kB / 0.6858 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.737, allocations: 35.97 kB / 0.6858 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/0.7487, allocations: 12.6 MB / 0.6981 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.7488, allocations: 32 / 0.6981 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005216/0.754, allocations: 2.112 MB / 0.7002 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004688/0.7545, allocations: 180.3 kB / 0.7004 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003297/0.7549, allocations: 20 kB / 0.7004 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009282/0.7558, allocations: 55.89 kB / 0.7004 GB, free: 10.81 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003416/0.7562, allocations: 104.8 kB / 0.7005 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.7563, allocations: 39.98 kB / 0.7006 GB, free: 10.67 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009541/0.7573, allocations: 0.5349 MB / 0.7011 GB, free: 10.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7573, allocations: 0 / 0.7011 GB, free: 10.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002418/0.7597, allocations: 471.3 kB / 0.7015 GB, free: 9.66 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.001155/0.7609, allocations: 466.2 kB / 0.702 GB, free: 9.195 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.004061/0.7649, allocations: 2.071 MB / 0.704 GB, free: 7.012 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/0.765, allocations: 4 kB / 0.704 GB, free: 7.008 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002781/0.7678, allocations: 1.598 MB / 0.7056 GB, free: 5.293 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/0.7702, allocations: 370.3 kB / 0.7059 GB, free: 4.938 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005576/0.7758, allocations: 2.59 MB / 0.7084 GB, free: 2.32 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008973/0.7768, allocations: 1.087 MB / 0.7095 GB, free: 1.207 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001042/0.7778, allocations: 204.5 kB / 0.7097 GB, free: 1.004 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004063/0.7783, allocations: 103.4 kB / 0.7098 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of SimCode: time 6.81e-07/0.7783, allocations: 0 / 0.7098 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of Templates: time 0.04501/0.8233, allocations: 24.12 MB / 0.7334 GB, free: 8.953 MB / 0.5762 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches