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.001715/0.001715, allocations: 103.8 kB / 16.27 MB, free: 6.418 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.00181/0.00181, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.621/1.621, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.586/2.586, allocations: 437.1 MB / 0.711 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.001591, allocations: 64.59 kB / 0.8699 GB, free: 2.148 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3402, allocations: 151.6 MB / 1.018 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.6347/0.975, allocations: 67.46 MB / 1.084 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02973/1.005, allocations: 18.6 MB / 1.102 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005134/1.01, allocations: 98.47 kB / 1.102 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0137/1.024, allocations: 4.405 MB / 1.106 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01126/1.035, allocations: 2.719 MB / 1.109 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.01006/1.045, allocations: 2.37 MB / 1.111 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01972/1.065, allocations: 8.14 MB / 1.119 GB, free: 5.664 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005561/1.07, allocations: 1.927 MB / 1.121 GB, free: 4.777 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008515/1.079, allocations: 2.048 MB / 1.123 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005106/1.084, allocations: 1.534 MB / 1.125 GB, free: 3.312 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001238/1.085, allocations: 193.5 kB / 1.125 GB, free: 3.312 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008038/1.093, allocations: 2.143 MB / 1.127 GB, free: 2.695 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001678/1.095, allocations: 0.6897 MB / 1.128 GB, free: 2.355 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004403/1.1, allocations: 1.315 MB / 1.129 GB, free: 1.535 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01073/1.11, allocations: 4.153 MB / 1.133 GB, free: 140 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/1.11, allocations: 0 / 1.133 GB, free: 140 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.064e-06/1.11, allocations: 0 / 1.133 GB, free: 140 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001771/1.111, allocations: 0 / 1.133 GB, free: 140 kB / 0.8419 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.01074/1.121, allocations: 3.093 MB / 1.136 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/1.121, allocations: 13.23 kB / 1.136 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003057/1.124, allocations: 479 kB / 1.136 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007944/1.132, allocations: 2.756 MB / 1.139 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005739/1.133, allocations: 154.9 kB / 1.139 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006332/1.134, allocations: 138.1 kB / 1.139 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00488/1.139, allocations: 1.454 MB / 1.141 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.877e-05/1.139, allocations: 6.094 kB / 1.141 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/1.139, allocations: 52.12 kB / 1.141 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.054e-05/1.139, allocations: 48.95 kB / 1.141 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003693/1.143, allocations: 1.138 MB / 1.142 GB, free: 11.06 MB / 0.8575 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.01416/1.157, allocations: 7.785 MB / 1.15 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/1.159, allocations: 1.298 MB / 1.151 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/1.161, allocations: 454.3 kB / 1.151 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006224/1.167, allocations: 2.713 MB / 1.154 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/1.168, allocations: 482.8 kB / 1.154 GB, free: 360 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=62): time 3.637e-06/1.168, allocations: 0 / 1.154 GB, free: 360 kB / 0.8575 GB Notification: Performance of matching and sorting (n=62): time 0.003758/1.172, allocations: 1.267 MB / 1.156 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.865e-05/1.172, allocations: 111.5 kB / 1.156 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004908/1.177, allocations: 2.054 MB / 1.158 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0002853/1.177, allocations: 44.61 kB / 1.158 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.00138/1.179, allocations: 1.038 MB / 1.159 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000427/1.179, allocations: 228.5 kB / 1.159 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007247/1.18, allocations: 313.5 kB / 1.159 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.00012/1.18, allocations: 301.1 kB / 1.16 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/1.181, allocations: 0.5549 MB / 1.16 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/1.183, allocations: 0.973 MB / 1.161 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/1.186, allocations: 1.437 MB / 1.163 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/1.186, allocations: 3.781 kB / 1.163 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003977/1.19, allocations: 1.763 MB / 1.164 GB, free: 9.836 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.472e-05/1.19, allocations: 44.81 kB / 1.164 GB, free: 9.797 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/1.19, allocations: 11.19 kB / 1.164 GB, free: 9.797 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.09e-05/1.19, allocations: 16.22 kB / 1.164 GB, free: 9.797 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/1.191, allocations: 305 kB / 1.165 GB, free: 9.723 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.106e-05/1.191, allocations: 24.84 kB / 1.165 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002203/1.193, allocations: 195.3 kB / 1.165 GB, free: 9.59 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001708/1.193, allocations: 58.48 kB / 1.165 GB, free: 9.578 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002357/1.196, allocations: 0.9827 MB / 1.166 GB, free: 9.016 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001628/1.197, allocations: 0.9736 MB / 1.167 GB, free: 8.215 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002554/1.2, allocations: 1.434 MB / 1.168 GB, free: 7.207 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.149e-05/1.2, allocations: 2.875 kB / 1.168 GB, free: 7.207 MB / 0.8731 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.004005/1.204, allocations: 1.761 MB / 1.17 GB, free: 6.32 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.42e-05/1.204, allocations: 40.58 kB / 1.17 GB, free: 6.285 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/1.204, allocations: 10.12 kB / 1.17 GB, free: 6.285 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.975e-05/1.204, allocations: 17.31 kB / 1.17 GB, free: 6.285 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/1.205, allocations: 309.6 kB / 1.17 GB, free: 6.207 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.619e-05/1.205, allocations: 24.8 kB / 1.17 GB, free: 6.199 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/1.207, allocations: 154.2 kB / 1.17 GB, free: 6.113 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/1.207, allocations: 58.36 kB / 1.171 GB, free: 6.102 MB / 0.8731 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.0004224/1.208, allocations: 263.6 kB / 1.171 GB, free: 5.859 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007697/1.209, allocations: 199.9 kB / 1.171 GB, free: 5.75 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003133/1.212, allocations: 1.092 MB / 1.172 GB, free: 4.93 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.072e-05/1.212, allocations: 12 kB / 1.172 GB, free: 4.918 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/1.212, allocations: 7.984 kB / 1.172 GB, free: 4.91 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001892/1.214, allocations: 0.7842 MB / 1.173 GB, free: 4.109 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007348/1.221, allocations: 2.905 MB / 1.176 GB, free: 1.137 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/1.221, allocations: 7.938 kB / 1.176 GB, free: 1.129 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007958/1.222, allocations: 160 kB / 1.176 GB, free: 0.9727 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/1.222, allocations: 24.84 kB / 1.176 GB, free: 0.9453 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.28e-05/1.222, allocations: 31.98 kB / 1.176 GB, free: 0.9141 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/1.223, allocations: 1.426 MB / 1.177 GB, free: 15.35 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.223, allocations: 7.938 kB / 1.177 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003975/1.227, allocations: 1.618 MB / 1.179 GB, free: 13.69 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/1.229, allocations: 406 kB / 1.179 GB, free: 13.27 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008311/1.23, allocations: 19.98 kB / 1.179 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/1.231, allocations: 75.86 kB / 1.179 GB, free: 13.18 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/1.231, allocations: 64.42 kB / 1.179 GB, free: 13.11 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/1.232, allocations: 31.97 kB / 1.179 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.003161/1.235, allocations: 1.446 MB / 1.181 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.8e-07/1.235, allocations: 4 kB / 1.181 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.005188/1.24, allocations: 1.099 MB / 1.182 GB, free: 10.52 MB / 0.8887 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.002245/1.242, allocations: 0.6639 MB / 1.183 GB, free: 9.887 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.005372/1.248, allocations: 2.174 MB / 1.185 GB, free: 7.695 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/1.248, allocations: 64 / 1.185 GB, free: 7.695 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.00146/1.249, allocations: 0.545 MB / 1.185 GB, free: 7.133 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006846/1.256, allocations: 1.107 MB / 1.186 GB, free: 6.059 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009061/1.265, allocations: 3.862 MB / 1.19 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001847/1.267, allocations: 1.562 MB / 1.192 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008407/1.268, allocations: 179.4 kB / 1.192 GB, free: 384 kB / 0.8887 GB Notification: Performance of SimCode: time 1.052e-06/1.268, allocations: 0 / 1.192 GB, free: 384 kB / 0.8887 GB Notification: Performance of Templates: time 0.07153/1.339, allocations: 42.14 MB / 1.233 GB, free: 6.508 MB / 0.9356 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