Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Boilers.Examples.BoilerPolynomialClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop") translateModel(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 104 kB / 16.36 MB, free: 6.301 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.001883/0.001883, allocations: 192.1 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.796/1.796, allocations: 292.3 MB / 0.5496 GB, free: 17.47 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 71.91 kB / 0.6729 GB, free: 5.82 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2433, allocations: 114.6 MB / 0.7848 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop): time 0.6379/0.8813, allocations: 280.9 MB / 1.059 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.08203/0.9634, allocations: 53.34 MB / 1.111 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01484/0.9783, allocations: 306.1 kB / 1.112 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.01054/0.9889, allocations: 2.939 MB / 1.114 GB, free: 8.156 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.02299/1.012, allocations: 6.766 MB / 1.121 GB, free: 1.367 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.01909/1.031, allocations: 6.641 MB / 1.127 GB, free: 10.82 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.6114/1.642, allocations: 12.49 MB / 1.14 GB, free: 67.64 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007974/1.651, allocations: 4.777 MB / 1.144 GB, free: 67.19 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01497/1.666, allocations: 5.602 MB / 1.15 GB, free: 67.19 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01007/1.676, allocations: 3.882 MB / 1.154 GB, free: 67 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.00303/1.679, allocations: 463.6 kB / 1.154 GB, free: 67 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01099/1.69, allocations: 3.054 MB / 1.157 GB, free: 67 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.003915/1.694, allocations: 1.354 MB / 1.158 GB, free: 66.79 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.00975/1.703, allocations: 2.848 MB / 1.161 GB, free: 65.96 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0207/1.724, allocations: 8.014 MB / 1.169 GB, free: 65.09 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/1.724, allocations: 0 / 1.169 GB, free: 65.09 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.864e-06/1.724, allocations: 0 / 1.169 GB, free: 65.09 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0003117/1.725, allocations: 0.6875 kB / 1.169 GB, free: 65.09 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 679 * Number of variables: 679 Notification: Performance of Generate backend data structure: time 0.02115/1.746, allocations: 6.067 MB / 1.175 GB, free: 62.48 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/1.746, allocations: 10.09 kB / 1.175 GB, free: 62.48 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005825/1.752, allocations: 0.9388 MB / 1.176 GB, free: 62.18 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01252/1.764, allocations: 4.086 MB / 1.18 GB, free: 61.2 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003707/1.765, allocations: 221.8 kB / 1.18 GB, free: 61.2 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001382/1.766, allocations: 298.4 kB / 1.18 GB, free: 61.19 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008556/1.775, allocations: 3.202 MB / 1.183 GB, free: 60.77 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.587e-05/1.775, allocations: 4.688 kB / 1.183 GB, free: 60.77 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003617/1.775, allocations: 110.1 kB / 1.184 GB, free: 60.77 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.41e-05/1.775, allocations: 69.69 kB / 1.184 GB, free: 60.77 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007237/1.782, allocations: 2.576 MB / 1.186 GB, free: 60.72 MB / 0.92 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.03122/1.814, allocations: 18.07 MB / 1.204 GB, free: 50.29 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00401/1.818, allocations: 1.785 MB / 1.205 GB, free: 50.14 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002051/1.82, allocations: 0.9966 MB / 1.206 GB, free: 50.12 MB / 0.92 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 evalFunc (simulation): time 0.008991/1.829, allocations: 3.738 MB / 1.21 GB, free: 48.94 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/1.829, allocations: 51 kB / 1.21 GB, free: 48.9 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003541/1.832, allocations: 390.4 kB / 1.211 GB, free: 48.8 MB / 0.92 GB Notification: Performance of pre-optimization done (n=140): time 1.463e-05/1.833, allocations: 0 / 1.211 GB, free: 48.8 MB / 0.92 GB Notification: Performance of matching and sorting (n=145): time 0.03408/1.867, allocations: 8.357 MB / 1.219 GB, free: 47.25 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.056e-05/1.867, allocations: 247.8 kB / 1.219 GB, free: 46.97 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008973/1.876, allocations: 4.01 MB / 1.223 GB, free: 46.64 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0009288/1.877, allocations: 65.64 kB / 1.223 GB, free: 46.61 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.003614/1.88, allocations: 2.226 MB / 1.225 GB, free: 46.02 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001088/1.881, allocations: 0.5065 MB / 1.226 GB, free: 45.7 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001901/1.883, allocations: 0.5061 MB / 1.226 GB, free: 45.66 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 6.246e-05/1.883, allocations: 308.9 kB / 1.226 GB, free: 45.36 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002126/1.886, allocations: 0.9585 MB / 1.227 GB, free: 45.32 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002529/1.888, allocations: 1.811 MB / 1.229 GB, free: 44.3 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004692/1.893, allocations: 2.578 MB / 1.232 GB, free: 43.53 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.428e-05/1.893, allocations: 11.28 kB / 1.232 GB, free: 43.53 MB / 0.92 GB Notification: Performance of matching and sorting (n=283) (initialization): time 0.01466/1.908, allocations: 4.228 MB / 1.236 GB, free: 43.11 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/1.908, allocations: 14.41 kB / 1.236 GB, free: 43.11 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.787e-05/1.908, allocations: 25.84 kB / 1.236 GB, free: 43.11 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006988/1.915, allocations: 1.242 MB / 1.237 GB, free: 43.06 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002509/1.917, allocations: 0.4935 MB / 1.237 GB, free: 43.05 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/1.929, allocations: 7.112 MB / 1.244 GB, free: 38.93 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004677/1.933, allocations: 165.5 kB / 1.245 GB, free: 38.89 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007324/1.934, allocations: 128 kB / 1.245 GB, free: 38.87 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004287/1.938, allocations: 1.569 MB / 1.246 GB, free: 38.61 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002546/1.941, allocations: 1.751 MB / 1.248 GB, free: 37.42 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004286/1.945, allocations: 2.47 MB / 1.25 GB, free: 36.5 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.613e-05/1.945, allocations: 5.688 kB / 1.25 GB, free: 36.5 MB / 0.92 GB Notification: Performance of matching and sorting (n=283) (initialization_lambda0): time 0.01382/1.959, allocations: 4.077 MB / 1.254 GB, free: 35.38 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/1.959, allocations: 12.47 kB / 1.254 GB, free: 35.38 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.013e-05/1.959, allocations: 26.45 kB / 1.254 GB, free: 35.38 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006563/1.966, allocations: 1.191 MB / 1.256 GB, free: 34.93 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002286/1.968, allocations: 493.5 kB / 1.256 GB, free: 34.84 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/1.98, allocations: 8.618 MB / 1.264 GB, free: 29.48 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004825/1.985, allocations: 180.4 kB / 1.265 GB, free: 29.43 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006271/1.985, allocations: 126.9 kB / 1.265 GB, free: 29.41 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 3 (onOffController.y,$PRE.onOffController.y,conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (242): * Single equations (assignments): 231 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (7,13,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0008416/1.986, allocations: 334 kB / 1.265 GB, free: 29.21 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/1.988, allocations: 450.1 kB / 1.265 GB, free: 28.97 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008438/1.996, allocations: 3.145 MB / 1.269 GB, free: 28.13 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-05/1.996, allocations: 17.78 kB / 1.269 GB, free: 28.13 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/1.996, allocations: 4.75 kB / 1.269 GB, free: 28.13 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005975/2.002, allocations: 2.42 MB / 1.271 GB, free: 26.36 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/2.016, allocations: 5.957 MB / 1.277 GB, free: 22.28 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/2.016, allocations: 0 / 1.277 GB, free: 22.28 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/2.018, allocations: 332 kB / 1.277 GB, free: 21.98 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002794/2.021, allocations: 0.6376 MB / 1.278 GB, free: 21.41 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002466/2.021, allocations: 50.03 kB / 1.278 GB, free: 21.39 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005824/2.027, allocations: 5.469 MB / 1.283 GB, free: 16.6 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/2.027, allocations: 0 / 1.283 GB, free: 16.6 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009654/2.037, allocations: 4.012 MB / 1.287 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00243/2.039, allocations: 0.6826 MB / 1.288 GB, free: 12.7 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001588/2.041, allocations: 45.53 kB / 1.288 GB, free: 12.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003615/2.044, allocations: 143.8 kB / 1.288 GB, free: 12.52 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003868/2.045, allocations: 117.8 kB / 1.288 GB, free: 12.4 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002443/2.045, allocations: 68.58 kB / 1.288 GB, free: 12.34 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.005975/2.051, allocations: 2.666 MB / 1.291 GB, free: 9.688 MB / 0.92 GB Notification: Performance of sort global known variables: time 8.72e-07/2.051, allocations: 0 / 1.291 GB, free: 9.688 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.01249/2.063, allocations: 1.926 MB / 1.292 GB, free: 7.762 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (boi.heaCapDry.T,val.filter.x[1],val.filter.x[2],pumLoa.filter.x[1],pumLoa.filter.x[2],pumBoi.filter.x[1],pumBoi.filter.x[2],conPID.I.y,exp.m,exp.H,vol.dynBal.U) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (7,13,85.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002902/2.066, allocations: 0.8382 MB / 1.293 GB, free: 7 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0116/2.078, allocations: 5.025 MB / 1.298 GB, free: 2.016 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/2.078, allocations: 0 / 1.298 GB, free: 2.016 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.003295/2.081, allocations: 1.475 MB / 1.3 GB, free: 0.543 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01385/2.095, allocations: 2.234 MB / 1.302 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01783/2.113, allocations: 7.538 MB / 1.309 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00378/2.117, allocations: 2.481 MB / 1.312 GB, free: 4.406 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/2.119, allocations: 350.4 kB / 1.312 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of SimCode: time 1.102e-06/2.119, allocations: 0 / 1.312 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of Templates: time 0.1772/2.296, allocations: 134 MB / 1.443 GB, free: 14.99 MB / 1.076 GB make -j1 -f Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.makefile (rm -f Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe ; mkfifo Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe >> ../files/Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.sim & ./Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe 2>&1)