Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.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_digital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital") translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008853/0.0008854, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004995/0.004995, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.248/1.248, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1904/0.1904, allocations: 22.35 MB / 313.8 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002623/0.0002623, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2174, allocations: 55.99 MB / 438.6 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.001475/0.2189, allocations: 1.705 MB / 440.3 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009209/0.2199, allocations: 0.6947 MB / 441 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.22, allocations: 2.25 kB / 441 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.2202, allocations: 41.44 kB / 441 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.2204, allocations: 48.64 kB / 441.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.2207, allocations: 146.3 kB / 441.2 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.2209, allocations: 320.5 kB / 441.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.2211, allocations: 82.48 kB / 441.6 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.2212, allocations: 108.1 kB / 441.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.2214, allocations: 140.9 kB / 441.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.2214, allocations: 10.34 kB / 441.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.522e-05/0.2214, allocations: 14.44 kB / 441.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.632e-05/0.2215, allocations: 68.84 kB / 441.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.43e-05/0.2216, allocations: 129.4 kB / 442.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.2218, allocations: 271.9 kB / 442.3 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2218, allocations: 3.938 kB / 442.3 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2218, allocations: 2.969 kB / 442.3 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.2218, allocations: 0 / 442.3 MB, free: 37 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001202/0.223, allocations: 0.682 MB / 443 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.807e-05/0.2231, allocations: 15.61 kB / 443 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.2231, allocations: 33.53 kB / 443.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005544/0.2237, allocations: 347 kB / 443.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.2237, allocations: 21.48 kB / 443.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.2238, allocations: 15.94 kB / 443.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003814/0.2241, allocations: 256.4 kB / 443.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.2242, allocations: 3.938 kB / 443.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.2242, allocations: 10.72 kB / 443.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2242, allocations: 6.938 kB / 443.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003805/0.2246, allocations: 206.2 kB / 443.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009601/0.2256, allocations: 0.7123 MB / 444.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005406/0.2261, allocations: 274 kB / 444.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.2263, allocations: 135.2 kB / 445 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.2264, allocations: 2.688 kB / 445 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.2266, allocations: 205.2 kB / 445.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.2267, allocations: 3.906 kB / 445.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002129/0.2288, allocations: 0.9689 MB / 446.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.2288, allocations: 135.5 kB / 446.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004968/0.2293, allocations: 320.4 kB / 446.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.2294, allocations: 32.64 kB / 446.7 MB, free: 34.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.904e-05/0.2294, allocations: 152.7 kB / 446.8 MB, free: 34.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.369e-05/0.2295, allocations: 80.55 kB / 446.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.2295, allocations: 30.05 kB / 446.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.2296, allocations: 338.4 kB / 447.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.2298, allocations: 114.2 kB / 447.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.23, allocations: 135.3 kB / 447.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.2317, allocations: 0.75 MB / 448.3 MB, free: 33.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2318, allocations: 0 / 448.3 MB, free: 33.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009362/0.2327, allocations: 0.5285 MB / 448.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.579e-05/0.2327, allocations: 155.6 kB / 448.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2328, allocations: 6.125 kB / 449 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002443/0.233, allocations: 85.66 kB / 449 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.2332, allocations: 33.16 kB / 449.1 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/0.2348, allocations: 1.793 MB / 450.9 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003101/0.2352, allocations: 56.7 kB / 450.9 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.2352, allocations: 5.5 kB / 450.9 MB, free: 31.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.39e-06/0.2352, allocations: 5.844 kB / 450.9 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005962/0.2358, allocations: 407.6 kB / 451.3 MB, free: 31.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-06/0.2358, allocations: 192 / 451.3 MB, free: 31.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001536/0.236, allocations: 70.25 kB / 451.4 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.2361, allocations: 31.53 kB / 451.4 MB, free: 31.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009862/0.2371, allocations: 1.667 MB / 453.1 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.2374, allocations: 46.22 kB / 453.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.2374, allocations: 6.969 kB / 453.1 MB, free: 29.83 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_d.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_d.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.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: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.PI_d.u,$PRE.PI_d.ulino,$PRE.PI_d.ulin,$PRE.PI_d.xfb,PI_d.u,PI_d.ulino,PI_d.ulin,PI_d.xfb) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001505/0.2376, allocations: 267.1 kB / 453.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.2376, allocations: 29.62 kB / 453.4 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.208e-05/0.2377, allocations: 40 kB / 453.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.2377, allocations: 6.422 kB / 453.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.2377, allocations: 0 / 453.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.2377, allocations: 3.375 kB / 453.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.238, allocations: 358.4 kB / 453.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.238, allocations: 192 / 453.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.2381, allocations: 23.27 kB / 453.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004179/0.2386, allocations: 197.6 kB / 454.1 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.2386, allocations: 13.94 kB / 454.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001933/0.2405, allocations: 2.485 MB / 456.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2406, allocations: 0 / 456.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.2417, allocations: 0.7166 MB / 457.3 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-05/0.2418, allocations: 103.4 kB / 457.4 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.2418, allocations: 10.53 kB / 457.4 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.2422, allocations: 36.58 kB / 457.4 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.2422, allocations: 19.83 kB / 457.4 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.2422, allocations: 10.66 kB / 457.4 MB, free: 26.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000429/0.2427, allocations: 245.7 kB / 457.7 MB, free: 26.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2427, allocations: 0 / 457.7 MB, free: 26.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004162/0.2431, allocations: 111.1 kB / 457.8 MB, free: 26.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Process_a.x_scaled[1],Process_a.x_scaled[2],PI_a.FO.y,Process_d.x_scaled[1],Process_d.x_scaled[2]) * Number of discrete variables: 5 ($whenCondition1,PI_d.xfb,PI_d.ulin,PI_d.ulino,PI_d.u) * Number of discrete states: 5 (PI_d.u,PI_d.ulino,PI_d.ulin,PI_d.xfb,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 8.265e-05/0.2432, allocations: 117.4 kB / 457.9 MB, free: 26.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009697/0.2442, allocations: 0.8962 MB / 458.8 MB, free: 25.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2442, allocations: 1.125 kB / 458.8 MB, free: 25.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005247/0.2447, allocations: 374.4 kB / 459.2 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.245, allocations: 55.23 kB / 459.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008958/0.2459, allocations: 0.7316 MB / 460 MB, free: 25.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.2461, allocations: 0.7744 MB / 460.7 MB, free: 24.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001542/0.2463, allocations: 66.22 kB / 460.8 MB, free: 24.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.192e-05/0.2463, allocations: 17.59 kB / 460.8 MB, free: 24.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2463, allocations: 0 / 460.8 MB, free: 24.36 MB / 350.1 MB Notification: Performance of Templates: time 0.007757/0.2541, allocations: 4.412 MB / 465.2 MB, free: 24.04 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.makefile (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.sim & ./AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe 2>&1)