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.0008149/0.0008149, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.000818/0.000818, allocations: 177.3 kB / 15.94 MB, free: 228 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.186/1.186, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1826/0.1826, allocations: 22.35 MB / 313.3 MB, free: 13.19 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003158/0.0003159, allocations: 8 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2605, allocations: 55.97 MB / 437.9 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.00139/0.2619, allocations: 1.67 MB / 439.6 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007356/0.2626, allocations: 0.6542 MB / 440.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.428e-05/0.2627, allocations: 7.219 kB / 440.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.263, allocations: 32.33 kB / 440.3 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.2631, allocations: 54.08 kB / 440.3 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.2634, allocations: 126.7 kB / 440.4 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.2635, allocations: 190.4 kB / 440.6 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.2637, allocations: 61.97 kB / 440.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.2638, allocations: 128.9 kB / 440.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.2639, allocations: 128.6 kB / 440.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.264, allocations: 10.12 kB / 440.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.59e-05/0.264, allocations: 15.78 kB / 441 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.032e-05/0.2641, allocations: 66.84 kB / 441 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.281e-05/0.2641, allocations: 64.98 kB / 441.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.2643, allocations: 206.8 kB / 441.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.2643, allocations: 0 / 441.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2643, allocations: 0 / 441.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.2643, allocations: 6.5 kB / 441.3 MB, free: 37.28 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.001051/0.2654, allocations: 0.6834 MB / 442 MB, free: 36.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.2654, allocations: 14.34 kB / 442 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.003e-05/0.2654, allocations: 55.16 kB / 442 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.699e-05/0.2655, allocations: 31.5 kB / 442.1 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005213/0.266, allocations: 336.8 kB / 442.4 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.266, allocations: 12.61 kB / 442.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.2661, allocations: 26.72 kB / 442.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.2664, allocations: 261.3 kB / 442.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2664, allocations: 0 / 442.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.2665, allocations: 4 kB / 442.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.2665, allocations: 6 kB / 442.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003465/0.2668, allocations: 202 kB / 442.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000912/0.2677, allocations: 0.7215 MB / 443.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004954/0.2683, allocations: 270.7 kB / 443.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.2683, allocations: 14.88 kB / 443.9 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002548/0.2686, allocations: 205.1 kB / 444.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.824e-06/0.2686, allocations: 0 / 444.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001905/0.2705, allocations: 0.9508 MB / 445.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.2705, allocations: 141.5 kB / 445.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004425/0.271, allocations: 314.6 kB / 445.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.271, allocations: 32.33 kB / 445.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.985e-05/0.2711, allocations: 159.5 kB / 445.7 MB, free: 34.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.085e-05/0.2711, allocations: 74.77 kB / 445.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.2711, allocations: 6.781 kB / 445.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.252e-05/0.2712, allocations: 342.7 kB / 446.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.2714, allocations: 108.6 kB / 446.2 MB, free: 34.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.2716, allocations: 141.8 kB / 446.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.2718, allocations: 184.7 kB / 446.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2718, allocations: 3.938 kB / 446.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008237/0.2726, allocations: 0.5307 MB / 447.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.577e-05/0.2727, allocations: 240.7 kB / 447.3 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.2727, allocations: 3.031 kB / 447.3 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002927/0.273, allocations: 99.23 kB / 447.4 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.2732, allocations: 37.69 kB / 447.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001794/0.275, allocations: 1.97 MB / 449.4 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.2752, allocations: 52.89 kB / 449.5 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.2753, allocations: 8.156 kB / 449.5 MB, free: 31.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.302e-06/0.2753, allocations: 6.547 kB / 449.5 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005364/0.2758, allocations: 407.5 kB / 449.9 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-06/0.2758, allocations: 0 / 449.9 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001363/0.276, allocations: 58.66 kB / 449.9 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.2761, allocations: 36.36 kB / 450 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009513/0.2771, allocations: 1.682 MB / 451.6 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.2773, allocations: 48.19 kB / 451.7 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.2774, allocations: 11.88 kB / 451.7 MB, free: 30.16 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.0001713/0.2775, allocations: 271.8 kB / 452 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.321e-05/0.2776, allocations: 24.84 kB / 452 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.005e-05/0.2777, allocations: 43.8 kB / 452 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.2777, allocations: 2.875 kB / 452 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.2777, allocations: 0 / 452 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2777, allocations: 3.234 kB / 452 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.2779, allocations: 353.2 kB / 452.4 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2779, allocations: 3.938 kB / 452.4 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/0.2781, allocations: 25.56 kB / 452.4 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003753/0.2784, allocations: 204.4 kB / 452.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.2785, allocations: 6 kB / 452.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001895/0.2804, allocations: 2.515 MB / 455.1 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2804, allocations: 0 / 455.1 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.2815, allocations: 0.71 MB / 455.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.2815, allocations: 101.1 kB / 455.9 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.173e-05/0.2816, allocations: 16.89 kB / 456 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.2819, allocations: 44.53 kB / 456 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/0.2819, allocations: 14.08 kB / 456 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.282, allocations: 13.77 kB / 456 MB, free: 26.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003904/0.2823, allocations: 242.2 kB / 456.3 MB, free: 26.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.232e-06/0.2824, allocations: 0 / 456.3 MB, free: 26.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004301/0.2828, allocations: 114.8 kB / 456.4 MB, free: 26.83 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.00127/0.2841, allocations: 1.243 MB / 457.6 MB, free: 25.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.2851, allocations: 0.9577 MB / 458.6 MB, free: 25.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2852, allocations: 0 / 458.6 MB, free: 25.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004815/0.2856, allocations: 378.5 kB / 458.9 MB, free: 25.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.2859, allocations: 45.62 kB / 459 MB, free: 25.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.2895, allocations: 2.249 MB / 461.2 MB, free: 23.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.2897, allocations: 0.7787 MB / 462 MB, free: 23.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.2898, allocations: 64.75 kB / 462.1 MB, free: 23.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.686e-05/0.2899, allocations: 83.59 kB / 462.2 MB, free: 23.19 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2899, allocations: 0 / 462.2 MB, free: 23.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.545/4.835, allocations: 6.897 MB / 469.1 MB, free: 22.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/4.835, allocations: 206.2 kB / 469.3 MB, free: 22.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.269/9.104, allocations: 3.938 kB / 469.3 MB, free: 22.45 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: