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.0009639/0.0009639, allocations: 91.84 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 180.3 kB / 16.92 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.307/1.307, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2006/0.2006, allocations: 22.34 MB / 314.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003467, allocations: 8 kB / 383.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2721, allocations: 55.98 MB / 439.2 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.001625/0.2738, allocations: 1.708 MB / 440.9 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009582/0.2748, allocations: 0.6888 MB / 441.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.616e-05/0.2749, allocations: 5.469 kB / 441.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000258/0.2751, allocations: 46.39 kB / 441.7 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.2753, allocations: 51.05 kB / 441.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.2756, allocations: 147.7 kB / 441.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002732/0.2759, allocations: 323.9 kB / 442.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.276, allocations: 80.06 kB / 442.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.2762, allocations: 111 kB / 442.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.2764, allocations: 138.9 kB / 442.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.592e-05/0.2764, allocations: 9.562 kB / 442.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.668e-05/0.2764, allocations: 8.281 kB / 442.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.89e-05/0.2765, allocations: 72.39 kB / 442.6 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.2766, allocations: 129.3 kB / 442.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.2768, allocations: 206.1 kB / 442.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2768, allocations: 0 / 442.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2768, allocations: 4 kB / 442.9 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.2768, allocations: 2.875 kB / 442.9 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.001243/0.2781, allocations: 0.686 MB / 443.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.2781, allocations: 12.94 kB / 443.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.614e-05/0.2782, allocations: 34.12 kB / 443.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000565/0.2788, allocations: 352.9 kB / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.2788, allocations: 13.64 kB / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.942e-05/0.2789, allocations: 25.73 kB / 444 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003931/0.2793, allocations: 264.8 kB / 444.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2793, allocations: 0 / 444.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.2793, allocations: 7.031 kB / 444.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2793, allocations: 6.047 kB / 444.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003922/0.2797, allocations: 201.3 kB / 444.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00099/0.2807, allocations: 0.7128 MB / 445.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000559/0.2813, allocations: 277 kB / 445.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.2815, allocations: 129.8 kB / 445.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.2815, allocations: 3.125 kB / 445.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.2818, allocations: 205.8 kB / 445.8 MB, free: 35.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.2819, allocations: 3.938 kB / 445.8 MB, free: 35.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002188/0.284, allocations: 0.9711 MB / 446.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.2841, allocations: 142.4 kB / 446.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005148/0.2846, allocations: 317.2 kB / 447.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.2847, allocations: 32.7 kB / 447.3 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.014e-05/0.2847, allocations: 157.2 kB / 447.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.968e-05/0.2848, allocations: 74.14 kB / 447.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.965e-05/0.2848, allocations: 36.55 kB / 447.5 MB, free: 34.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.935e-05/0.2849, allocations: 343 kB / 447.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.2851, allocations: 108.9 kB / 448 MB, free: 33.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.2853, allocations: 141.3 kB / 448.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001758/0.2871, allocations: 0.7455 MB / 448.9 MB, free: 33.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2871, allocations: 4 kB / 448.9 MB, free: 33.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009713/0.2881, allocations: 0.5266 MB / 449.4 MB, free: 33.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.654e-05/0.2882, allocations: 157.5 kB / 449.6 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2882, allocations: 0 / 449.6 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002642/0.2884, allocations: 82.58 kB / 449.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.2886, allocations: 36.41 kB / 449.7 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.2904, allocations: 1.782 MB / 451.5 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.2907, allocations: 54.16 kB / 451.5 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.2907, allocations: 10.22 kB / 451.5 MB, free: 31.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.572e-06/0.2907, allocations: 11.66 kB / 451.5 MB, free: 31.58 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006023/0.2913, allocations: 402.8 kB / 451.9 MB, free: 31.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.515e-06/0.2914, allocations: 0 / 451.9 MB, free: 31.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001565/0.2915, allocations: 66.12 kB / 452 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2917, allocations: 31.94 kB / 452 MB, free: 31.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.2927, allocations: 1.675 MB / 453.7 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.293, allocations: 55.5 kB / 453.7 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.2931, allocations: 5.938 kB / 453.7 MB, free: 29.82 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.0001899/0.2933, allocations: 265.4 kB / 454 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.153e-05/0.2933, allocations: 37.88 kB / 454 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.279e-05/0.2934, allocations: 35.45 kB / 454.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2934, allocations: 3.594 kB / 454.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.2934, allocations: 4 kB / 454.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2934, allocations: 3.422 kB / 454.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.2937, allocations: 356.9 kB / 454.4 MB, free: 29.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2937, allocations: 0 / 454.4 MB, free: 29.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.2938, allocations: 20.91 kB / 454.5 MB, free: 29.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004424/0.2943, allocations: 201.8 kB / 454.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.2943, allocations: 6.5 kB / 454.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/0.2964, allocations: 2.485 MB / 457.1 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2964, allocations: 3.938 kB / 457.2 MB, free: 27.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.2976, allocations: 0.7072 MB / 457.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.2977, allocations: 105.3 kB / 458 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.198e-05/0.2977, allocations: 14.56 kB / 458 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000306/0.298, allocations: 48.67 kB / 458 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.2981, allocations: 16.7 kB / 458 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.2981, allocations: 6.5 kB / 458 MB, free: 26.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004562/0.2986, allocations: 245.9 kB / 458.3 MB, free: 26.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2986, allocations: 0 / 458.3 MB, free: 26.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004479/0.2991, allocations: 112.7 kB / 458.4 MB, free: 26.5 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 0.0001047/0.2992, allocations: 111.1 kB / 458.5 MB, free: 26.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.3002, allocations: 0.9074 MB / 459.4 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3002, allocations: 0 / 459.4 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005406/0.3008, allocations: 373.7 kB / 459.8 MB, free: 25.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.3011, allocations: 42.31 kB / 459.8 MB, free: 25.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.3021, allocations: 0.7701 MB / 460.6 MB, free: 25.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.3023, allocations: 0.7789 MB / 461.4 MB, free: 24.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.343e-05/0.3024, allocations: 21.09 kB / 461.4 MB, free: 24.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3024, allocations: 0 / 461.4 MB, free: 24.32 MB / 350.1 MB Notification: Performance of Templates: time 0.007148/0.3096, allocations: 4.778 MB / 466.2 MB, free: 23.98 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)