Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001168/0.001168, 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.001746/0.001746, allocations: 183.2 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.444/1.444, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.837/2.837, allocations: 462.7 MB / 0.7371 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004074/0.0004078, allocations: 11.59 kB / 0.9034 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3763, allocations: 159.6 MB / 1.059 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.07293/0.4493, allocations: 65.79 MB / 1.124 GB, free: 3.016 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02969/0.4791, allocations: 18.52 MB / 1.142 GB, free: 472 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004847/0.484, allocations: 83.5 kB / 1.142 GB, free: 388 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01063/0.4946, allocations: 4.168 MB / 1.146 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.009748/0.5044, allocations: 2.507 MB / 1.148 GB, free: 9.688 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.007526/0.512, allocations: 2.137 MB / 1.15 GB, free: 7.566 MB / 0.9044 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1080:9-1080:67:writable] Error: Internal error NFCeval.evalBinaryMul failed to evaluate ‘{0.0, 0.05423941276795777}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.01484/0.5268, allocations: 9.956 MB / 1.16 GB, free: 13.58 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004026/0.5309, allocations: 1.598 MB / 1.162 GB, free: 11.94 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00474/0.5356, allocations: 1.707 MB / 1.163 GB, free: 10.22 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003091/0.5388, allocations: 1.497 MB / 1.165 GB, free: 8.719 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0007/0.5395, allocations: 76 kB / 1.165 GB, free: 8.645 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005388/0.5449, allocations: 2.043 MB / 1.167 GB, free: 6.598 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.5461, allocations: 0.5641 MB / 1.167 GB, free: 6.031 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002789/0.5489, allocations: 1.183 MB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.005261/0.5542, allocations: 3.148 MB / 1.172 GB, free: 1.68 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.5542, allocations: 0 / 1.172 GB, free: 1.68 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.194e-06/0.5542, allocations: 0 / 1.172 GB, free: 1.68 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001482/0.5544, allocations: 0 / 1.172 GB, free: 1.68 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.006453/0.5608, allocations: 2.64 MB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.5609, allocations: 8.031 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002521/0.5634, allocations: 496.4 kB / 1.175 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006345/0.5698, allocations: 2.829 MB / 1.177 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004754/0.5703, allocations: 178.6 kB / 1.178 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003978/0.5707, allocations: 136 kB / 1.178 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003528/0.5743, allocations: 1.463 MB / 1.179 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.5743, allocations: 7.938 kB / 1.179 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001715/0.5745, allocations: 52 kB / 1.179 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.837e-05/0.5746, allocations: 50.33 kB / 1.179 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003079/0.5777, allocations: 1.168 MB / 1.18 GB, free: 8.414 MB / 0.9356 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.01162/0.5893, allocations: 7.754 MB / 1.188 GB, free: 76 kB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00231/0.5916, allocations: 1.344 MB / 1.189 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.5927, allocations: 479.9 kB / 1.19 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005317/0.598, allocations: 2.717 MB / 1.192 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.5992, allocations: 0.4947 MB / 1.193 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007223/0.5999, allocations: 103 kB / 1.193 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=63): time 2.995e-06/0.5999, allocations: 0 / 1.193 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of matching and sorting (n=63): time 0.003295/0.6032, allocations: 1.307 MB / 1.194 GB, free: 9.246 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.6033, allocations: 111.4 kB / 1.194 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002948/0.6063, allocations: 2.028 MB / 1.196 GB, free: 7.059 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.6064, allocations: 45.7 kB / 1.196 GB, free: 7.008 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009365/0.6073, allocations: 1.026 MB / 1.197 GB, free: 5.973 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.6076, allocations: 240.8 kB / 1.198 GB, free: 5.734 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.6078, allocations: 153.6 kB / 1.198 GB, free: 5.578 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.6079, allocations: 301.1 kB / 1.198 GB, free: 5.281 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.6091, allocations: 0.5693 MB / 1.199 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.6106, allocations: 0.9767 MB / 1.2 GB, free: 3.555 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002482/0.6131, allocations: 1.468 MB / 1.201 GB, free: 1.938 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.6131, allocations: 0 / 1.201 GB, free: 1.938 MB / 0.9512 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003631/0.6167, allocations: 1.796 MB / 1.203 GB, free: 128 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003551/0.6171, allocations: 444.4 kB / 1.203 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.6171, allocations: 12 kB / 1.203 GB, free: 15.53 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.105e-05/0.6172, allocations: 16 kB / 1.203 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.6183, allocations: 315.5 kB / 1.203 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.654e-05/0.6184, allocations: 27.92 kB / 1.204 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/0.6201, allocations: 153.5 kB / 1.204 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.6203, allocations: 63.97 kB / 1.204 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.6203, allocations: 8 kB / 1.204 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002977/0.6233, allocations: 1.593 MB / 1.205 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.6233, allocations: 8 kB / 1.205 GB, free: 13.35 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.6233, allocations: 23.94 kB / 1.205 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.6244, allocations: 316.1 kB / 1.206 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.461e-05/0.6245, allocations: 23.92 kB / 1.206 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.6261, allocations: 149.5 kB / 1.206 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.6263, allocations: 59.98 kB / 1.206 GB, free: 12.79 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (156): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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.001191/0.6275, allocations: 0.5981 MB / 1.206 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003367/0.6278, allocations: 205.4 kB / 1.207 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/0.6304, allocations: 1.127 MB / 1.208 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.6305, allocations: 8 kB / 1.208 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.6305, allocations: 4 kB / 1.208 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001891/0.6324, allocations: 0.8159 MB / 1.209 GB, free: 9.988 MB / 0.9669 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.005594/0.638, allocations: 2.917 MB / 1.211 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.638, allocations: 4 kB / 1.211 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007769/0.6388, allocations: 175.8 kB / 1.212 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.639, allocations: 24.84 kB / 1.212 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.015e-05/0.6391, allocations: 23.98 kB / 1.212 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.6401, allocations: 1.319 MB / 1.213 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.6402, allocations: 7.922 kB / 1.213 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003672/0.6438, allocations: 1.668 MB / 1.215 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.6449, allocations: 410.2 kB / 1.215 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003439/0.6452, allocations: 24 kB / 1.215 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.6465, allocations: 123.8 kB / 1.215 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.6466, allocations: 64.42 kB / 1.215 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.128e-05/0.6467, allocations: 39.97 kB / 1.215 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00229/0.649, allocations: 1.419 MB / 1.217 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.649, allocations: 0 / 1.217 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003408/0.6524, allocations: 1.111 MB / 1.218 GB, free: 380 kB / 0.9669 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 (75): * Single equations (assignments): 67 * 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.001604/0.654, allocations: 0.6439 MB / 1.218 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004428/0.6585, allocations: 2.156 MB / 1.22 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.6585, allocations: 0 / 1.22 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.6598, allocations: 0.5656 MB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005699/0.6655, allocations: 1.028 MB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007494/0.6731, allocations: 4.68 MB / 1.226 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.6744, allocations: 1.57 MB / 1.228 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007027/0.6751, allocations: 183.4 kB / 1.228 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of SimCode: time 5.91e-07/0.6751, allocations: 3.938 kB / 1.228 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of Templates: time 0.6877/1.363, allocations: 41.4 MB / 1.269 GB, free: 165.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches