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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001592/0.001592, allocations: 101.6 kB / 16.27 MB, free: 5.961 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.001582/0.001582, allocations: 190 kB / 17.2 MB, free: 5.59 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.411/1.411, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.737/2.737, allocations: 482.4 MB / 0.7553 GB, free: 7 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 63.8 kB / 0.9245 GB, free: 0 / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8619/0.8639, allocations: 162.2 MB / 1.083 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.08448/0.9484, allocations: 67.57 MB / 1.149 GB, free: 0.9219 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.03259/0.981, allocations: 18.59 MB / 1.167 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004988/0.986, allocations: 95.66 kB / 1.167 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01126/0.9974, allocations: 4.48 MB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.009554/1.007, allocations: 2.69 MB / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.007566/1.015, allocations: 2.337 MB / 1.176 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01386/1.029, allocations: 7.65 MB / 1.184 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004356/1.033, allocations: 1.897 MB / 1.186 GB, free: 5.379 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006989/1.04, allocations: 2.203 MB / 1.188 GB, free: 3.176 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003456/1.043, allocations: 1.501 MB / 1.189 GB, free: 1.668 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0009435/1.044, allocations: 188 kB / 1.19 GB, free: 1.484 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006123/1.05, allocations: 2.133 MB / 1.192 GB, free: 15.34 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001339/1.052, allocations: 0.6774 MB / 1.192 GB, free: 14.66 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003343/1.055, allocations: 1.306 MB / 1.194 GB, free: 13.35 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.009719/1.065, allocations: 4.125 MB / 1.198 GB, free: 9.215 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/1.065, allocations: 0 / 1.198 GB, free: 9.215 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.944e-06/1.065, allocations: 0 / 1.198 GB, free: 9.215 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001463/1.065, allocations: 0 / 1.198 GB, free: 9.215 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.008107/1.073, allocations: 3.064 MB / 1.201 GB, free: 6.066 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/1.073, allocations: 8.031 kB / 1.201 GB, free: 6.059 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002243/1.076, allocations: 484.4 kB / 1.201 GB, free: 5.582 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005202/1.081, allocations: 2.739 MB / 1.204 GB, free: 2.77 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004145/1.081, allocations: 158.5 kB / 1.204 GB, free: 2.613 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002293/1.082, allocations: 132 kB / 1.204 GB, free: 2.484 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002926/1.084, allocations: 1.448 MB / 1.205 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/1.085, allocations: 7.906 kB / 1.205 GB, free: 0.9375 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/1.085, allocations: 56 kB / 1.205 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.414e-05/1.085, allocations: 35.94 kB / 1.206 GB, free: 0.8477 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002727/1.087, allocations: 1.125 MB / 1.207 GB, free: 15.71 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.01091/1.098, allocations: 7.788 MB / 1.214 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002548/1.101, allocations: 1.33 MB / 1.216 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/1.102, allocations: 443.4 kB / 1.216 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004374/1.106, allocations: 2.373 MB / 1.218 GB, free: 2.84 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/1.108, allocations: 462.9 kB / 1.219 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=64): time 3.737e-06/1.108, allocations: 0 / 1.219 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of matching and sorting (n=64): time 0.003903/1.112, allocations: 1.326 MB / 1.22 GB, free: 1.023 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/1.112, allocations: 63.95 kB / 1.22 GB, free: 0.9492 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003846/1.115, allocations: 2.035 MB / 1.222 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001918/1.116, allocations: 41.7 kB / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001111/1.117, allocations: 1.014 MB / 1.223 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003379/1.117, allocations: 236.7 kB / 1.223 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004715/1.118, allocations: 306.6 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001244/1.118, allocations: 301.1 kB / 1.224 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/1.119, allocations: 0.5727 MB / 1.224 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/1.121, allocations: 0.9658 MB / 1.225 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002715/1.123, allocations: 1.435 MB / 1.227 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/1.123, allocations: 4 kB / 1.227 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.00415/1.128, allocations: 1.773 MB / 1.229 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.776e-05/1.128, allocations: 41.64 kB / 1.229 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.53e-05/1.128, allocations: 11.94 kB / 1.229 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.52e-05/1.128, allocations: 16.66 kB / 1.229 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/1.129, allocations: 307.6 kB / 1.229 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.428e-05/1.129, allocations: 23.94 kB / 1.229 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/1.131, allocations: 186.9 kB / 1.229 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/1.131, allocations: 55.98 kB / 1.229 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002194/1.133, allocations: 0.9999 MB / 1.23 GB, free: 6.262 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001721/1.135, allocations: 0.9696 MB / 1.231 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002751/1.138, allocations: 1.435 MB / 1.232 GB, free: 3.551 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.037e-06/1.138, allocations: 4 kB / 1.232 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of matching and sorting (n=187) (initialization_lambda0): time 0.004083/1.142, allocations: 1.776 MB / 1.234 GB, free: 1.758 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.105e-05/1.142, allocations: 39.52 kB / 1.234 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/1.142, allocations: 16.06 kB / 1.234 GB, free: 1.699 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.963e-05/1.142, allocations: 23.92 kB / 1.234 GB, free: 1.676 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/1.143, allocations: 299.7 kB / 1.235 GB, free: 1.383 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.239e-05/1.143, allocations: 19.94 kB / 1.235 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/1.145, allocations: 171.5 kB / 1.235 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/1.145, allocations: 55.98 kB / 1.235 GB, free: 1.141 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (153): * Single equations (assignments): 150 * 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.0003918/1.145, allocations: 260.4 kB / 1.235 GB, free: 0.8789 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006022/1.146, allocations: 201.3 kB / 1.235 GB, free: 0.6797 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003145/1.149, allocations: 1.143 MB / 1.236 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.049e-05/1.149, allocations: 11.98 kB / 1.236 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/1.149, allocations: 4 kB / 1.236 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002079/1.151, allocations: 0.8433 MB / 1.237 GB, free: 14.65 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006421/1.158, allocations: 2.672 MB / 1.24 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/1.158, allocations: 0 / 1.24 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008387/1.159, allocations: 163.8 kB / 1.24 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002126/1.159, allocations: 32.83 kB / 1.24 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.697e-05/1.159, allocations: 23.98 kB / 1.24 GB, free: 11.69 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/1.16, allocations: 1.465 MB / 1.241 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.241e-06/1.16, allocations: 11.97 kB / 1.241 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003974/1.164, allocations: 1.605 MB / 1.243 GB, free: 8.438 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009901/1.165, allocations: 394.2 kB / 1.243 GB, free: 8.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004765/1.166, allocations: 16 kB / 1.243 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/1.167, allocations: 67.94 kB / 1.243 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/1.167, allocations: 60.52 kB / 1.244 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.955e-05/1.167, allocations: 35.97 kB / 1.244 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002774/1.17, allocations: 1.353 MB / 1.245 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.9e-07/1.17, allocations: 0 / 1.245 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003285/1.173, allocations: 1.122 MB / 1.246 GB, free: 5.363 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (vol.dynBal.U,mov.motSpe.y,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 (72): * Single equations (assignments): 64 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001618/1.175, allocations: 0.6785 MB / 1.247 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004956/1.18, allocations: 2.192 MB / 1.249 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/1.18, allocations: 4 kB / 1.249 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001399/1.181, allocations: 0.565 MB / 1.249 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005123/1.187, allocations: 0.9925 MB / 1.25 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007319/1.194, allocations: 3.811 MB / 1.254 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001307/1.195, allocations: 1.554 MB / 1.256 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007433/1.196, allocations: 171.4 kB / 1.256 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of SimCode: time 9.72e-07/1.196, allocations: 0 / 1.256 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of Templates: time 0.06559/1.262, allocations: 40.64 MB / 1.295 GB, free: 2.91 MB / 1.014 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=400 -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