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.00169/0.00169, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001917/0.001917, allocations: 193.5 kB / 16.14 MB, free: 6.645 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.353/1.353, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6853/0.6853, allocations: 91.2 MB / 381.2 MB, free: 9.602 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002475/0.002475, allocations: 81.62 kB / 459.6 MB, free: 23.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1676, allocations: 67.69 MB / 0.515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04241/0.2101, allocations: 42.11 MB / 0.5561 GB, free: 424 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008486/0.2186, allocations: 5.487 MB / 0.5614 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001365/0.22, allocations: 47.69 kB / 0.5615 GB, free: 10.86 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.2216, allocations: 477.4 kB / 0.5619 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003249/0.2248, allocations: 1.235 MB / 0.5632 GB, free: 9.152 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.2269, allocations: 0.7896 MB / 0.5639 GB, free: 8.363 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002779/0.2297, allocations: 2.666 MB / 0.5665 GB, free: 5.688 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.2301, allocations: 257.1 kB / 0.5668 GB, free: 5.426 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002588/0.2327, allocations: 1.194 MB / 0.5679 GB, free: 4.227 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001051/0.2338, allocations: 0.7582 MB / 0.5687 GB, free: 3.465 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002112/0.234, allocations: 64 kB / 0.5687 GB, free: 3.402 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002147/0.2362, allocations: 0.7021 MB / 0.5694 GB, free: 2.699 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003383/0.2365, allocations: 226.9 kB / 0.5696 GB, free: 2.477 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009538/0.2375, allocations: 0.6177 MB / 0.5702 GB, free: 1.855 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00262/0.2401, allocations: 1.721 MB / 0.5719 GB, free: 132 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2401, allocations: 0 / 0.5719 GB, free: 132 kB / 446.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2401, allocations: 0 / 0.5719 GB, free: 132 kB / 446.1 MB Notification: Performance of Transformations before backend: time 3.604e-05/0.2402, allocations: 0 / 0.5719 GB, free: 132 kB / 446.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.003514/0.2437, allocations: 1.647 MB / 0.5735 GB, free: 14.43 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.2437, allocations: 12.03 kB / 0.5735 GB, free: 14.42 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003984/0.2442, allocations: 151.2 kB / 0.5737 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.2453, allocations: 0.7976 MB / 0.5745 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.2454, allocations: 74.12 kB / 0.5745 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.2455, allocations: 99.91 kB / 0.5746 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.2472, allocations: 1.073 MB / 0.5757 GB, free: 12.15 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.2473, allocations: 3.938 kB / 0.5757 GB, free: 12.15 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.51e-05/0.2473, allocations: 44 kB / 0.5757 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.2474, allocations: 24 kB / 0.5758 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.249, allocations: 1.004 MB / 0.5767 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005136/0.2542, allocations: 4.762 MB / 0.5814 GB, free: 5.887 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001739/0.2559, allocations: 0.9237 MB / 0.5823 GB, free: 4.945 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007831/0.2567, allocations: 0.5021 MB / 0.5828 GB, free: 4.441 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003946/0.2607, allocations: 3.465 MB / 0.5862 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.2607, allocations: 51.12 kB / 0.5862 GB, free: 0.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 2.334e-06/0.2607, allocations: 0 / 0.5862 GB, free: 0.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.2918/0.5526, allocations: 4.424 MB / 0.5905 GB, free: 72.35 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.5527, allocations: 94.77 kB / 0.5906 GB, free: 72.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.5539, allocations: 0.7513 MB / 0.5914 GB, free: 71.94 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.593e-05/0.554, allocations: 50.73 kB / 0.5914 GB, free: 71.89 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003103/0.5543, allocations: 478.8 kB / 0.5919 GB, free: 71.51 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002849/0.5546, allocations: 425.7 kB / 0.5923 GB, free: 71.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003157/0.5549, allocations: 193.8 kB / 0.5924 GB, free: 71.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.985e-05/0.555, allocations: 349.3 kB / 0.5928 GB, free: 70.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009266/0.5559, allocations: 416.4 kB / 0.5932 GB, free: 70.62 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.557, allocations: 0.5693 MB / 0.5937 GB, free: 70.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002033/0.559, allocations: 1.036 MB / 0.5947 GB, free: 69.78 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.5591, allocations: 5.484 kB / 0.5948 GB, free: 69.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003181/0.5622, allocations: 1.51 MB / 0.5962 GB, free: 69.13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.5623, allocations: 5.25 kB / 0.5962 GB, free: 69.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.5623, allocations: 5.25 kB / 0.5962 GB, free: 69.13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001047/0.5634, allocations: 315.6 kB / 0.5965 GB, free: 69.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008656/0.5642, allocations: 234.4 kB / 0.5968 GB, free: 68.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006595/0.5708, allocations: 11.21 MB / 0.6077 GB, free: 57.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.572, allocations: 75.06 kB / 0.6078 GB, free: 57.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.5722, allocations: 49.97 kB / 0.6078 GB, free: 57.95 MB / 462.1 MB 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.0005518/0.5727, allocations: 255.8 kB / 0.6081 GB, free: 57.74 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002585/0.573, allocations: 118.9 kB / 0.6082 GB, free: 57.68 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003808/0.5768, allocations: 1.875 MB / 0.61 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.5768, allocations: 13.47 kB / 0.61 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.5769, allocations: 2.906 kB / 0.61 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-05/0.5769, allocations: 9.094 kB / 0.61 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005596/0.5825, allocations: 2.889 MB / 0.6129 GB, free: 55.42 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.5825, allocations: 1.312 kB / 0.6129 GB, free: 55.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009483/0.5835, allocations: 217.1 kB / 0.6131 GB, free: 55.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001106/0.5846, allocations: 320.6 kB / 0.6134 GB, free: 55.28 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.833e-05/0.5847, allocations: 40.64 kB / 0.6134 GB, free: 55.26 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006949/0.5917, allocations: 11.24 MB / 0.6244 GB, free: 44.24 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.5917, allocations: 0 / 0.6244 GB, free: 44.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00507/0.5968, allocations: 2.181 MB / 0.6265 GB, free: 43.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004926/0.5973, allocations: 177.2 kB / 0.6267 GB, free: 43.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.5975, allocations: 32.47 kB / 0.6267 GB, free: 42.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008762/0.5984, allocations: 78.27 kB / 0.6268 GB, free: 42.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003439/0.5987, allocations: 108.8 kB / 0.6269 GB, free: 42.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.5989, allocations: 48.31 kB / 0.6269 GB, free: 42.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007496/0.5996, allocations: 0.5576 MB / 0.6275 GB, free: 42.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5996, allocations: 0 / 0.6275 GB, free: 42.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001912/0.6015, allocations: 452.2 kB / 0.6279 GB, free: 42.61 MB / 462.1 MB 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.0006885/0.6022, allocations: 412.9 kB / 0.6283 GB, free: 42.44 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003471/0.6057, allocations: 2.081 MB / 0.6303 GB, free: 41.12 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.6057, allocations: 1.062 kB / 0.6303 GB, free: 41.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00221/0.6079, allocations: 1.602 MB / 0.6319 GB, free: 39.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.6098, allocations: 327.1 kB / 0.6322 GB, free: 39.85 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004835/0.6147, allocations: 3.106 MB / 0.6353 GB, free: 37.83 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.6153, allocations: 1.103 MB / 0.6363 GB, free: 36.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009636/0.6162, allocations: 241.4 kB / 0.6366 GB, free: 36.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002909/0.6165, allocations: 114.3 kB / 0.6367 GB, free: 36.81 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6165, allocations: 0 / 0.6367 GB, free: 36.81 MB / 462.1 MB Notification: Performance of Templates: time 0.03407/0.6506, allocations: 23.45 MB / 0.6596 GB, free: 16.53 MB / 462.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches