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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.001317/0.001317, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2125/0.2125, allocations: 22.34 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003368/0.0003369, allocations: 8 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3063, allocations: 55.97 MB / 438 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.001655/0.308, allocations: 1.661 MB / 439.7 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009161/0.3089, allocations: 0.6611 MB / 440.3 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.309, allocations: 6.562 kB / 440.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002714/0.3093, allocations: 36.73 kB / 440.4 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.3095, allocations: 49.09 kB / 440.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.3098, allocations: 123 kB / 440.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.3101, allocations: 295.4 kB / 440.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.3102, allocations: 65.59 kB / 440.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.3104, allocations: 124.8 kB / 441 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.3105, allocations: 137.6 kB / 441.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.3106, allocations: 10.62 kB / 441.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.838e-05/0.3106, allocations: 10.28 kB / 441.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.827e-05/0.3107, allocations: 67.7 kB / 441.2 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.841e-05/0.3108, allocations: 60.36 kB / 441.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.311, allocations: 207.5 kB / 441.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.311, allocations: 3.938 kB / 441.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.311, allocations: 0 / 441.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.311, allocations: 0 / 441.5 MB, free: 37.01 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.001195/0.3122, allocations: 0.7023 MB / 442.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.3122, allocations: 7.719 kB / 442.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.341e-05/0.3123, allocations: 54.34 kB / 442.3 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.353e-05/0.3123, allocations: 31.22 kB / 442.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005254/0.3129, allocations: 337.6 kB / 442.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.3129, allocations: 12.7 kB / 442.6 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.3129, allocations: 26.38 kB / 442.7 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/0.3134, allocations: 257.8 kB / 442.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.3134, allocations: 4 kB / 442.9 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.3134, allocations: 6.906 kB / 442.9 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3134, allocations: 3.125 kB / 442.9 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003978/0.3138, allocations: 201.2 kB / 443.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.3149, allocations: 0.7204 MB / 443.9 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005641/0.3154, allocations: 267.2 kB / 444.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002056/0.3157, allocations: 132 kB / 444.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.3157, allocations: 3.984 kB / 444.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.316, allocations: 211.3 kB / 444.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.316, allocations: 0 / 444.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00201/0.318, allocations: 0.9594 MB / 445.4 MB, free: 34.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.3181, allocations: 135.8 kB / 445.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004537/0.3185, allocations: 318.1 kB / 445.9 MB, free: 34.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.3186, allocations: 32.7 kB / 445.9 MB, free: 34.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.129e-05/0.3187, allocations: 162 kB / 446 MB, free: 34.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.704e-05/0.3187, allocations: 77.25 kB / 446.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.405e-05/0.3187, allocations: 4 kB / 446.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.238e-05/0.3188, allocations: 345.7 kB / 446.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.319, allocations: 106.8 kB / 446.6 MB, free: 33.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.3192, allocations: 142.6 kB / 446.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.3194, allocations: 191 kB / 446.9 MB, free: 33.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3195, allocations: 0 / 446.9 MB, free: 33.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008791/0.3203, allocations: 0.5269 MB / 447.4 MB, free: 33.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/0.3204, allocations: 160.9 kB / 447.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3204, allocations: 0 / 447.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003325/0.3208, allocations: 99.34 kB / 447.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.3209, allocations: 37.97 kB / 447.7 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.3228, allocations: 1.939 MB / 449.7 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.3231, allocations: 59.98 kB / 449.7 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.3231, allocations: 6.031 kB / 449.7 MB, free: 31.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.801e-06/0.3232, allocations: 4.344 kB / 449.7 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005996/0.3238, allocations: 407.5 kB / 450.1 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.3238, allocations: 6.938 kB / 450.1 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001489/0.3239, allocations: 62.55 kB / 450.2 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.3241, allocations: 36.56 kB / 450.2 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.3252, allocations: 1.662 MB / 451.9 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.3254, allocations: 44.64 kB / 451.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3254, allocations: 9.25 kB / 451.9 MB, free: 29.93 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.xfb,PI_d.xfb,$PRE.PI_d.ulin,PI_d.ulin,$PRE.PI_d.ulino,PI_d.ulino,$PRE.PI_d.u,PI_d.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002356/0.3257, allocations: 279.9 kB / 452.2 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.818e-05/0.3257, allocations: 23.25 kB / 452.2 MB, free: 29.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.979e-05/0.3258, allocations: 37.44 kB / 452.3 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3258, allocations: 6.578 kB / 452.3 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3258, allocations: 2.906 kB / 452.3 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3258, allocations: 3.984 kB / 452.3 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002829/0.3261, allocations: 357.9 kB / 452.6 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3261, allocations: 4 kB / 452.6 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.3263, allocations: 20.67 kB / 452.7 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004246/0.3267, allocations: 198.7 kB / 452.8 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.3268, allocations: 9.25 kB / 452.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/0.3288, allocations: 2.49 MB / 455.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3288, allocations: 2.562 kB / 455.4 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.33, allocations: 0.7034 MB / 456.1 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.3301, allocations: 105.5 kB / 456.2 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.3301, allocations: 10.25 kB / 456.2 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002642/0.3304, allocations: 41.12 kB / 456.2 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.956e-05/0.3305, allocations: 15.47 kB / 456.2 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.3305, allocations: 13.69 kB / 456.2 MB, free: 26.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003843/0.3309, allocations: 246.3 kB / 456.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3309, allocations: 0 / 456.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004695/0.3314, allocations: 110.2 kB / 456.6 MB, free: 26.61 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 (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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001376/0.3328, allocations: 1.253 MB / 457.8 MB, free: 25.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.334, allocations: 0.9547 MB / 458.8 MB, free: 25.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.334, allocations: 0 / 458.8 MB, free: 25.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004937/0.3345, allocations: 371.7 kB / 459.2 MB, free: 24.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.3348, allocations: 41.62 kB / 459.2 MB, free: 24.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.3387, allocations: 2.132 MB / 461.3 MB, free: 23.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.3389, allocations: 0.7773 MB / 462.1 MB, free: 23.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.3391, allocations: 69 kB / 462.2 MB, free: 23.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.3392, allocations: 84 kB / 462.3 MB, free: 23.1 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3393, allocations: 0 / 462.3 MB, free: 23.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01992/0.3592, allocations: 6.91 MB / 469.2 MB, free: 22.59 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/0.3594, allocations: 218 kB / 469.4 MB, free: 22.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.24, allocations: 0 / 469.4 MB, free: 22.35 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital.fmu > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe 2>&1) Environment - environmentSimulation: