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.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_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.0014/0.0014, allocations: 110.1 kB / 16.41 MB, free: 6.477 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.001373/0.001373, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.16 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.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 63.89 kB / 1.019 GB, free: 9.41 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.977/0.9791, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.07407/1.053, allocations: 67.49 MB / 1.233 GB, free: 172 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02983/1.083, allocations: 18.58 MB / 1.251 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004385/1.088, allocations: 95.5 kB / 1.251 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.006794/1.094, allocations: 2 MB / 1.253 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.009918/1.104, allocations: 2.948 MB / 1.256 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.007363/1.112, allocations: 2.441 MB / 1.259 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01459/1.126, allocations: 8.282 MB / 1.267 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004676/1.131, allocations: 1.942 MB / 1.269 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006546/1.138, allocations: 2.155 MB / 1.271 GB, free: 9.602 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003551/1.141, allocations: 1.565 MB / 1.272 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.00111/1.142, allocations: 200 kB / 1.272 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005988/1.148, allocations: 2.152 MB / 1.275 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001379/1.15, allocations: 0.693 MB / 1.275 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003053/1.153, allocations: 1.325 MB / 1.277 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009916/1.163, allocations: 4.245 MB / 1.281 GB, free: 15.39 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/1.163, allocations: 0 / 1.281 GB, free: 15.39 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.926e-06/1.163, allocations: 0 / 1.281 GB, free: 15.39 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001471/1.163, allocations: 0 / 1.281 GB, free: 15.39 MB / 1.014 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.008366/1.171, allocations: 3.103 MB / 1.284 GB, free: 12.21 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/1.172, allocations: 8.625 kB / 1.284 GB, free: 12.2 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002592/1.174, allocations: 480.4 kB / 1.284 GB, free: 11.73 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006817/1.181, allocations: 2.876 MB / 1.287 GB, free: 8.777 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/1.181, allocations: 98.47 kB / 1.287 GB, free: 8.68 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005291/1.182, allocations: 139.9 kB / 1.287 GB, free: 8.543 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003714/1.185, allocations: 1.448 MB / 1.289 GB, free: 7.004 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.381e-05/1.186, allocations: 3.938 kB / 1.289 GB, free: 7 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002433/1.186, allocations: 52 kB / 1.289 GB, free: 6.949 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-05/1.186, allocations: 50.31 kB / 1.289 GB, free: 6.898 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002948/1.189, allocations: 1.118 MB / 1.29 GB, free: 5.773 MB / 1.014 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.01255/1.201, allocations: 7.75 MB / 1.297 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/1.204, allocations: 1.286 MB / 1.299 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/1.205, allocations: 458.2 kB / 1.299 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005955/1.211, allocations: 2.7 MB / 1.302 GB, free: 8.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001139/1.212, allocations: 482.5 kB / 1.302 GB, free: 8.172 MB / 1.029 GB Notification: Performance of pre-optimization done (n=62): time 3.947e-06/1.212, allocations: 0 / 1.302 GB, free: 8.172 MB / 1.029 GB Notification: Performance of matching and sorting (n=62): time 0.003508/1.215, allocations: 1.236 MB / 1.303 GB, free: 6.906 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/1.215, allocations: 115.4 kB / 1.304 GB, free: 6.77 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00431/1.22, allocations: 2.071 MB / 1.306 GB, free: 4.672 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001947/1.22, allocations: 41.7 kB / 1.306 GB, free: 4.625 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001131/1.221, allocations: 1.038 MB / 1.307 GB, free: 3.578 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003269/1.221, allocations: 224.9 kB / 1.307 GB, free: 3.355 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006636/1.222, allocations: 314.5 kB / 1.307 GB, free: 3.043 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001011/1.222, allocations: 301.1 kB / 1.307 GB, free: 2.746 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/1.223, allocations: 0.5415 MB / 1.308 GB, free: 2.203 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/1.225, allocations: 0.9657 MB / 1.309 GB, free: 1.055 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00245/1.227, allocations: 1.426 MB / 1.31 GB, free: 15.48 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.43e-05/1.227, allocations: 4 kB / 1.31 GB, free: 15.47 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003761/1.231, allocations: 1.75 MB / 1.312 GB, free: 13.71 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.011e-05/1.231, allocations: 42.34 kB / 1.312 GB, free: 13.66 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.628e-05/1.231, allocations: 12 kB / 1.312 GB, free: 13.65 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.601e-05/1.231, allocations: 16 kB / 1.312 GB, free: 13.63 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/1.233, allocations: 295.8 kB / 1.312 GB, free: 13.34 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.039e-05/1.233, allocations: 31.86 kB / 1.312 GB, free: 13.31 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/1.234, allocations: 174.6 kB / 1.313 GB, free: 13.14 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/1.235, allocations: 63.92 kB / 1.313 GB, free: 13.08 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002033/1.237, allocations: 0.9777 MB / 1.314 GB, free: 12.1 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001472/1.238, allocations: 0.9619 MB / 1.314 GB, free: 10.96 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002373/1.24, allocations: 1.425 MB / 1.316 GB, free: 9.383 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.344e-05/1.24, allocations: 4 kB / 1.316 GB, free: 9.379 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003655/1.244, allocations: 1.748 MB / 1.318 GB, free: 7.613 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.886e-05/1.244, allocations: 38.3 kB / 1.318 GB, free: 7.57 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/1.244, allocations: 16 kB / 1.318 GB, free: 7.555 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/1.244, allocations: 16 kB / 1.318 GB, free: 7.539 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/1.245, allocations: 303.5 kB / 1.318 GB, free: 7.242 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.852e-05/1.245, allocations: 19.94 kB / 1.318 GB, free: 7.223 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/1.247, allocations: 151.6 kB / 1.318 GB, free: 7.074 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/1.247, allocations: 59.98 kB / 1.318 GB, free: 7.016 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.0003961/1.248, allocations: 255.9 kB / 1.318 GB, free: 6.758 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006843/1.248, allocations: 209.3 kB / 1.319 GB, free: 6.551 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002867/1.251, allocations: 1.084 MB / 1.32 GB, free: 5.457 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/1.251, allocations: 12 kB / 1.32 GB, free: 5.445 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/1.251, allocations: 4 kB / 1.32 GB, free: 5.441 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001752/1.253, allocations: 0.7724 MB / 1.32 GB, free: 4.652 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006965/1.26, allocations: 2.9 MB / 1.323 GB, free: 1.66 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/1.26, allocations: 7.938 kB / 1.323 GB, free: 1.652 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007837/1.261, allocations: 160 kB / 1.323 GB, free: 1.496 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002088/1.261, allocations: 28.83 kB / 1.323 GB, free: 1.465 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.024e-05/1.261, allocations: 23.98 kB / 1.323 GB, free: 1.441 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/1.263, allocations: 1.414 MB / 1.325 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.263, allocations: 8.094 kB / 1.325 GB, free: 15.88 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003553/1.266, allocations: 1.603 MB / 1.326 GB, free: 14.24 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/1.267, allocations: 413.9 kB / 1.327 GB, free: 13.81 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005888/1.268, allocations: 20.11 kB / 1.327 GB, free: 13.79 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/1.269, allocations: 71.88 kB / 1.327 GB, free: 13.72 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/1.27, allocations: 56.48 kB / 1.327 GB, free: 13.67 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/1.27, allocations: 35.97 kB / 1.327 GB, free: 13.63 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.003126/1.273, allocations: 1.458 MB / 1.328 GB, free: 12.16 MB / 1.061 GB Notification: Performance of sort global known variables: time 4.21e-07/1.273, allocations: 3.938 kB / 1.328 GB, free: 12.16 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.004265/1.277, allocations: 1.107 MB / 1.33 GB, free: 11.05 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.001788/1.279, allocations: 0.6678 MB / 1.33 GB, free: 10.38 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.004711/1.284, allocations: 2.088 MB / 1.332 GB, free: 8.277 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.284, allocations: 448 / 1.332 GB, free: 8.277 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0013/1.285, allocations: 0.5372 MB / 1.333 GB, free: 7.727 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005599/1.291, allocations: 1.109 MB / 1.334 GB, free: 6.645 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008047/1.299, allocations: 3.795 MB / 1.338 GB, free: 2.789 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001786/1.3, allocations: 1.566 MB / 1.339 GB, free: 1.188 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007715/1.301, allocations: 179.4 kB / 1.339 GB, free: 1.012 MB / 1.061 GB Notification: Performance of SimCode: time 1.133e-06/1.301, allocations: 0 / 1.339 GB, free: 1.012 MB / 1.061 GB Notification: Performance of Templates: time 0.06745/1.369, allocations: 42.42 MB / 1.381 GB, free: 6.848 MB / 1.107 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