Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 106.9 kB / 16.37 MB, free: 6.477 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.001017/0.001017, allocations: 193.8 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09217/0.09217, allocations: 22.32 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.52 kB / 382.2 MB, free: 41.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09505/0.09639, allocations: 54.96 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003494/0.09992, allocations: 2.012 MB / 439.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.1012, allocations: 0.6311 MB / 439.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.1013, allocations: 8 kB / 439.9 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003721/0.1017, allocations: 51.47 kB / 439.9 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001653/0.1019, allocations: 31.73 kB / 439.9 MB, free: 9.52 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002918/0.1022, allocations: 131.7 kB / 440.1 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003603/0.1026, allocations: 328 kB / 440.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.1028, allocations: 96.34 kB / 440.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.1029, allocations: 131.5 kB / 440.6 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.1031, allocations: 147.3 kB / 440.7 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.518e-05/0.1032, allocations: 28 kB / 440.8 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.527e-05/0.1032, allocations: 24 kB / 440.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.1033, allocations: 79.73 kB / 440.9 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.1035, allocations: 131.2 kB / 441 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002705/0.1037, allocations: 274.9 kB / 441.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.1038, allocations: 0 / 441.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1038, allocations: 0 / 441.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.1038, allocations: 3.938 kB / 441.3 MB, free: 8.176 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001217/0.105, allocations: 0.6238 MB / 441.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.1051, allocations: 12.03 kB / 441.9 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.038e-05/0.1051, allocations: 36.56 kB / 441.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005529/0.1057, allocations: 303.3 kB / 442.2 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.1057, allocations: 20.94 kB / 442.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.1058, allocations: 32.38 kB / 442.3 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005139/0.1063, allocations: 306.5 kB / 442.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1063, allocations: 0 / 442.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.132e-05/0.1064, allocations: 8 kB / 442.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1064, allocations: 8 kB / 442.6 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00042/0.1068, allocations: 222 kB / 442.8 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.1087, allocations: 1.175 MB / 444 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000411/0.1091, allocations: 211.1 kB / 444.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.1093, allocations: 93.3 kB / 444.3 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/0.1093, allocations: 4.234 kB / 444.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.1094, allocations: 50.67 kB / 444.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.633e-06/0.1094, allocations: 0 / 444.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006471/0.11, allocations: 325.2 kB / 444.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.1101, allocations: 59.34 kB / 444.7 MB, free: 4.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004085/0.1105, allocations: 286.4 kB / 445 MB, free: 4.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.1105, allocations: 29.7 kB / 445 MB, free: 4.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.1106, allocations: 176.4 kB / 445.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.844e-05/0.1107, allocations: 102.5 kB / 445.3 MB, free: 3.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.1108, allocations: 74.06 kB / 445.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1109, allocations: 342.8 kB / 445.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.1111, allocations: 100.8 kB / 445.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.1114, allocations: 176.8 kB / 446 MB, free: 3.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001812/0.1132, allocations: 0.6181 MB / 446.6 MB, free: 2.527 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1132, allocations: 8 kB / 446.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005941/0.1138, allocations: 360.5 kB / 447 MB, free: 2.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.1138, allocations: 15.92 kB / 447 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.1139, allocations: 0 / 447 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.1139, allocations: 4 kB / 447 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005907/0.1145, allocations: 108.1 kB / 447.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1145, allocations: 11.98 kB / 447.1 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.1148, allocations: 47.66 kB / 447.2 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.1148, allocations: 16 kB / 447.2 MB, free: 1.961 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: y_filter.y:VARIABLE(flow=false start = y_filter.y_start fixed = true ) "Connector of Real output signal" type: Real Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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: 11 * Number of states: 0 () * Number of discrete variables: 9 (not1.y,PI_2.LOsat,PI_2.HIsat,PI_1.LOsat,PI_1.HIsat,PI_2.iNoDec,PI_2.iNoInc,PI_1.iNoDec,PI_1.iNoInc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000216/0.115, allocations: 162.7 kB / 447.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.633e-05/0.1151, allocations: 31.66 kB / 447.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005655/0.1157, allocations: 297.6 kB / 447.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1157, allocations: 4 kB / 447.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.227e-06/0.1157, allocations: 0 / 447.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1157, allocations: 0 / 447.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005656/0.1163, allocations: 369.3 kB / 448 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1163, allocations: 4 kB / 448 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003891/0.1167, allocations: 71.89 kB / 448.1 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.1167, allocations: 7.875 kB / 448.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.1167, allocations: 8 kB / 448.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1168, allocations: 4 kB / 448.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1168, allocations: 0 / 448.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006571/0.1174, allocations: 495.1 kB / 448.6 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.027e-05/0.1175, allocations: 108.7 kB / 448.7 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.376e-05/0.1176, allocations: 8 kB / 448.7 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/0.1178, allocations: 23.97 kB / 448.7 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.015e-05/0.1179, allocations: 27.97 kB / 448.8 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.118, allocations: 8 kB / 448.8 MB, free: 272 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003062/0.1183, allocations: 201.9 kB / 449 MB, free: 68 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1183, allocations: 0 / 449 MB, free: 68 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.1186, allocations: 59.84 kB / 449 MB, free: 8 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (PI_1.xfb,PI_1.xBias,PI_1.u,PI_1.csfil,PI_2.xfb,PI_2.xBias,PI_2.u,PI_2.csfil,Process.x_scaled[1],Process.x_scaled[2],y_filter.y) * Number of discrete variables: 5 (PI_1.HIsat,PI_1.LOsat,PI_2.HIsat,PI_2.LOsat,not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001308/0.1188, allocations: 109.5 kB / 449.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005023/0.1193, allocations: 275.5 kB / 449.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1193, allocations: 0 / 449.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.1195, allocations: 135.8 kB / 449.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.1199, allocations: 32.55 kB / 449.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.1211, allocations: 0.6837 MB / 450.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.1215, allocations: 0.7792 MB / 451 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001499/0.1216, allocations: 46.94 kB / 451.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.036e-05/0.1217, allocations: 27.44 kB / 451.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1217, allocations: 0 / 451.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of Templates: time 0.007002/0.1287, allocations: 2.624 MB / 453.7 MB, free: 11.25 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.makefile (rm -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.sim & ./AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)