Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2") translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09194/0.09194, allocations: 21.61 MB / 36.56 MB, free: 1.066 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 187.3 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.202/1.202, allocations: 223.2 MB / 272.1 MB, free: 1.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008155/0.0008154, allocations: 99.86 kB / 328.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003048, allocations: 8 kB / 397 MB, free: 46.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07751/0.07783, allocations: 55.82 MB / 452.9 MB, free: 6.68 MB / 314.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.001889/0.07975, allocations: 1.761 MB / 454.6 MB, free: 4.906 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009061/0.08067, allocations: 0.6276 MB / 455.2 MB, free: 4.273 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.674e-05/0.08077, allocations: 4 kB / 455.3 MB, free: 4.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.08099, allocations: 43.7 kB / 455.3 MB, free: 4.227 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.08115, allocations: 55.84 kB / 455.4 MB, free: 4.172 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.08148, allocations: 155.7 kB / 455.5 MB, free: 4.02 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002946/0.08178, allocations: 271.5 kB / 455.8 MB, free: 3.754 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.08191, allocations: 73.89 kB / 455.8 MB, free: 3.684 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.08207, allocations: 127.6 kB / 456 MB, free: 3.559 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.08224, allocations: 135.5 kB / 456.1 MB, free: 3.426 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.146e-05/0.08228, allocations: 12 kB / 456.1 MB, free: 3.414 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.08232, allocations: 15.94 kB / 456.1 MB, free: 3.398 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.351e-05/0.08241, allocations: 75.72 kB / 456.2 MB, free: 3.324 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.338e-05/0.08247, allocations: 69.52 kB / 456.3 MB, free: 3.25 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002104/0.08269, allocations: 255.5 kB / 456.5 MB, free: 3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.0827, allocations: 0 / 456.5 MB, free: 3 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.0827, allocations: 0 / 456.5 MB, free: 3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.08271, allocations: 0 / 456.5 MB, free: 3 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001359/0.08408, allocations: 0.6934 MB / 457.2 MB, free: 2.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.08412, allocations: 12.03 kB / 457.2 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.44e-05/0.08419, allocations: 35.56 kB / 457.3 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006967/0.08489, allocations: 370.2 kB / 457.6 MB, free: 1.809 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.08492, allocations: 20.42 kB / 457.6 MB, free: 1.789 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.08497, allocations: 27.91 kB / 457.7 MB, free: 1.762 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.08547, allocations: 298.6 kB / 458 MB, free: 1.453 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.08549, allocations: 0 / 458 MB, free: 1.453 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.08552, allocations: 12 kB / 458 MB, free: 1.441 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.08554, allocations: 7.953 kB / 458 MB, free: 1.434 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005067/0.08605, allocations: 257.6 kB / 458.2 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.08734, allocations: 0.8457 MB / 459.1 MB, free: 288 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007651/0.08812, allocations: 338.3 kB / 459.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.08816, allocations: 4 kB / 459.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.08818, allocations: 34.5 kB / 459.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.08818, allocations: 0 / 459.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.002598/0.09079, allocations: 1.066 MB / 460.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.09085, allocations: 106.8 kB / 460.6 MB, free: 14.65 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005422/0.0914, allocations: 314.1 kB / 460.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.09144, allocations: 37.64 kB / 461 MB, free: 14.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.09155, allocations: 176.3 kB / 461.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.904e-05/0.09163, allocations: 86.66 kB / 461.2 MB, free: 14.03 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.456e-05/0.09165, allocations: 8 kB / 461.2 MB, free: 14.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.09176, allocations: 338.8 kB / 461.5 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.09201, allocations: 119.9 kB / 461.7 MB, free: 13.57 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.09229, allocations: 167 kB / 461.8 MB, free: 13.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002771/0.09257, allocations: 128.4 kB / 462 MB, free: 13.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.09258, allocations: 32 / 462 MB, free: 13.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001186/0.09378, allocations: 0.5883 MB / 462.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.015e-05/0.09384, allocations: 98.39 kB / 462.6 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.09385, allocations: 4 kB / 462.6 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005811/0.09444, allocations: 185.6 kB / 462.8 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.09459, allocations: 31.98 kB / 462.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.09594, allocations: 1.436 MB / 464.3 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.0963, allocations: 59.81 kB / 464.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.09633, allocations: 15.92 kB / 464.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.272e-06/0.09634, allocations: 0 / 464.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007119/0.09706, allocations: 381.9 kB / 464.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-06/0.09707, allocations: 0 / 464.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003031/0.09738, allocations: 117.8 kB / 464.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.09752, allocations: 31.92 kB / 464.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002625/0.1002, allocations: 3.349 MB / 468.2 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/0.1005, allocations: 47.89 kB / 468.3 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.1005, allocations: 12 kB / 468.3 MB, free: 6.57 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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 {1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002234/0.1007, allocations: 242 kB / 468.5 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.612e-05/0.1008, allocations: 35.62 kB / 468.6 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.617e-05/0.1009, allocations: 38.3 kB / 468.6 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1009, allocations: 0 / 468.6 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1009, allocations: 4 kB / 468.6 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1009, allocations: 3.984 kB / 468.6 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003811/0.1013, allocations: 397 kB / 469 MB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.1013, allocations: 0 / 469 MB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.1015, allocations: 23.92 kB / 469 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004953/0.102, allocations: 193.6 kB / 469.2 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.102, allocations: 7.984 kB / 469.2 MB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003516/0.1055, allocations: 3.594 MB / 472.8 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1055, allocations: 3.938 kB / 472.8 MB, free: 1.711 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.107, allocations: 0.7953 MB / 473.6 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.522e-05/0.107, allocations: 112.7 kB / 473.7 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.1071, allocations: 8 kB / 473.7 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003431/0.1074, allocations: 47.94 kB / 473.8 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.589e-05/0.1075, allocations: 23.97 kB / 473.8 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.1075, allocations: 8 kB / 473.8 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000468/0.108, allocations: 261.9 kB / 474.1 MB, free: 432 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.108, allocations: 0 / 474.1 MB, free: 432 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.1085, allocations: 123.7 kB / 474.2 MB, free: 308 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Process_1.x_scaled[1],Process_1.x_scaled[2],PI_1.FO.y,Process_2.x_scaled[1],Process_2.x_scaled[2],PI_2.FO.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001092/0.1086, allocations: 110.7 kB / 474.3 MB, free: 192 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.1101, allocations: 0.8133 MB / 475.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1101, allocations: 4 kB / 475.1 MB, free: 15.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005278/0.1106, allocations: 431.8 kB / 475.5 MB, free: 14.9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.1109, allocations: 59.16 kB / 475.6 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.112, allocations: 0.804 MB / 476.4 MB, free: 14.01 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.1123, allocations: 0.8029 MB / 477.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001583/0.1125, allocations: 66.22 kB / 477.3 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.156e-05/0.1125, allocations: 19.44 kB / 477.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1125, allocations: 0 / 477.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of Templates: time 0.007792/0.1203, allocations: 5.171 MB / 482.4 MB, free: 7.953 MB / 346.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.makefile (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.sim & ./AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe 2>&1)