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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 102.2 kB / 16.27 MB, free: 6 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.001313/0.001313, allocations: 191 kB / 17.2 MB, free: 5.609 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.319/1.319, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0924/0.0924, allocations: 22.32 MB / 313.4 MB, free: 8.996 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 66.97 kB / 381.5 MB, free: 41.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.08283, allocations: 54.95 MB / 436.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.003215/0.08608, allocations: 2.134 MB / 438.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.08731, allocations: 0.7287 MB / 439.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.08744, allocations: 7.938 kB / 439.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002982/0.08776, allocations: 55.58 kB / 439.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.08797, allocations: 71.44 kB / 439.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004254/0.08841, allocations: 218.7 kB / 439.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000387/0.08881, allocations: 411.2 kB / 440 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.08901, allocations: 104.5 kB / 440.1 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.0892, allocations: 155.4 kB / 440.3 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.08943, allocations: 187.2 kB / 440.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.0895, allocations: 32 kB / 440.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.206e-05/0.08957, allocations: 36 kB / 440.5 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.0897, allocations: 103.7 kB / 440.6 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.08985, allocations: 155.1 kB / 440.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003188/0.09018, allocations: 350.8 kB / 441.1 MB, free: 8.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.09019, allocations: 4 kB / 441.1 MB, free: 8.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.09019, allocations: 0 / 441.1 MB, free: 8.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.09021, allocations: 0 / 441.1 MB, free: 8.344 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001583/0.09179, allocations: 0.7325 MB / 441.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.09184, allocations: 8.031 kB / 441.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.128e-05/0.09192, allocations: 40.47 kB / 441.9 MB, free: 7.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007256/0.09265, allocations: 387.2 kB / 442.3 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.09269, allocations: 16.81 kB / 442.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.09274, allocations: 20.38 kB / 442.3 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000532/0.09327, allocations: 298.8 kB / 442.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.0933, allocations: 0 / 442.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.09333, allocations: 12 kB / 442.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.09335, allocations: 7.938 kB / 442.6 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005569/0.09391, allocations: 245.5 kB / 442.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.09529, allocations: 0.8261 MB / 443.7 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008447/0.09615, allocations: 322.3 kB / 444 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002879/0.09645, allocations: 136.8 kB / 444.1 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.09649, allocations: 8 kB / 444.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.09652, allocations: 34.55 kB / 444.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 4.108e-06/0.09653, allocations: 4 kB / 444.2 MB, free: 5.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.003072/0.09961, allocations: 1.015 MB / 445.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.96e-05/0.09969, allocations: 110.6 kB / 445.3 MB, free: 3.902 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006329/0.1003, allocations: 346.9 kB / 445.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.1004, allocations: 33.7 kB / 445.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1005, allocations: 176.2 kB / 445.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.1006, allocations: 86.75 kB / 445.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.467e-05/0.1007, allocations: 49.7 kB / 446 MB, free: 3.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1008, allocations: 342.8 kB / 446.3 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002768/0.1011, allocations: 124.7 kB / 446.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.1014, allocations: 159.7 kB / 446.6 MB, free: 2.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002112/0.1035, allocations: 0.6377 MB / 447.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1035, allocations: 0 / 447.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001457/0.105, allocations: 0.5766 MB / 447.8 MB, free: 1.332 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.105, allocations: 6.188 kB / 447.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.105, allocations: 3.938 kB / 447.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004768/0.1055, allocations: 153.6 kB / 448 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.1057, allocations: 27.98 kB / 448 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004462/0.1102, allocations: 3.905 MB / 451.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/0.1106, allocations: 55.88 kB / 452 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.1106, allocations: 8 kB / 452 MB, free: 12.89 MB / 334.1 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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000304/0.1109, allocations: 217 kB / 452.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002165/0.1111, allocations: 134.7 kB / 452.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001741/0.1129, allocations: 0.5711 MB / 452.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.443e-06/0.1129, allocations: 0 / 452.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008188/0.1137, allocations: 426.9 kB / 453.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/0.1137, allocations: 15.88 kB / 453.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-06/0.1138, allocations: 0 / 453.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003276/0.1141, allocations: 121.6 kB / 453.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.1142, allocations: 27.98 kB / 453.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002978/0.1172, allocations: 3.68 MB / 457.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003341/0.1176, allocations: 59.88 kB / 457.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.1176, allocations: 8 kB / 457.2 MB, free: 7.336 MB / 334.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001583/0.1178, allocations: 201.9 kB / 457.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.1178, allocations: 35.56 kB / 457.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.893e-05/0.1179, allocations: 38.3 kB / 457.5 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.1179, allocations: 7.984 kB / 457.5 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1179, allocations: 0 / 457.5 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.118, allocations: 3.984 kB / 457.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004388/0.1184, allocations: 389.2 kB / 457.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1184, allocations: 0 / 457.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/0.1186, allocations: 23.98 kB / 457.9 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000532/0.1191, allocations: 181.4 kB / 458.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.1192, allocations: 4 kB / 458.1 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003881/0.1231, allocations: 3.677 MB / 461.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1231, allocations: 3.938 kB / 461.7 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.1246, allocations: 0.7249 MB / 462.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.132e-05/0.1247, allocations: 108.7 kB / 462.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.433e-05/0.1247, allocations: 12.06 kB / 462.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003703/0.1251, allocations: 43.94 kB / 462.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.966e-05/0.1252, allocations: 23.97 kB / 462.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.1252, allocations: 8 kB / 462.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005501/0.1258, allocations: 265.8 kB / 462.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1258, allocations: 0 / 462.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006691/0.1265, allocations: 131.7 kB / 463.1 MB, free: 1.102 MB / 334.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001268/0.1266, allocations: 107.2 kB / 463.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.1283, allocations: 0.9863 MB / 464.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1283, allocations: 4 kB / 464.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005837/0.1289, allocations: 409.2 kB / 464.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.1294, allocations: 79.72 kB / 464.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.1306, allocations: 0.7528 MB / 465.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.131, allocations: 0.7999 MB / 466.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.7e-05/0.1311, allocations: 19.44 kB / 466.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1311, allocations: 0 / 466.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Templates: time 0.007843/0.1389, allocations: 6.332 MB / 472.5 MB, free: 7.477 MB / 350.1 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)