Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001507, allocations: 100.4 kB / 16.41 MB, free: 5.977 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.001525/0.001525, allocations: 192.8 kB / 17.34 MB, free: 5.586 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.48/2.48, allocations: 437 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 64.12 kB / 1.019 GB, free: 9.344 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9076/0.9092, allocations: 151.6 MB / 1.167 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.06579/0.975, allocations: 53.77 MB / 1.22 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.03216/1.007, allocations: 17 MB / 1.236 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00516/1.012, allocations: 91.5 kB / 1.237 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.008555/1.021, allocations: 1.944 MB / 1.238 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.009893/1.031, allocations: 2.606 MB / 1.241 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.006735/1.038, allocations: 2.363 MB / 1.243 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01185/1.05, allocations: 7.543 MB / 1.251 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003619/1.053, allocations: 1.663 MB / 1.252 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005984/1.059, allocations: 1.966 MB / 1.254 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003052/1.062, allocations: 1.431 MB / 1.256 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0008128/1.063, allocations: 180 kB / 1.256 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004984/1.068, allocations: 2.016 MB / 1.258 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001247/1.069, allocations: 0.6696 MB / 1.258 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002631/1.072, allocations: 1.22 MB / 1.26 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.008642/1.081, allocations: 3.922 MB / 1.263 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/1.081, allocations: 3.938 kB / 1.263 GB, free: 1.137 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.274e-06/1.081, allocations: 0 / 1.263 GB, free: 1.137 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001244/1.081, allocations: 0 / 1.263 GB, free: 1.137 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.007589/1.089, allocations: 2.946 MB / 1.266 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/1.089, allocations: 8.031 kB / 1.266 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002941/1.092, allocations: 0.5589 MB / 1.267 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00612/1.098, allocations: 2.731 MB / 1.27 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/1.098, allocations: 90.17 kB / 1.27 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003948/1.098, allocations: 132 kB / 1.27 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003321/1.102, allocations: 1.359 MB / 1.271 GB, free: 9.062 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.87e-05/1.102, allocations: 4 kB / 1.271 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001474/1.102, allocations: 51.98 kB / 1.271 GB, free: 9.008 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.073e-05/1.102, allocations: 38.08 kB / 1.271 GB, free: 8.969 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002969/1.105, allocations: 1.113 MB / 1.272 GB, free: 7.848 MB / 0.9981 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.01143/1.116, allocations: 7.449 MB / 1.279 GB, free: 15.84 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002448/1.119, allocations: 1.332 MB / 1.281 GB, free: 14.39 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/1.12, allocations: 423.3 kB / 1.281 GB, free: 13.98 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006219/1.126, allocations: 3.164 MB / 1.284 GB, free: 10.47 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001075/1.127, allocations: 438.8 kB / 1.285 GB, free: 10.04 MB / 1.014 GB Notification: Performance of pre-optimization done (n=59): time 3.847e-06/1.127, allocations: 3.938 kB / 1.285 GB, free: 10.03 MB / 1.014 GB Notification: Performance of matching and sorting (n=59): time 0.003552/1.131, allocations: 1.236 MB / 1.286 GB, free: 8.766 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/1.131, allocations: 63.95 kB / 1.286 GB, free: 8.691 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00384/1.135, allocations: 2.137 MB / 1.288 GB, free: 6.527 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001625/1.135, allocations: 41.7 kB / 1.288 GB, free: 6.48 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001092/1.136, allocations: 1.014 MB / 1.289 GB, free: 5.457 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002922/1.136, allocations: 213 kB / 1.289 GB, free: 5.246 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005441/1.137, allocations: 314.5 kB / 1.29 GB, free: 4.93 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001223/1.137, allocations: 301.1 kB / 1.29 GB, free: 4.633 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/1.138, allocations: 0.5532 MB / 1.29 GB, free: 4.074 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/1.14, allocations: 0.9847 MB / 1.291 GB, free: 2.902 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002508/1.142, allocations: 1.455 MB / 1.293 GB, free: 1.281 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/1.142, allocations: 4 kB / 1.293 GB, free: 1.277 MB / 1.014 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003761/1.146, allocations: 1.767 MB / 1.295 GB, free: 15.5 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.812e-05/1.146, allocations: 45.62 kB / 1.295 GB, free: 15.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.217e-05/1.146, allocations: 12 kB / 1.295 GB, free: 15.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.59e-05/1.146, allocations: 16 kB / 1.295 GB, free: 15.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/1.147, allocations: 304.1 kB / 1.295 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.036e-05/1.147, allocations: 31.86 kB / 1.295 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/1.149, allocations: 186.5 kB / 1.295 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/1.149, allocations: 63.98 kB / 1.295 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001906/1.151, allocations: 0.9717 MB / 1.296 GB, free: 13.87 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001497/1.153, allocations: 0.9883 MB / 1.297 GB, free: 12.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002355/1.155, allocations: 1.45 MB / 1.298 GB, free: 11.08 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.587e-06/1.155, allocations: 0 / 1.298 GB, free: 11.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003635/1.159, allocations: 1.762 MB / 1.3 GB, free: 9.305 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.89e-05/1.159, allocations: 45.58 kB / 1.3 GB, free: 9.254 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/1.159, allocations: 15.98 kB / 1.3 GB, free: 9.238 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/1.159, allocations: 16.19 kB / 1.3 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/1.16, allocations: 307.8 kB / 1.301 GB, free: 8.922 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.905e-05/1.16, allocations: 35.8 kB / 1.301 GB, free: 8.887 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/1.161, allocations: 155.3 kB / 1.301 GB, free: 8.734 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/1.162, allocations: 59.98 kB / 1.301 GB, free: 8.676 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (154): * Single equations (assignments): 151 * 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.0003495/1.162, allocations: 255.8 kB / 1.301 GB, free: 8.418 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004906/1.162, allocations: 201.4 kB / 1.301 GB, free: 8.219 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002744/1.165, allocations: 1.13 MB / 1.302 GB, free: 7.07 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/1.165, allocations: 15.92 kB / 1.302 GB, free: 7.055 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.165, allocations: 0 / 1.302 GB, free: 7.055 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001889/1.167, allocations: 0.9543 MB / 1.303 GB, free: 6.043 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005549/1.173, allocations: 2.605 MB / 1.306 GB, free: 3.367 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.525e-06/1.173, allocations: 0 / 1.306 GB, free: 3.367 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007744/1.174, allocations: 159.8 kB / 1.306 GB, free: 3.211 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001737/1.174, allocations: 24.84 kB / 1.306 GB, free: 3.184 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-05/1.174, allocations: 19.98 kB / 1.306 GB, free: 3.164 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00108/1.175, allocations: 1.43 MB / 1.307 GB, free: 1.598 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/1.175, allocations: 0 / 1.307 GB, free: 1.598 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003397/1.178, allocations: 1.575 MB / 1.309 GB, free: 15.99 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009545/1.179, allocations: 402 kB / 1.309 GB, free: 15.58 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004119/1.18, allocations: 16 kB / 1.309 GB, free: 15.56 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/1.181, allocations: 75.86 kB / 1.309 GB, free: 15.49 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/1.181, allocations: 44.5 kB / 1.309 GB, free: 15.45 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-05/1.181, allocations: 35.97 kB / 1.31 GB, free: 15.41 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002505/1.184, allocations: 1.477 MB / 1.311 GB, free: 13.92 MB / 1.045 GB Notification: Performance of sort global known variables: time 3.1e-07/1.184, allocations: 0 / 1.311 GB, free: 13.92 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003091/1.187, allocations: 1.029 MB / 1.312 GB, free: 12.89 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.002178/1.189, allocations: 0.8783 MB / 1.313 GB, free: 12.14 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.004336/1.193, allocations: 2.101 MB / 1.315 GB, free: 10.02 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/1.193, allocations: 0 / 1.315 GB, free: 10.02 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001247/1.194, allocations: 0.5332 MB / 1.315 GB, free: 9.473 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004476/1.199, allocations: 0.9515 MB / 1.316 GB, free: 8.535 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007006/1.206, allocations: 3.712 MB / 1.32 GB, free: 4.781 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/1.207, allocations: 1.539 MB / 1.321 GB, free: 3.211 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006446/1.208, allocations: 183.3 kB / 1.322 GB, free: 3.031 MB / 1.045 GB Notification: Performance of SimCode: time 7.12e-07/1.208, allocations: 4 kB / 1.322 GB, free: 3.027 MB / 1.045 GB Notification: Performance of Templates: time 0.05809/1.266, allocations: 40.5 MB / 1.361 GB, free: 10.74 MB / 1.092 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,TSet.y,TOut.y,TVol.T,THeaOut.T,hea.TSet,hea.Q_flow Variables in the result:THeaOut.T,TOut.y,TSet.y,TVol.T,hea.Q_flow,hea.TSet,time