Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001233/0.001233, allocations: 98.88 kB / 16.02 MB, free: 76 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.001882/0.001882, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.428/1.428, allocations: 223.3 MB / 241 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.683/2.683, allocations: 437.8 MB / 0.7128 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.0003981, allocations: 8 kB / 0.8735 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7736/0.774, allocations: 153.8 MB / 1.024 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06741/0.8415, allocations: 65.78 MB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02978/0.8713, allocations: 18.53 MB / 1.106 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0043/0.8757, allocations: 83.5 kB / 1.106 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01009/0.8858, allocations: 4.158 MB / 1.11 GB, free: 7.012 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.008768/0.8946, allocations: 2.512 MB / 1.113 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006664/0.9013, allocations: 2.131 MB / 1.115 GB, free: 2.375 MB / 0.8575 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.01478/0.9161, allocations: 9.977 MB / 1.124 GB, free: 8.375 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003452/0.9196, allocations: 1.582 MB / 1.126 GB, free: 6.754 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004679/0.9243, allocations: 1.722 MB / 1.128 GB, free: 5.023 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003292/0.9276, allocations: 1.481 MB / 1.129 GB, free: 3.535 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0005231/0.9282, allocations: 76 kB / 1.129 GB, free: 3.461 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005475/0.9337, allocations: 2.047 MB / 1.131 GB, free: 1.41 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.9348, allocations: 0.568 MB / 1.132 GB, free: 0.8398 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002131/0.9369, allocations: 1.183 MB / 1.133 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.005209/0.9422, allocations: 3.137 MB / 1.136 GB, free: 12.5 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.9422, allocations: 3.938 kB / 1.136 GB, free: 12.5 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.314e-06/0.9422, allocations: 0 / 1.136 GB, free: 12.5 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.017e-05/0.9423, allocations: 0 / 1.136 GB, free: 12.5 MB / 0.8887 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.00561/0.9479, allocations: 2.644 MB / 1.139 GB, free: 9.77 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.948, allocations: 11.98 kB / 1.139 GB, free: 9.758 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002204/0.9502, allocations: 0.4925 MB / 1.139 GB, free: 9.262 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005608/0.9558, allocations: 2.821 MB / 1.142 GB, free: 6.367 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004471/0.9563, allocations: 174.5 kB / 1.142 GB, free: 6.195 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003103/0.9566, allocations: 136 kB / 1.142 GB, free: 6.062 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003034/0.9597, allocations: 1.471 MB / 1.144 GB, free: 4.504 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.59e-05/0.9597, allocations: 4 kB / 1.144 GB, free: 4.5 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.9599, allocations: 52 kB / 1.144 GB, free: 4.449 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.239e-05/0.9599, allocations: 54.31 kB / 1.144 GB, free: 4.395 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002904/0.9628, allocations: 1.172 MB / 1.145 GB, free: 3.215 MB / 0.8887 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.01179/0.9746, allocations: 7.738 MB / 1.152 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00243/0.9771, allocations: 1.344 MB / 1.154 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.9783, allocations: 482 kB / 1.154 GB, free: 8.957 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005769/0.984, allocations: 2.725 MB / 1.157 GB, free: 5.996 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001227/0.9853, allocations: 0.4947 MB / 1.157 GB, free: 5.484 MB / 0.9044 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008369/0.9861, allocations: 99.09 kB / 1.157 GB, free: 5.387 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=63): time 5.641e-06/0.9862, allocations: 0 / 1.157 GB, free: 5.387 MB / 0.9044 GB Notification: Performance of matching and sorting (n=63): time 0.003658/0.9898, allocations: 1.303 MB / 1.159 GB, free: 4.055 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.9899, allocations: 115.3 kB / 1.159 GB, free: 3.918 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004018/0.994, allocations: 2.032 MB / 1.161 GB, free: 1.859 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.9941, allocations: 49.7 kB / 1.161 GB, free: 1.805 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.9954, allocations: 1.034 MB / 1.162 GB, free: 0.7617 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003108/0.9957, allocations: 232.7 kB / 1.162 GB, free: 0.5312 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.996, allocations: 157.6 kB / 1.162 GB, free: 380 kB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.9961, allocations: 301.1 kB / 1.162 GB, free: 76 kB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.9975, allocations: 0.5615 MB / 1.163 GB, free: 15.51 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.9992, allocations: 0.9806 MB / 1.164 GB, free: 14.36 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/1.002, allocations: 1.468 MB / 1.165 GB, free: 12.73 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.318e-05/1.002, allocations: 0 / 1.165 GB, free: 12.73 MB / 0.92 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.004107/1.006, allocations: 1.793 MB / 1.167 GB, free: 10.93 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004239/1.007, allocations: 447.5 kB / 1.168 GB, free: 10.33 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-05/1.007, allocations: 12 kB / 1.168 GB, free: 10.32 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/1.007, allocations: 16 kB / 1.168 GB, free: 10.3 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/1.008, allocations: 315.5 kB / 1.168 GB, free: 9.996 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.58e-05/1.008, allocations: 23.94 kB / 1.168 GB, free: 9.973 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/1.01, allocations: 153.6 kB / 1.168 GB, free: 9.824 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/1.01, allocations: 67.92 kB / 1.168 GB, free: 9.758 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/1.01, allocations: 4 kB / 1.168 GB, free: 9.754 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003148/1.013, allocations: 1.585 MB / 1.17 GB, free: 8.164 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/1.013, allocations: 8 kB / 1.17 GB, free: 8.156 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/1.013, allocations: 24.56 kB / 1.17 GB, free: 8.133 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/1.014, allocations: 315.5 kB / 1.17 GB, free: 7.824 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.194e-05/1.014, allocations: 23.94 kB / 1.17 GB, free: 7.801 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/1.016, allocations: 155.3 kB / 1.17 GB, free: 7.648 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/1.016, allocations: 63.98 kB / 1.17 GB, free: 7.586 MB / 0.92 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.001282/1.017, allocations: 0.6021 MB / 1.171 GB, free: 6.973 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004433/1.018, allocations: 201.4 kB / 1.171 GB, free: 6.773 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002698/1.021, allocations: 1.119 MB / 1.172 GB, free: 5.641 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/1.021, allocations: 15.98 kB / 1.172 GB, free: 5.625 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/1.021, allocations: 4 kB / 1.172 GB, free: 5.621 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001891/1.023, allocations: 0.8121 MB / 1.173 GB, free: 4.793 MB / 0.92 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.0061/1.029, allocations: 2.913 MB / 1.176 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/1.029, allocations: 7.938 kB / 1.176 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007902/1.03, allocations: 168 kB / 1.176 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002001/1.03, allocations: 28.78 kB / 1.176 GB, free: 1.59 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.257e-05/1.03, allocations: 23.98 kB / 1.176 GB, free: 1.566 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/1.031, allocations: 1.32 MB / 1.177 GB, free: 120 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/1.031, allocations: 3.938 kB / 1.177 GB, free: 116 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004113/1.035, allocations: 1.68 MB / 1.179 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/1.037, allocations: 402.2 kB / 1.179 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003372/1.037, allocations: 23.98 kB / 1.179 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/1.038, allocations: 135.7 kB / 1.179 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/1.038, allocations: 60.42 kB / 1.179 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.112e-05/1.038, allocations: 35.97 kB / 1.18 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002433/1.041, allocations: 1.422 MB / 1.181 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.1e-07/1.041, allocations: 0 / 1.181 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003419/1.044, allocations: 1.099 MB / 1.182 GB, free: 11.18 MB / 0.9356 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.001656/1.046, allocations: 0.659 MB / 1.183 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.004544/1.05, allocations: 2.163 MB / 1.185 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.051, allocations: 5.625 kB / 1.185 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001346/1.052, allocations: 0.5607 MB / 1.185 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005996/1.058, allocations: 1.012 MB / 1.186 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007907/1.066, allocations: 4.691 MB / 1.191 GB, free: 2.008 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/1.067, allocations: 1.57 MB / 1.192 GB, free: 412 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007278/1.068, allocations: 179.3 kB / 1.193 GB, free: 232 kB / 0.9356 GB Notification: Performance of SimCode: time 8.21e-07/1.068, allocations: 0 / 1.193 GB, free: 232 kB / 0.9356 GB Notification: Performance of Templates: time 0.07025/1.138, allocations: 41.41 MB / 1.233 GB, free: 7.09 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches