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.308/1.308, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001016/0.001016, allocations: 184.7 kB / 326.5 MB, free: 2.23 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.491/1.491, allocations: 205.4 MB / 0.5775 GB, free: 20.55 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.0009631/0.0009628, allocations: 91.92 kB / 0.6821 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003054, allocations: 11.41 kB / 0.7962 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1786, allocations: 106.3 MB / 0.9001 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8397/1.018, allocations: 440.4 MB / 1.33 GB, free: 9.047 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/1.019, allocations: 104.9 kB / 1.33 GB, free: 8.992 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.145/5.163, allocations: 1.106 GB / 2.437 GB, free: 127.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.064e-06/5.163, allocations: 0 / 2.437 GB, free: 127.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004567/5.164, allocations: 56.72 kB / 2.437 GB, free: 127.2 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.0101/5.174, allocations: 2.671 MB / 2.439 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/5.174, allocations: 9.219 kB / 2.439 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002593/5.176, allocations: 375.2 kB / 2.44 GB, free: 126.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008602/5.185, allocations: 2.501 MB / 2.442 GB, free: 125.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/5.185, allocations: 94.11 kB / 2.442 GB, free: 125.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005095/5.186, allocations: 139.6 kB / 2.442 GB, free: 125.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003837/5.19, allocations: 1.42 MB / 2.444 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-05/5.19, allocations: 3.062 kB / 2.444 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002016/5.19, allocations: 54.06 kB / 2.444 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.154e-05/5.19, allocations: 34.28 kB / 2.444 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002751/5.193, allocations: 1.038 MB / 2.445 GB, free: 125.5 MB / 0.8855 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.01104/5.204, allocations: 7.13 MB / 2.452 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/5.206, allocations: 1.298 MB / 2.453 GB, free: 121 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004171/5.21, allocations: 2.236 MB / 2.455 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000828/5.211, allocations: 447 kB / 2.456 GB, free: 119.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001101/5.212, allocations: 88.41 kB / 2.456 GB, free: 119.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=69): time 6.211e-06/5.212, allocations: 0 / 2.456 GB, free: 119.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=69): time 0.002818/5.215, allocations: 1.21 MB / 2.457 GB, free: 119.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/5.215, allocations: 166.8 kB / 2.457 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/5.217, allocations: 1.31 MB / 2.458 GB, free: 119 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001328/5.218, allocations: 43.83 kB / 2.458 GB, free: 119 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008757/5.218, allocations: 0.8947 MB / 2.459 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002384/5.219, allocations: 247.7 kB / 2.46 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.899e-05/5.219, allocations: 19.72 kB / 2.46 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.873e-05/5.219, allocations: 339 kB / 2.46 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007594/5.22, allocations: 354 kB / 2.46 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009067/5.221, allocations: 0.7243 MB / 2.461 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000867/5.221, allocations: 478.2 kB / 2.461 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/5.222, allocations: 6.812 kB / 2.461 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00245/5.224, allocations: 1.236 MB / 2.463 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008396/5.225, allocations: 3.739 MB / 2.466 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-05/5.225, allocations: 7.375 kB / 2.466 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.887e-05/5.225, allocations: 17.59 kB / 2.466 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009723/5.226, allocations: 250.1 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.059e-05/5.226, allocations: 26.16 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/5.228, allocations: 131.2 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/5.228, allocations: 49.61 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/5.228, allocations: 3.781 kB / 2.467 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002032/5.23, allocations: 1.056 MB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.365e-05/5.23, allocations: 10.81 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/5.23, allocations: 23.56 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008998/5.231, allocations: 247.5 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.68e-05/5.231, allocations: 20.38 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/5.233, allocations: 133.8 kB / 2.468 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/5.233, allocations: 49.05 kB / 2.468 GB, free: 113.6 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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.001196/5.234, allocations: 0.4977 MB / 2.469 GB, free: 113.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004767/5.235, allocations: 165 kB / 2.469 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/5.237, allocations: 1.101 MB / 2.47 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/5.237, allocations: 10.75 kB / 2.47 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/5.237, allocations: 0 / 2.47 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001472/5.239, allocations: 0.7974 MB / 2.471 GB, free: 113.1 MB / 0.8855 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.005555/5.244, allocations: 2.389 MB / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/5.244, allocations: 0 / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007378/5.245, allocations: 157.9 kB / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002217/5.245, allocations: 31.11 kB / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.409e-05/5.245, allocations: 23.06 kB / 2.473 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008596/5.246, allocations: 1.322 MB / 2.475 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/5.246, allocations: 0 / 2.475 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/5.249, allocations: 1.557 MB / 2.476 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/5.25, allocations: 353 kB / 2.476 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004947/5.251, allocations: 22.17 kB / 2.476 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/5.252, allocations: 116.8 kB / 2.477 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/5.252, allocations: 54.3 kB / 2.477 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.37e-05/5.252, allocations: 36.94 kB / 2.477 GB, free: 111 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001962/5.254, allocations: 1.01 MB / 2.478 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.9e-07/5.254, allocations: 0 / 2.478 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00515/5.259, allocations: 1.121 MB / 2.479 GB, free: 110.7 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 69 * 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.003081/5.263, allocations: 1.168 MB / 2.48 GB, free: 110.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003406/5.266, allocations: 1.605 MB / 2.481 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/5.266, allocations: 0 / 2.481 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001208/5.267, allocations: 0.5389 MB / 2.482 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/5.272, allocations: 0.7586 MB / 2.483 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009543/5.281, allocations: 3.827 MB / 2.486 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/5.283, allocations: 1.446 MB / 2.488 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002561/5.285, allocations: 427.5 kB / 2.488 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003974/5.286, allocations: 137.2 kB / 2.488 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of SimCode: time 1.603e-06/5.286, allocations: 0 / 2.488 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of Templates: time 0.06118/5.347, allocations: 36.76 MB / 2.524 GB, free: 106.2 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