Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.485/1.485, allocations: 249.3 MB / 261.8 MB, free: 5.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 182.6 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.2 MB / 0.572 GB, free: 10.71 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008721/0.0008721, allocations: 86.48 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.168e-05/3.171e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2015, allocations: 106.3 MB / 0.8918 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.607/1.808, allocations: 440.4 MB / 1.322 GB, free: 298.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/1.808, allocations: 93.94 kB / 1.322 GB, free: 298.8 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.433/6.241, allocations: 1.103 GB / 2.425 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.064e-06/6.241, allocations: 0 / 2.425 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004871/6.242, allocations: 59.78 kB / 2.425 GB, free: 121.4 MB / 0.8855 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.008597/6.25, allocations: 2.178 MB / 2.427 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.73e-05/6.25, allocations: 9.875 kB / 2.427 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00279/6.253, allocations: 371.1 kB / 2.427 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008631/6.262, allocations: 2.455 MB / 2.43 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/6.262, allocations: 102.2 kB / 2.43 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005513/6.263, allocations: 139.8 kB / 2.43 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003599/6.266, allocations: 1.346 MB / 2.431 GB, free: 119.4 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.878e-05/6.266, allocations: 6.469 kB / 2.431 GB, free: 119.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002076/6.266, allocations: 65.84 kB / 2.431 GB, free: 119.4 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.902e-05/6.267, allocations: 35.41 kB / 2.431 GB, free: 119.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002189/6.269, allocations: 0.9177 MB / 2.432 GB, free: 119.4 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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.01079/6.28, allocations: 7.124 MB / 2.439 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/6.281, allocations: 1.18 MB / 2.44 GB, free: 114.8 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004949/6.281, allocations: 348.5 kB / 2.441 GB, free: 114.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003503/6.285, allocations: 2.267 MB / 2.443 GB, free: 113.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006055/6.285, allocations: 392.2 kB / 2.443 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006813/6.286, allocations: 89.58 kB / 2.443 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=68): time 3.847e-06/6.286, allocations: 0 / 2.443 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=68): time 0.001333/6.288, allocations: 0.7435 MB / 2.444 GB, free: 113.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.864e-05/6.288, allocations: 169.9 kB / 2.444 GB, free: 113 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001753/6.289, allocations: 1.289 MB / 2.446 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.692e-05/6.289, allocations: 47.12 kB / 2.446 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007483/6.29, allocations: 0.8916 MB / 2.446 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/6.29, allocations: 244.2 kB / 2.447 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.761e-05/6.29, allocations: 19.03 kB / 2.447 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001063/6.291, allocations: 343.4 kB / 2.447 GB, free: 112 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004508/6.291, allocations: 292.8 kB / 2.447 GB, free: 112 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006817/6.292, allocations: 0.6676 MB / 2.448 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005933/6.292, allocations: 426.8 kB / 2.448 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.301e-06/6.292, allocations: 0 / 2.448 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001639/6.294, allocations: 1.116 MB / 2.449 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009239/6.295, allocations: 3.739 MB / 2.453 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/6.295, allocations: 10.53 kB / 2.453 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.273e-05/6.295, allocations: 14.72 kB / 2.453 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008995/6.296, allocations: 253.9 kB / 2.453 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-05/6.296, allocations: 18.67 kB / 2.453 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/6.297, allocations: 132.1 kB / 2.454 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/6.297, allocations: 54.67 kB / 2.454 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/6.297, allocations: 5.969 kB / 2.454 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001506/6.299, allocations: 0.9394 MB / 2.454 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/6.299, allocations: 12 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/6.299, allocations: 17.25 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008419/6.3, allocations: 251.2 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/6.3, allocations: 19.3 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/6.301, allocations: 135.6 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.394e-05/6.301, allocations: 53.05 kB / 2.455 GB, free: 107.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 117 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0003078/6.302, allocations: 173.5 kB / 2.455 GB, free: 107.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/6.302, allocations: 170 kB / 2.455 GB, free: 107.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/6.304, allocations: 0.9844 MB / 2.456 GB, free: 107 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.73e-05/6.304, allocations: 14.52 kB / 2.456 GB, free: 107 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/6.304, allocations: 0 / 2.456 GB, free: 107 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009759/6.305, allocations: 0.6851 MB / 2.457 GB, free: 106.9 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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.004022/6.309, allocations: 2.284 MB / 2.459 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/6.309, allocations: 0 / 2.459 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007176/6.31, allocations: 157.7 kB / 2.459 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/6.31, allocations: 29.94 kB / 2.459 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.689e-05/6.31, allocations: 28.73 kB / 2.459 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008063/6.311, allocations: 1.303 MB / 2.461 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/6.311, allocations: 3.438 kB / 2.461 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/6.313, allocations: 1.389 MB / 2.462 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007453/6.313, allocations: 352.6 kB / 2.462 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/6.314, allocations: 15.56 kB / 2.462 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00093/6.314, allocations: 112.6 kB / 2.462 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/6.315, allocations: 56.33 kB / 2.463 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.443e-05/6.315, allocations: 36.09 kB / 2.463 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001485/6.316, allocations: 0.9869 MB / 2.464 GB, free: 104.7 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.51e-07/6.316, allocations: 0 / 2.464 GB, free: 104.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004259/6.32, allocations: 1.12 MB / 2.465 GB, free: 104.5 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[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) * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002844/6.323, allocations: 1.177 MB / 2.466 GB, free: 104.1 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002595/6.326, allocations: 1.501 MB / 2.467 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/6.326, allocations: 0 / 2.467 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007498/6.327, allocations: 498.8 kB / 2.468 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004042/6.331, allocations: 0.7671 MB / 2.468 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/6.336, allocations: 2.372 MB / 2.471 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009643/6.337, allocations: 1.452 MB / 2.472 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002764/6.339, allocations: 0.551 MB / 2.473 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002924/6.34, allocations: 111.9 kB / 2.473 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.613e-06/6.34, allocations: 0 / 2.473 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of Templates: time 0.07624/6.416, allocations: 41.36 MB / 2.513 GB, free: 91.34 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches