Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.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.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.TSetCoo|hex.TSetHea|temCol.T|temWar.T|hex.valHea.y|hex.valCoo.y|hex.QWat_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating") translateModel(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.TSetCoo|hex.TSetHea|temCol.T|temWar.T|hex.valHea.y|hex.valCoo.y|hex.QWat_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.395/1.395, allocations: 249.3 MB / 261.8 MB, free: 5.898 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.00101/0.00101, allocations: 189.7 kB / 321.3 MB, free: 14.63 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.303/1.303, allocations: 205.2 MB / 0.572 GB, free: 10.61 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.000832/0.0008318, allocations: 94.45 kB / 0.6764 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.864e-05/2.868e-05, allocations: 0 / 0.7879 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2006, allocations: 106.3 MB / 0.8918 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.517/1.717, allocations: 439 MB / 1.32 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/1.718, allocations: 91.86 kB / 1.321 GB, free: 251.8 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.094/5.811, allocations: 1.241 GB / 2.561 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.673e-06/5.811, allocations: 3.938 kB / 2.561 GB, free: 12.45 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003134/5.812, allocations: 79.91 kB / 2.561 GB, free: 12.38 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: 470 * Number of variables: 470 Notification: Performance of Generate backend data structure: time 0.006774/5.819, allocations: 2.728 MB / 2.564 GB, free: 9.594 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/5.819, allocations: 8.031 kB / 2.564 GB, free: 9.586 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005165/5.824, allocations: 1.011 MB / 2.565 GB, free: 8.57 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006859/5.831, allocations: 2.915 MB / 2.568 GB, free: 5.586 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/5.831, allocations: 147.7 kB / 2.568 GB, free: 5.441 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004367/5.831, allocations: 200 kB / 2.568 GB, free: 5.246 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003568/5.835, allocations: 2.123 MB / 2.57 GB, free: 3.035 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.275e-05/5.835, allocations: 3.938 kB / 2.57 GB, free: 3.031 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001793/5.835, allocations: 76 kB / 2.57 GB, free: 2.957 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.613e-05/5.835, allocations: 55.98 kB / 2.57 GB, free: 2.902 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002657/5.838, allocations: 1.666 MB / 2.572 GB, free: 1.234 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.01807/5.856, allocations: 12.12 MB / 2.584 GB, free: 4.266 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005399/5.861, allocations: 1.64 MB / 2.585 GB, free: 2.613 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/5.862, allocations: 0.6565 MB / 2.586 GB, free: 1.953 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00121/5.864, allocations: 1.366 MB / 2.587 GB, free: 300 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/5.864, allocations: 47.56 kB / 2.588 GB, free: 244 kB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002146/5.866, allocations: 282.5 kB / 2.588 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=105): time 5.54e-06/5.866, allocations: 3.984 kB / 2.588 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111): time 0.008556/5.874, allocations: 3.325 MB / 2.591 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/5.875, allocations: 171.2 kB / 2.591 GB, free: 12.37 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004693/5.879, allocations: 1.799 MB / 2.593 GB, free: 10.55 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003268/5.88, allocations: 49.7 kB / 2.593 GB, free: 10.49 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001479/5.881, allocations: 1.2 MB / 2.594 GB, free: 9.277 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005907/5.882, allocations: 382.4 kB / 2.595 GB, free: 8.898 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/5.882, allocations: 28 kB / 2.595 GB, free: 8.871 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002292/5.882, allocations: 361.9 kB / 2.595 GB, free: 8.512 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/5.884, allocations: 0.5507 MB / 2.595 GB, free: 7.961 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/5.885, allocations: 1.038 MB / 2.596 GB, free: 6.73 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/5.887, allocations: 0.6591 MB / 2.597 GB, free: 6.07 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/5.887, allocations: 4 kB / 2.597 GB, free: 6.066 MB / 0.9167 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.008022/5.895, allocations: 2.46 MB / 2.6 GB, free: 3.59 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.7353/6.63, allocations: 3.727 MB / 2.603 GB, free: 99.43 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.56e-05/6.63, allocations: 8.75 kB / 2.603 GB, free: 99.43 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005168/6.635, allocations: 1.083 MB / 2.604 GB, free: 99.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/6.637, allocations: 332.7 kB / 2.605 GB, free: 99.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/6.648, allocations: 5.257 MB / 2.61 GB, free: 97.59 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00408/6.652, allocations: 408.6 kB / 2.61 GB, free: 97.59 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003079/6.653, allocations: 73.42 kB / 2.61 GB, free: 97.59 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/6.653, allocations: 8.281 kB / 2.61 GB, free: 97.59 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005944/6.659, allocations: 2.103 MB / 2.612 GB, free: 97.55 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/6.659, allocations: 8.875 kB / 2.612 GB, free: 97.55 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002382/6.661, allocations: 0.5979 MB / 2.613 GB, free: 97.53 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/6.663, allocations: 392.3 kB / 2.613 GB, free: 97.53 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/6.674, allocations: 6.211 MB / 2.619 GB, free: 94.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003791/6.678, allocations: 355.7 kB / 2.62 GB, free: 94.89 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002664/6.678, allocations: 76.66 kB / 2.62 GB, free: 94.89 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 16,3 36} Notification: Performance of prepare postOptimizeDAE: time 0.0005482/6.678, allocations: 192.1 kB / 2.62 GB, free: 94.79 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004869/6.679, allocations: 232 kB / 2.62 GB, free: 94.79 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/6.683, allocations: 1.862 MB / 2.622 GB, free: 94.69 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/6.683, allocations: 22.78 kB / 2.622 GB, free: 94.69 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/6.683, allocations: 0 / 2.622 GB, free: 94.69 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002081/6.685, allocations: 1.697 MB / 2.624 GB, free: 94.21 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008597/6.694, allocations: 4.238 MB / 2.628 GB, free: 93.81 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/6.694, allocations: 1.344 kB / 2.628 GB, free: 93.81 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/6.695, allocations: 260.5 kB / 2.628 GB, free: 93.81 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/6.697, allocations: 0.6164 MB / 2.629 GB, free: 93.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/6.697, allocations: 35.52 kB / 2.629 GB, free: 93.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001533/6.699, allocations: 1.23 MB / 2.63 GB, free: 93.27 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/6.699, allocations: 1.906 kB / 2.63 GB, free: 93.27 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004874/6.704, allocations: 2.637 MB / 2.632 GB, free: 92.91 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/6.706, allocations: 0.5157 MB / 2.633 GB, free: 92.69 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003414/6.706, allocations: 20.56 kB / 2.633 GB, free: 92.69 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/6.708, allocations: 308 kB / 2.633 GB, free: 92.69 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/6.708, allocations: 75.64 kB / 2.633 GB, free: 92.68 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/6.709, allocations: 48.61 kB / 2.633 GB, free: 92.68 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.002788/6.711, allocations: 1.369 MB / 2.635 GB, free: 92.52 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.91e-07/6.711, allocations: 1.938 kB / 2.635 GB, free: 92.52 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.006322/6.718, allocations: 1.285 MB / 2.636 GB, free: 92.52 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (hex.port_b1.h_outflow,hex.port_a2.h_outflow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * 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: 0 * Non-linear torn systems: 1 {3 37} Notification: Performance of Backend phase and start with SimCode phase: time 0.002384/6.72, allocations: 1.152 MB / 2.637 GB, free: 92.28 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00619/6.726, allocations: 2.967 MB / 2.64 GB, free: 91.84 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 8.076e-06/6.726, allocations: 1.875 kB / 2.64 GB, free: 91.84 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001517/6.728, allocations: 0.7073 MB / 2.641 GB, free: 91.83 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0071/6.735, allocations: 1.125 MB / 2.642 GB, free: 91.81 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/6.748, allocations: 3.714 MB / 2.645 GB, free: 90.95 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001539/6.749, allocations: 1.68 MB / 2.647 GB, free: 90.2 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.004065/6.753, allocations: 0.5928 MB / 2.648 GB, free: 90.18 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000451/6.754, allocations: 138 kB / 2.648 GB, free: 90.17 MB / 0.9167 GB Notification: Performance of SimCode: time 2.134e-06/6.754, allocations: 1.719 kB / 2.648 GB, free: 90.17 MB / 0.9167 GB Notification: Performance of Templates: time 0.1052/6.859, allocations: 67.43 MB / 2.714 GB, free: 87.48 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.makefile (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.sim & ./Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Experimental_DistrictHeatingCooling_Plants_Validation_LakeWaterHeatExchanger_T_Heating.csv","../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches