Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.0008984/0.0008983, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009929/0.000993, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.438/2.438, allocations: 390.9 MB / 0.666 GB, free: 2.48 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003408, allocations: 8 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6154/0.6157, allocations: 142.4 MB / 0.9544 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05834/0.6741, allocations: 61.75 MB / 1.015 GB, free: 1.609 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02194/0.6961, allocations: 15.73 MB / 1.03 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002642/0.6987, allocations: 79.5 kB / 1.03 GB, free: 1.766 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.7012, allocations: 0.7881 MB / 1.031 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00563/0.7068, allocations: 2.114 MB / 1.033 GB, free: 14.85 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.004962/0.7118, allocations: 1.758 MB / 1.035 GB, free: 13.11 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.008387/0.7202, allocations: 5.989 MB / 1.041 GB, free: 7.109 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002586/0.7228, allocations: 1.352 MB / 1.042 GB, free: 5.73 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004024/0.7269, allocations: 1.672 MB / 1.044 GB, free: 4.051 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002097/0.729, allocations: 1.376 MB / 1.045 GB, free: 2.668 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002241/0.7292, allocations: 76 kB / 1.045 GB, free: 2.594 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003229/0.7325, allocations: 1.45 MB / 1.046 GB, free: 1.141 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0004926/0.733, allocations: 434.1 kB / 1.047 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0005567/0.7335, allocations: 440.6 kB / 1.047 GB, free: 284 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002924/0.7365, allocations: 2.642 MB / 1.05 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.7365, allocations: 0 / 1.05 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7365, allocations: 0 / 1.05 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.539e-05/0.7365, allocations: 4 kB / 1.05 GB, free: 13.62 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.003713/0.7403, allocations: 2.334 MB / 1.052 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.7403, allocations: 8.031 kB / 1.052 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001788/0.7421, allocations: 472.9 kB / 1.053 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003352/0.7454, allocations: 1.801 MB / 1.054 GB, free: 8.895 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000342/0.7458, allocations: 166.4 kB / 1.054 GB, free: 8.73 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.746, allocations: 140 kB / 1.055 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002657/0.7487, allocations: 1.474 MB / 1.056 GB, free: 7.035 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.7487, allocations: 7.938 kB / 1.056 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.7488, allocations: 52 kB / 1.056 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.231e-05/0.7489, allocations: 42.31 kB / 1.056 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.7517, allocations: 1.246 MB / 1.057 GB, free: 5.68 MB / 0.8106 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.00846/0.7601, allocations: 7.448 MB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00222/0.7624, allocations: 1.404 MB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.7634, allocations: 0.489 MB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003932/0.7674, allocations: 2.695 MB / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.7685, allocations: 0.5298 MB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003564/0.7689, allocations: 87.34 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=64): time 2.114e-06/0.7689, allocations: 0 / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64): time 0.003198/0.7721, allocations: 1.377 MB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.7722, allocations: 111.4 kB / 1.071 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.774, allocations: 1.489 MB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.228e-05/0.7741, allocations: 37.7 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000725/0.7749, allocations: 0.8996 MB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002019/0.7751, allocations: 220.8 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.275e-05/0.7751, allocations: 20 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.7753, allocations: 341.9 kB / 1.074 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000953/0.7762, allocations: 417.7 kB / 1.074 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.7774, allocations: 0.7585 MB / 1.075 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.7785, allocations: 0.5007 MB / 1.076 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.7785, allocations: 4 kB / 1.076 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002687/0.7812, allocations: 1.348 MB / 1.077 GB, free: 324 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002719/0.7815, allocations: 401 kB / 1.077 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.7815, allocations: 12 kB / 1.077 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.642e-05/0.7816, allocations: 16 kB / 1.077 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.7827, allocations: 275.6 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.112e-05/0.7827, allocations: 15.94 kB / 1.078 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.784, allocations: 160.4 kB / 1.078 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.312e-05/0.7841, allocations: 47.98 kB / 1.078 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.853e-06/0.7841, allocations: 4 kB / 1.078 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002423/0.7865, allocations: 1.173 MB / 1.079 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.7866, allocations: 8 kB / 1.079 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.7866, allocations: 19.95 kB / 1.079 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.7876, allocations: 272.2 kB / 1.079 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.032e-05/0.7876, allocations: 23.92 kB / 1.079 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.7888, allocations: 152.3 kB / 1.079 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.634e-05/0.7889, allocations: 47.98 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 119 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008172/0.7897, allocations: 488.7 kB / 1.08 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002167/0.7899, allocations: 165.9 kB / 1.08 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002692/0.7926, allocations: 1.19 MB / 1.081 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.7927, allocations: 15.97 kB / 1.081 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.7927, allocations: 0 / 1.081 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002009/0.7947, allocations: 0.8784 MB / 1.082 GB, free: 10.81 MB / 0.8419 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 postOpt removeSimpleEquations (simulation): time 0.004721/0.7994, allocations: 2.837 MB / 1.085 GB, free: 7.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.7994, allocations: 4 kB / 1.085 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007918/0.8002, allocations: 176 kB / 1.085 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001678/0.8004, allocations: 32.83 kB / 1.085 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.818e-05/0.8005, allocations: 23.98 kB / 1.085 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.8016, allocations: 1.374 MB / 1.087 GB, free: 6.145 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.8016, allocations: 0 / 1.087 GB, free: 6.145 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003358/0.805, allocations: 1.74 MB / 1.088 GB, free: 4.363 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006272/0.8056, allocations: 374.6 kB / 1.089 GB, free: 3.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.8059, allocations: 16 kB / 1.089 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.807, allocations: 139.7 kB / 1.089 GB, free: 3.824 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.8071, allocations: 68.38 kB / 1.089 GB, free: 3.754 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.583e-05/0.8072, allocations: 36.09 kB / 1.089 GB, free: 3.719 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001521/0.8087, allocations: 1.07 MB / 1.09 GB, free: 2.625 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8087, allocations: 0 / 1.09 GB, free: 2.625 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00256/0.8113, allocations: 0.955 MB / 1.091 GB, free: 1.668 MB / 0.8419 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 (75): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00107/0.8124, allocations: 0.5072 MB / 1.091 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00356/0.8159, allocations: 1.706 MB / 1.093 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.816, allocations: 3.938 kB / 1.093 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.8172, allocations: 0.6078 MB / 1.094 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003838/0.8211, allocations: 0.8458 MB / 1.094 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006097/0.8272, allocations: 3.888 MB / 1.098 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009964/0.8282, allocations: 1.397 MB / 1.1 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001779/0.83, allocations: 442.5 kB / 1.1 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/0.8304, allocations: 143.4 kB / 1.1 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of SimCode: time 8.91e-07/0.8304, allocations: 0 / 1.1 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of Templates: time 0.05399/0.8843, allocations: 32.89 MB / 1.132 GB, free: 7.574 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches