Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008209/0.0008209, allocations: 169.4 kB / 16.1 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.156/1.156, allocations: 205 MB / 221.9 MB, free: 9.055 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007402/0.0007401, allocations: 92.53 kB / 269.9 MB, free: 8.652 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6134/0.6134, allocations: 90.51 MB / 408.3 MB, free: 3.938 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003128, allocations: 12 kB / 484.9 MB, free: 7.203 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2525, allocations: 65.8 MB / 0.5377 GB, free: 35.03 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.02557/0.2781, allocations: 39.1 MB / 0.5759 GB, free: 15.77 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.009888/0.2881, allocations: 8.602 MB / 0.5843 GB, free: 7.141 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008773/0.289, allocations: 11.94 kB / 0.5843 GB, free: 7.129 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001191/0.2902, allocations: 461.6 kB / 0.5848 GB, free: 6.676 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002798/0.293, allocations: 1.127 MB / 0.5859 GB, free: 5.543 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002036/0.295, allocations: 0.7895 MB / 0.5867 GB, free: 4.754 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002385/0.2974, allocations: 2.275 MB / 0.5889 GB, free: 2.473 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003427/0.2978, allocations: 214.7 kB / 0.5891 GB, free: 2.262 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001384/0.2992, allocations: 0.7546 MB / 0.5898 GB, free: 1.504 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006667/0.2999, allocations: 0.6339 MB / 0.5904 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.3, allocations: 44 kB / 0.5905 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002116/0.3021, allocations: 0.8269 MB / 0.5913 GB, free: 15.99 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.3023, allocations: 187 kB / 0.5915 GB, free: 15.81 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004662/0.3028, allocations: 0.5128 MB / 0.592 GB, free: 15.3 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.3042, allocations: 1.185 MB / 0.5931 GB, free: 14.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3042, allocations: 3.938 kB / 0.5931 GB, free: 14.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3042, allocations: 0 / 0.5931 GB, free: 14.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.3042, allocations: 0 / 0.5931 GB, free: 14.11 MB / 426.7 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.00243/0.3066, allocations: 1.291 MB / 0.5944 GB, free: 12.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.3067, allocations: 12.03 kB / 0.5944 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003255/0.307, allocations: 139.5 kB / 0.5945 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007486/0.3078, allocations: 0.5714 MB / 0.5951 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.333e-05/0.3079, allocations: 92.27 kB / 0.5952 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.308, allocations: 100 kB / 0.5953 GB, free: 11.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.3096, allocations: 0.9987 MB / 0.5962 GB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.3096, allocations: 3.938 kB / 0.5962 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.586e-05/0.3097, allocations: 40 kB / 0.5963 GB, free: 10.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.3098, allocations: 20 kB / 0.5963 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/0.3113, allocations: 0.9056 MB / 0.5972 GB, free: 9.805 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005444/0.3168, allocations: 4.599 MB / 0.6017 GB, free: 4.785 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/0.3188, allocations: 1.073 MB / 0.6027 GB, free: 3.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007732/0.3196, allocations: 488.5 kB / 0.6032 GB, free: 3.199 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00344/0.323, allocations: 2.997 MB / 0.6061 GB, free: 15.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.3231, allocations: 47.31 kB / 0.6062 GB, free: 15.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=101): time 2.746e-06/0.3231, allocations: 8 kB / 0.6062 GB, free: 15.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=114): time 0.009051/0.3321, allocations: 4.326 MB / 0.6104 GB, free: 11.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.3322, allocations: 90.11 kB / 0.6105 GB, free: 11.12 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006132/0.3328, allocations: 0.5588 MB / 0.611 GB, free: 10.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.14e-05/0.3329, allocations: 45.7 kB / 0.6111 GB, free: 10.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.3332, allocations: 400.5 kB / 0.6115 GB, free: 10.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00027/0.3335, allocations: 394.2 kB / 0.6118 GB, free: 9.719 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.327e-05/0.3335, allocations: 24 kB / 0.6119 GB, free: 9.695 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3337, allocations: 394.7 kB / 0.6122 GB, free: 9.301 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007758/0.3345, allocations: 414.4 kB / 0.6126 GB, free: 8.895 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008866/0.3354, allocations: 0.5678 MB / 0.6132 GB, free: 8.273 MB / 442.7 MB 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.001893/0.3373, allocations: 1.112 MB / 0.6143 GB, free: 7.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3373, allocations: 0 / 0.6143 GB, free: 7.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003093/0.3404, allocations: 1.493 MB / 0.6157 GB, free: 5.559 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3404, allocations: 5.25 kB / 0.6157 GB, free: 5.555 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/0.3405, allocations: 8 kB / 0.6157 GB, free: 5.547 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.3416, allocations: 346.8 kB / 0.6161 GB, free: 5.184 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007588/0.3424, allocations: 199.8 kB / 0.6163 GB, free: 4.988 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00907/0.3515, allocations: 11.63 MB / 0.6276 GB, free: 8.293 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009451/0.3525, allocations: 75.86 kB / 0.6277 GB, free: 8.219 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-05/0.3526, allocations: 44 kB / 0.6277 GB, free: 8.176 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 (112): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0004783/0.3531, allocations: 243.5 kB / 0.628 GB, free: 7.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.3533, allocations: 94.88 kB / 0.6281 GB, free: 7.836 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003429/0.3567, allocations: 1.588 MB / 0.6296 GB, free: 6.207 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.3567, allocations: 23.98 kB / 0.6296 GB, free: 6.184 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3567, allocations: 4 kB / 0.6296 GB, free: 6.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.3568, allocations: 7.984 kB / 0.6296 GB, free: 6.172 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004828/0.3616, allocations: 2.759 MB / 0.6323 GB, free: 3.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.3616, allocations: 0 / 0.6323 GB, free: 3.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007817/0.3624, allocations: 199.8 kB / 0.6325 GB, free: 3.125 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.3635, allocations: 342.6 kB / 0.6328 GB, free: 2.766 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.453e-05/0.3636, allocations: 47.91 kB / 0.6329 GB, free: 2.719 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009188/0.3728, allocations: 11.62 MB / 0.6442 GB, free: 6.023 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.3729, allocations: 11.95 kB / 0.6443 GB, free: 6.012 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004256/0.3771, allocations: 2.188 MB / 0.6464 GB, free: 3.785 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.3775, allocations: 159.8 kB / 0.6465 GB, free: 3.609 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.3776, allocations: 27.98 kB / 0.6466 GB, free: 3.582 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007394/0.3783, allocations: 83.89 kB / 0.6467 GB, free: 3.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002597/0.3786, allocations: 104.8 kB / 0.6468 GB, free: 3.398 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.818e-05/0.3787, allocations: 39.98 kB / 0.6468 GB, free: 3.359 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004433/0.3791, allocations: 391.1 kB / 0.6472 GB, free: 2.984 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3792, allocations: 3.938 kB / 0.6472 GB, free: 2.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001553/0.3807, allocations: 463.8 kB / 0.6476 GB, free: 2.527 MB / 474.7 MB 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 (96): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0007004/0.3814, allocations: 466.8 kB / 0.6481 GB, free: 2.059 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003342/0.3848, allocations: 2.142 MB / 0.6501 GB, free: 15.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.3848, allocations: 4 kB / 0.6502 GB, free: 15.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/0.3871, allocations: 1.633 MB / 0.6517 GB, free: 14.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.3885, allocations: 282.4 kB / 0.652 GB, free: 13.78 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.3929, allocations: 2.812 MB / 0.6548 GB, free: 10.94 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006171/0.3935, allocations: 1.036 MB / 0.6558 GB, free: 9.879 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.3939, allocations: 99.41 kB / 0.6559 GB, free: 9.781 MB / 490.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3939, allocations: 0 / 0.6559 GB, free: 9.781 MB / 490.7 MB Notification: Performance of Templates: time 0.2405/0.6343, allocations: 45.96 MB / 0.7007 GB, free: 123.5 MB / 0.4948 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.Reservoir_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches