Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 182.1 kB / 16.92 MB, free: 6.922 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.503/1.503, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.377/2.377, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003489, allocations: 8.234 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7311/0.7315, allocations: 142.4 MB / 0.9557 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06349/0.7951, allocations: 65.37 MB / 1.02 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02534/0.8205, allocations: 16.66 MB / 1.036 GB, free: 13.1 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004586/0.8251, allocations: 83.5 kB / 1.036 GB, free: 13.02 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003914/0.829, allocations: 0.991 MB / 1.037 GB, free: 12.02 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.008404/0.8375, allocations: 2.449 MB / 1.039 GB, free: 9.562 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.006581/0.8441, allocations: 2.096 MB / 1.041 GB, free: 7.484 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00953/0.8536, allocations: 6.978 MB / 1.048 GB, free: 0.4922 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003037/0.8567, allocations: 1.578 MB / 1.05 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004102/0.8608, allocations: 1.742 MB / 1.051 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002492/0.8634, allocations: 1.427 MB / 1.053 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0003936/0.8638, allocations: 72 kB / 1.053 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004107/0.8679, allocations: 1.821 MB / 1.055 GB, free: 9.785 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0006665/0.8686, allocations: 446 kB / 1.055 GB, free: 9.348 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001533/0.8701, allocations: 1.019 MB / 1.056 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0037/0.8739, allocations: 2.681 MB / 1.059 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.8739, allocations: 0 / 1.059 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8739, allocations: 0 / 1.059 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.997e-05/0.8739, allocations: 0 / 1.059 GB, free: 5.629 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.004317/0.8783, allocations: 2.287 MB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.8783, allocations: 12.03 kB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00222/0.8805, allocations: 477.8 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003716/0.8843, allocations: 1.838 MB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00041/0.8847, allocations: 166.4 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002527/0.885, allocations: 131.9 kB / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.8878, allocations: 1.474 MB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.039e-05/0.8879, allocations: 4 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.888, allocations: 51.98 kB / 1.065 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.542e-05/0.8881, allocations: 58.25 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002698/0.8908, allocations: 1.18 MB / 1.066 GB, free: 13.75 MB / 0.8262 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/0.9013, allocations: 7.424 MB / 1.073 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.9036, allocations: 1.395 MB / 1.075 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.9047, allocations: 490.3 kB / 1.075 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005011/0.9098, allocations: 2.713 MB / 1.078 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.911, allocations: 0.5181 MB / 1.078 GB, free: 272 kB / 0.8262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000554/0.9115, allocations: 83.41 kB / 1.078 GB, free: 188 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=64): time 2.505e-06/0.9115, allocations: 0 / 1.078 GB, free: 188 kB / 0.8262 GB Notification: Performance of matching and sorting (n=64): time 0.003398/0.9149, allocations: 1.327 MB / 1.08 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.915, allocations: 111.4 kB / 1.08 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/0.9169, allocations: 1.453 MB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 9.771e-05/0.917, allocations: 45.64 kB / 1.081 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007365/0.9178, allocations: 0.8918 MB / 1.082 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002129/0.918, allocations: 236.7 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.9181, allocations: 93.66 kB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.9183, allocations: 345.9 kB / 1.083 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.9193, allocations: 417.8 kB / 1.083 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.9205, allocations: 0.7624 MB / 1.084 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002196/0.9227, allocations: 1.159 MB / 1.085 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.9228, allocations: 4 kB / 1.085 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003218/0.926, allocations: 1.348 MB / 1.086 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.00028/0.9263, allocations: 417.5 kB / 1.087 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.9263, allocations: 12 kB / 1.087 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.151e-05/0.9263, allocations: 16 kB / 1.087 GB, free: 7.035 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.9276, allocations: 263.6 kB / 1.087 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.151e-05/0.9276, allocations: 23.88 kB / 1.087 GB, free: 6.754 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.9292, allocations: 136.5 kB / 1.087 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.9293, allocations: 55.98 kB / 1.087 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.9294, allocations: 4 kB / 1.087 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00251/0.9319, allocations: 1.153 MB / 1.088 GB, free: 5.398 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.9319, allocations: 12 kB / 1.088 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.9319, allocations: 16 kB / 1.088 GB, free: 5.371 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009716/0.9329, allocations: 264.2 kB / 1.089 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.9329, allocations: 23.92 kB / 1.089 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.9343, allocations: 132.5 kB / 1.089 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.9344, allocations: 55.98 kB / 1.089 GB, free: 4.906 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 120 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009341/0.9353, allocations: 496.6 kB / 1.089 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/0.9356, allocations: 161.9 kB / 1.09 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002724/0.9384, allocations: 1.15 MB / 1.091 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.9384, allocations: 11.94 kB / 1.091 GB, free: 3.074 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.9384, allocations: 4 kB / 1.091 GB, free: 3.07 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001954/0.9404, allocations: 0.8627 MB / 1.092 GB, free: 2.195 MB / 0.8419 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00524/0.9456, allocations: 2.79 MB / 1.094 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.9457, allocations: 4 kB / 1.094 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008147/0.9465, allocations: 176 kB / 1.094 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/0.9467, allocations: 28.84 kB / 1.094 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.923e-05/0.9467, allocations: 27.98 kB / 1.094 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.9478, allocations: 1.327 MB / 1.096 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.9478, allocations: 3.938 kB / 1.096 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003597/0.9514, allocations: 1.689 MB / 1.097 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000918/0.9524, allocations: 362.6 kB / 1.098 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002746/0.9527, allocations: 23.94 kB / 1.098 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.9538, allocations: 126.5 kB / 1.098 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.9539, allocations: 56.48 kB / 1.098 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.223e-05/0.954, allocations: 43.97 kB / 1.098 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001548/0.9556, allocations: 1.05 MB / 1.099 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9556, allocations: 0 / 1.099 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002843/0.9584, allocations: 0.9432 MB / 1.1 GB, free: 9.246 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001317/0.9598, allocations: 0.5149 MB / 1.1 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00382/0.9636, allocations: 1.695 MB / 1.102 GB, free: 7.023 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.9636, allocations: 4 kB / 1.102 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.965, allocations: 0.5803 MB / 1.103 GB, free: 6.426 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004837/0.9698, allocations: 0.8538 MB / 1.103 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006318/0.9762, allocations: 4.012 MB / 1.107 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009489/0.9772, allocations: 1.388 MB / 1.109 GB, free: 88 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005803/0.9778, allocations: 151.4 kB / 1.109 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of SimCode: time 5.61e-07/0.9778, allocations: 0 / 1.109 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of Templates: time 0.05139/1.029, allocations: 34.62 MB / 1.143 GB, free: 13.56 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches