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.502/1.502, allocations: 249.5 MB / 257 MB, free: 6.957 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.001104/0.001104, allocations: 164.9 kB / 316.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.818/1.818, allocations: 205.3 MB / 0.5671 GB, free: 15.86 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.001064/0.001064, allocations: 81.22 kB / 0.6714 GB, free: 4.996 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.352e-05/2.353e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2334, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.738/1.972, allocations: 440.6 MB / 1.316 GB, free: 255.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/1.972, allocations: 94.59 kB / 1.316 GB, free: 255.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.155/6.127, allocations: 1.097 GB / 2.413 GB, free: 124.7 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.134e-06/6.127, allocations: 0.9375 kB / 2.413 GB, free: 124.7 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002598/6.128, allocations: 54.8 kB / 2.413 GB, free: 124.7 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.005481/6.133, allocations: 2.184 MB / 2.415 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/6.133, allocations: 7.031 kB / 2.415 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001902/6.135, allocations: 374.7 kB / 2.416 GB, free: 123.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005827/6.141, allocations: 2.459 MB / 2.418 GB, free: 123 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.806e-05/6.141, allocations: 39.22 kB / 2.418 GB, free: 123 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002082/6.141, allocations: 85.94 kB / 2.418 GB, free: 123 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001832/6.143, allocations: 0.8602 MB / 2.419 GB, free: 123 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/6.145, allocations: 1.178 MB / 2.42 GB, free: 122.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.635e-05/6.145, allocations: 3.656 kB / 2.42 GB, free: 122.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/6.145, allocations: 8.25 kB / 2.42 GB, free: 122.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.103e-05/6.145, allocations: 36.3 kB / 2.42 GB, free: 122.7 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.01094/6.156, allocations: 6.922 MB / 2.427 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/6.158, allocations: 1.171 MB / 2.428 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004753/6.158, allocations: 339.2 kB / 2.428 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003749/6.162, allocations: 2.239 MB / 2.43 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005132/6.163, allocations: 362.8 kB / 2.431 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007596/6.163, allocations: 71.08 kB / 2.431 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=68): time 4.137e-06/6.163, allocations: 0 / 2.431 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=68): time 0.001979/6.165, allocations: 0.8186 MB / 2.432 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/6.166, allocations: 165.3 kB / 2.432 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001684/6.167, allocations: 1.194 MB / 2.433 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.296e-05/6.167, allocations: 29.05 kB / 2.433 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007524/6.168, allocations: 0.8861 MB / 2.434 GB, free: 115.9 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/6.168, allocations: 237.1 kB / 2.434 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/6.168, allocations: 0 / 2.434 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001015/6.168, allocations: 340.7 kB / 2.434 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004099/6.169, allocations: 283.3 kB / 2.435 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005906/6.169, allocations: 0.6568 MB / 2.435 GB, free: 115 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/6.171, allocations: 472.3 kB / 2.436 GB, free: 115 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/6.171, allocations: 3.594 kB / 2.436 GB, free: 115 MB / 0.8855 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002245/6.173, allocations: 1.103 MB / 2.437 GB, free: 114.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008529/6.174, allocations: 3.731 MB / 2.441 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.967e-05/6.174, allocations: 11.41 kB / 2.441 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.333e-05/6.174, allocations: 20.86 kB / 2.441 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009235/6.175, allocations: 258.4 kB / 2.441 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.075e-05/6.175, allocations: 28.84 kB / 2.441 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/6.176, allocations: 107.2 kB / 2.441 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/6.177, allocations: 50.77 kB / 2.441 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/6.177, allocations: 7.375 kB / 2.441 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001969/6.179, allocations: 0.8871 MB / 2.442 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/6.179, allocations: 12.81 kB / 2.442 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/6.179, allocations: 18.72 kB / 2.442 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008606/6.18, allocations: 248.3 kB / 2.442 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/6.18, allocations: 21.78 kB / 2.442 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/6.181, allocations: 110.8 kB / 2.442 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.983e-05/6.181, allocations: 52.97 kB / 2.442 GB, free: 110.9 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.0003392/6.182, allocations: 138.8 kB / 2.442 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002594/6.182, allocations: 171.6 kB / 2.443 GB, free: 110.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/6.184, allocations: 0.9727 MB / 2.444 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/6.184, allocations: 7.531 kB / 2.444 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/6.184, allocations: 0 / 2.444 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001177/6.185, allocations: 0.6981 MB / 2.444 GB, free: 110.5 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.003916/6.189, allocations: 2.127 MB / 2.446 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/6.189, allocations: 3.953 kB / 2.446 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007261/6.19, allocations: 157.9 kB / 2.446 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001796/6.19, allocations: 28.97 kB / 2.447 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.995e-05/6.19, allocations: 17.39 kB / 2.447 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007827/6.191, allocations: 1.273 MB / 2.448 GB, free: 109 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/6.191, allocations: 3.688 kB / 2.448 GB, free: 109 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/6.193, allocations: 1.384 MB / 2.449 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007929/6.194, allocations: 346.9 kB / 2.449 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/6.194, allocations: 3.562 kB / 2.449 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009306/6.195, allocations: 101.8 kB / 2.45 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/6.195, allocations: 61.86 kB / 2.45 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.91e-05/6.195, allocations: 40.11 kB / 2.45 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001512/6.197, allocations: 0.894 MB / 2.451 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/6.197, allocations: 0 / 2.451 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004166/6.201, allocations: 1.072 MB / 2.452 GB, free: 108.1 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.002726/6.204, allocations: 1.133 MB / 2.453 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002696/6.206, allocations: 1.423 MB / 2.454 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/6.206, allocations: 3.062 kB / 2.454 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0008019/6.207, allocations: 473.8 kB / 2.455 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004249/6.212, allocations: 0.7429 MB / 2.455 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004982/6.217, allocations: 2.34 MB / 2.458 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009078/6.217, allocations: 1.449 MB / 2.459 GB, free: 106.1 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002548/6.22, allocations: 0.5497 MB / 2.459 GB, free: 106 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/6.22, allocations: 107.8 kB / 2.46 GB, free: 106 MB / 0.8855 GB Notification: Performance of SimCode: time 1.163e-06/6.22, allocations: 0 / 2.46 GB, free: 106 MB / 0.8855 GB Notification: Performance of Templates: time 0.05999/6.28, allocations: 35.44 MB / 2.494 GB, free: 100.6 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