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.0009079/0.0009079, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001068/0.001068, allocations: 177.3 kB / 15.94 MB, free: 220 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.373/1.373, allocations: 223.2 MB / 239.9 MB, free: 5.441 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.36/2.36, allocations: 390.2 MB / 0.6653 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003572, allocations: 8 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7513/0.7516, allocations: 142.3 MB / 0.9535 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05924/0.8109, allocations: 56.19 MB / 1.008 GB, free: 7.836 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02352/0.8345, allocations: 14.59 MB / 1.023 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004331/0.8389, allocations: 75.5 kB / 1.023 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.004755/0.8437, allocations: 0.9677 MB / 1.024 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01074/0.8545, allocations: 2.713 MB / 1.026 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0069/0.8614, allocations: 2.186 MB / 1.028 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.007266/0.8686, allocations: 3.152 MB / 1.032 GB, free: 136 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002669/0.8714, allocations: 1.364 MB / 1.033 GB, free: 14.75 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003498/0.8749, allocations: 1.463 MB / 1.034 GB, free: 13.28 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001663/0.8766, allocations: 0.9798 MB / 1.035 GB, free: 12.29 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002101/0.8768, allocations: 76 kB / 1.035 GB, free: 12.22 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003183/0.88, allocations: 1.342 MB / 1.037 GB, free: 10.88 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0004447/0.8804, allocations: 406.4 kB / 1.037 GB, free: 10.48 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000564/0.881, allocations: 444.5 kB / 1.037 GB, free: 10.04 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00314/0.8842, allocations: 2.58 MB / 1.04 GB, free: 7.449 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.8842, allocations: 0 / 1.04 GB, free: 7.449 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.366e-06/0.8842, allocations: 0 / 1.04 GB, free: 7.449 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.624e-05/0.8842, allocations: 3.938 kB / 1.04 GB, free: 7.445 MB / 0.795 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.004264/0.8885, allocations: 2.306 MB / 1.042 GB, free: 5.066 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.8885, allocations: 8.031 kB / 1.042 GB, free: 5.059 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002091/0.8906, allocations: 484.8 kB / 1.043 GB, free: 4.582 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003594/0.8943, allocations: 1.723 MB / 1.044 GB, free: 2.809 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000386/0.8947, allocations: 166.4 kB / 1.045 GB, free: 2.645 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.8949, allocations: 139.9 kB / 1.045 GB, free: 2.508 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002681/0.8976, allocations: 1.454 MB / 1.046 GB, free: 0.9688 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.222e-05/0.8976, allocations: 3.938 kB / 1.046 GB, free: 0.9648 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.8977, allocations: 52 kB / 1.046 GB, free: 0.9141 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.138e-05/0.8978, allocations: 46.31 kB / 1.046 GB, free: 0.8672 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002861/0.9007, allocations: 1.235 MB / 1.047 GB, free: 15.62 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.01043/0.9111, allocations: 7.497 MB / 1.055 GB, free: 7.543 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00259/0.9137, allocations: 1.406 MB / 1.056 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004863/0.9186, allocations: 2.695 MB / 1.059 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/0.9198, allocations: 0.4911 MB / 1.059 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006455/0.9205, allocations: 95.19 kB / 1.059 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=66): time 2.775e-06/0.9205, allocations: 0 / 1.059 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of matching and sorting (n=66): time 0.003523/0.924, allocations: 1.37 MB / 1.061 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.9241, allocations: 67.97 kB / 1.061 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002237/0.9264, allocations: 1.528 MB / 1.062 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.949e-05/0.9265, allocations: 45.7 kB / 1.062 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008877/0.9274, allocations: 0.888 MB / 1.063 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002659/0.9276, allocations: 240.6 kB / 1.063 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-05/0.9277, allocations: 16 kB / 1.063 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001917/0.9279, allocations: 345.9 kB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.9289, allocations: 401.8 kB / 1.064 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.9302, allocations: 0.7576 MB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.9313, allocations: 0.5045 MB / 1.065 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/0.9314, allocations: 0 / 1.065 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003007/0.9344, allocations: 1.333 MB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.001567/0.936, allocations: 3.817 MB / 1.07 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.936, allocations: 12 kB / 1.07 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.417e-05/0.936, allocations: 16 kB / 1.07 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.9372, allocations: 283.6 kB / 1.071 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.181e-05/0.9373, allocations: 23.92 kB / 1.071 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.9391, allocations: 152.5 kB / 1.071 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.9392, allocations: 55.97 kB / 1.071 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.9392, allocations: 7.938 kB / 1.071 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002621/0.9418, allocations: 1.169 MB / 1.072 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.9419, allocations: 8 kB / 1.072 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.9419, allocations: 19.95 kB / 1.072 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.943, allocations: 279.7 kB / 1.072 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.037e-05/0.943, allocations: 23.92 kB / 1.072 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/0.9446, allocations: 162 kB / 1.072 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.9448, allocations: 55.98 kB / 1.072 GB, free: 4.391 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (122): * Single equations (assignments): 120 * 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.0009801/0.9458, allocations: 494.5 kB / 1.073 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003584/0.9461, allocations: 169.8 kB / 1.073 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002878/0.949, allocations: 1.198 MB / 1.074 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.949, allocations: 4 kB / 1.074 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.949, allocations: 4 kB / 1.074 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002112/0.9512, allocations: 0.8901 MB / 1.075 GB, free: 1.602 MB / 0.8262 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.005468/0.9566, allocations: 2.733 MB / 1.078 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.9567, allocations: 0 / 1.078 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008431/0.9575, allocations: 180 kB / 1.078 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002307/0.9578, allocations: 40.83 kB / 1.078 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.239e-05/0.9579, allocations: 23.98 kB / 1.078 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.959, allocations: 1.386 MB / 1.079 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.959, allocations: 4.281 kB / 1.079 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003909/0.963, allocations: 1.882 MB / 1.081 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009996/0.964, allocations: 386.6 kB / 1.082 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.9642, allocations: 16 kB / 1.082 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.9655, allocations: 147.7 kB / 1.082 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.9656, allocations: 60.47 kB / 1.082 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.07e-05/0.9657, allocations: 31.98 kB / 1.082 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001754/0.9675, allocations: 1.117 MB / 1.083 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9675, allocations: 0 / 1.083 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003141/0.9706, allocations: 0.9784 MB / 1.084 GB, free: 8.246 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (76): * Single equations (assignments): 68 * 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.001305/0.9719, allocations: 0.5295 MB / 1.084 GB, free: 7.715 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003884/0.9758, allocations: 1.703 MB / 1.086 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.9759, allocations: 0 / 1.086 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.9772, allocations: 0.6045 MB / 1.087 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004168/0.9814, allocations: 0.8468 MB / 1.088 GB, free: 4.527 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006698/0.9881, allocations: 3.899 MB / 1.091 GB, free: 0.5625 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.9894, allocations: 1.44 MB / 1.093 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002357/0.9917, allocations: 430.6 kB / 1.093 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005247/0.9923, allocations: 147.4 kB / 1.093 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of SimCode: time 1.021e-06/0.9923, allocations: 4 kB / 1.093 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of Templates: time 0.06207/1.054, allocations: 33.72 MB / 1.126 GB, free: 13.25 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","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches