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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00885/0.00885, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001908/0.001908, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.781/2.781, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.11 kB / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3034, allocations: 157.4 MB / 1.208 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.6596/0.9631, allocations: 67.45 MB / 1.274 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0291/0.9922, allocations: 18.59 MB / 1.292 GB, free: 11.46 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004427/0.9967, allocations: 98.31 kB / 1.292 GB, free: 11.43 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.006793/1.003, allocations: 1.987 MB / 1.294 GB, free: 10.77 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.00955/1.013, allocations: 2.822 MB / 1.297 GB, free: 9.621 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.007976/1.021, allocations: 2.441 MB / 1.299 GB, free: 8.422 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01423/1.035, allocations: 8.26 MB / 1.307 GB, free: 5.133 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003441/1.039, allocations: 1.941 MB / 1.309 GB, free: 4.211 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006314/1.045, allocations: 2.147 MB / 1.311 GB, free: 3.203 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004773/1.05, allocations: 1.56 MB / 1.313 GB, free: 2.461 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000831/1.051, allocations: 200.5 kB / 1.313 GB, free: 2.461 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006501/1.057, allocations: 2.151 MB / 1.315 GB, free: 1.742 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001076/1.058, allocations: 0.697 MB / 1.316 GB, free: 1.387 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.003074/1.061, allocations: 1.328 MB / 1.317 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.008404/1.07, allocations: 4.245 MB / 1.321 GB, free: 14.94 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/1.07, allocations: 0 / 1.321 GB, free: 14.94 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.134e-06/1.07, allocations: 0 / 1.321 GB, free: 14.94 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.705e-05/1.07, allocations: 0 / 1.321 GB, free: 14.94 MB / 1.029 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.007921/1.078, allocations: 3.102 MB / 1.324 GB, free: 12.92 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/1.078, allocations: 8.875 kB / 1.324 GB, free: 12.92 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002503/1.08, allocations: 485.9 kB / 1.324 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00648/1.087, allocations: 2.872 MB / 1.327 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/1.087, allocations: 101.3 kB / 1.327 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004114/1.088, allocations: 146.9 kB / 1.328 GB, free: 11.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004089/1.092, allocations: 1.447 MB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.576e-05/1.092, allocations: 3.781 kB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001955/1.092, allocations: 56.58 kB / 1.329 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.912e-05/1.092, allocations: 45.19 kB / 1.329 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003129/1.095, allocations: 1.123 MB / 1.33 GB, free: 10.06 MB / 1.029 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.01238/1.108, allocations: 7.732 MB / 1.338 GB, free: 3.918 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/1.11, allocations: 1.284 MB / 1.339 GB, free: 2.926 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/1.111, allocations: 462 kB / 1.339 GB, free: 2.699 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005988/1.117, allocations: 2.701 MB / 1.342 GB, free: 324 kB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/1.118, allocations: 480.5 kB / 1.342 GB, free: 12 kB / 1.029 GB Notification: Performance of pre-optimization done (n=62): time 4.809e-06/1.118, allocations: 0 / 1.342 GB, free: 12 kB / 1.029 GB Notification: Performance of matching and sorting (n=62): time 0.003631/1.122, allocations: 1.241 MB / 1.344 GB, free: 15.34 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/1.122, allocations: 110.8 kB / 1.344 GB, free: 15.21 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003598/1.125, allocations: 2.073 MB / 1.346 GB, free: 14.07 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001035/1.126, allocations: 41.55 kB / 1.346 GB, free: 14.03 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009728/1.127, allocations: 1.028 MB / 1.347 GB, free: 13.13 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002766/1.127, allocations: 231.5 kB / 1.347 GB, free: 12.93 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005293/1.127, allocations: 315.4 kB / 1.347 GB, free: 12.75 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 9.535e-05/1.127, allocations: 306.2 kB / 1.348 GB, free: 12.45 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/1.129, allocations: 0.5444 MB / 1.348 GB, free: 12.18 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001489/1.13, allocations: 0.9677 MB / 1.349 GB, free: 11.38 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002463/1.133, allocations: 1.42 MB / 1.351 GB, free: 10.37 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.595e-05/1.133, allocations: 3.344 kB / 1.351 GB, free: 10.37 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003646/1.136, allocations: 1.75 MB / 1.352 GB, free: 9.496 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.211e-05/1.136, allocations: 49.97 kB / 1.352 GB, free: 9.453 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.227e-05/1.136, allocations: 10.22 kB / 1.352 GB, free: 9.453 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.535e-05/1.136, allocations: 17.38 kB / 1.352 GB, free: 9.453 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/1.138, allocations: 299.6 kB / 1.353 GB, free: 9.383 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.215e-05/1.138, allocations: 30.02 kB / 1.353 GB, free: 9.371 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/1.139, allocations: 167.9 kB / 1.353 GB, free: 9.27 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/1.14, allocations: 57.45 kB / 1.353 GB, free: 9.258 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002178/1.142, allocations: 0.9849 MB / 1.354 GB, free: 8.695 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001608/1.143, allocations: 0.9628 MB / 1.355 GB, free: 7.887 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002485/1.146, allocations: 1.427 MB / 1.356 GB, free: 6.879 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.358e-05/1.146, allocations: 6.422 kB / 1.356 GB, free: 6.875 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003918/1.15, allocations: 1.747 MB / 1.358 GB, free: 5.996 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.983e-05/1.15, allocations: 35.3 kB / 1.358 GB, free: 5.965 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/1.15, allocations: 15.91 kB / 1.358 GB, free: 5.961 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/1.15, allocations: 16.91 kB / 1.358 GB, free: 5.961 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/1.151, allocations: 307 kB / 1.358 GB, free: 5.883 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.749e-05/1.151, allocations: 24.66 kB / 1.358 GB, free: 5.875 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001946/1.153, allocations: 157.4 kB / 1.358 GB, free: 5.785 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.153, allocations: 57.14 kB / 1.358 GB, free: 5.773 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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.000431/1.154, allocations: 255.6 kB / 1.359 GB, free: 5.535 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006684/1.154, allocations: 208.7 kB / 1.359 GB, free: 5.422 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002868/1.157, allocations: 1.076 MB / 1.36 GB, free: 4.824 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/1.157, allocations: 8.156 kB / 1.36 GB, free: 4.824 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/1.157, allocations: 0 / 1.36 GB, free: 4.824 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001795/1.159, allocations: 0.7764 MB / 1.361 GB, free: 4.426 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00674/1.166, allocations: 2.899 MB / 1.364 GB, free: 2.434 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/1.166, allocations: 2.312 kB / 1.364 GB, free: 2.434 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007521/1.167, allocations: 160.7 kB / 1.364 GB, free: 2.391 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001953/1.167, allocations: 30.19 kB / 1.364 GB, free: 2.371 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.36e-05/1.167, allocations: 24.27 kB / 1.364 GB, free: 2.355 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/1.168, allocations: 1.428 MB / 1.365 GB, free: 0.8828 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.496e-05/1.168, allocations: 2.281 kB / 1.365 GB, free: 0.8828 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003589/1.172, allocations: 1.602 MB / 1.367 GB, free: 15.95 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/1.173, allocations: 415 kB / 1.367 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005873/1.174, allocations: 20.3 kB / 1.367 GB, free: 15.6 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/1.175, allocations: 71.72 kB / 1.367 GB, free: 15.57 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/1.175, allocations: 53.33 kB / 1.367 GB, free: 15.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-05/1.175, allocations: 34.56 kB / 1.367 GB, free: 15.53 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002938/1.178, allocations: 1.46 MB / 1.369 GB, free: 14.73 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.81e-07/1.178, allocations: 2.812 kB / 1.369 GB, free: 14.73 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.004805/1.183, allocations: 1.104 MB / 1.37 GB, free: 14.49 MB / 1.061 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 (74): * Single equations (assignments): 66 * 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.00223/1.185, allocations: 0.6613 MB / 1.37 GB, free: 14.15 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.004565/1.19, allocations: 2.093 MB / 1.372 GB, free: 12.22 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/1.19, allocations: 0 / 1.372 GB, free: 12.22 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.00133/1.191, allocations: 0.549 MB / 1.373 GB, free: 11.66 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006123/1.197, allocations: 1.103 MB / 1.374 GB, free: 10.59 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007951/1.205, allocations: 3.703 MB / 1.378 GB, free: 6.824 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001602/1.207, allocations: 1.57 MB / 1.379 GB, free: 5.223 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.002949/1.21, allocations: 0.5245 MB / 1.38 GB, free: 4.695 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009898/1.211, allocations: 179.3 kB / 1.38 GB, free: 4.52 MB / 1.061 GB Notification: Performance of SimCode: time 1.793e-06/1.211, allocations: 0 / 1.38 GB, free: 4.52 MB / 1.061 GB Notification: Performance of Templates: time 0.07729/1.288, allocations: 43.31 MB / 1.422 GB, free: 9.734 MB / 1.107 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/jenkins/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