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.0007432/0.0007432, allocations: 98.03 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.004265/0.004265, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.439/1.439, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2274/0.2274, allocations: 22.34 MB / 313.8 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003317, allocations: 12 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2902, allocations: 55.98 MB / 438.7 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.001718/0.2919, allocations: 1.713 MB / 440.4 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008939/0.2929, allocations: 0.6851 MB / 441.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.507e-05/0.293, allocations: 2.312 kB / 441.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/0.2933, allocations: 44.81 kB / 441.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.2934, allocations: 47.12 kB / 441.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.2937, allocations: 156.2 kB / 441.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002583/0.294, allocations: 320.7 kB / 441.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.2941, allocations: 77.11 kB / 441.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.2943, allocations: 117.9 kB / 441.8 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.2944, allocations: 134.5 kB / 442 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.44e-05/0.2945, allocations: 10.09 kB / 442 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.646e-05/0.2945, allocations: 10.16 kB / 442 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.355e-05/0.2946, allocations: 69.62 kB / 442 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.539e-05/0.2947, allocations: 132.9 kB / 442.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.2949, allocations: 267 kB / 442.4 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2949, allocations: 6.781 kB / 442.4 MB, free: 36.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2949, allocations: 0 / 442.4 MB, free: 36.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.2949, allocations: 0 / 442.4 MB, free: 36.94 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.001232/0.2962, allocations: 0.6824 MB / 443.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2962, allocations: 14.78 kB / 443.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.317e-05/0.2963, allocations: 52.03 kB / 443.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.473e-05/0.2963, allocations: 33.28 kB / 443.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005791/0.2969, allocations: 353.3 kB / 443.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.2969, allocations: 17.02 kB / 443.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.297, allocations: 19.12 kB / 443.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003979/0.2974, allocations: 262.3 kB / 443.9 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.2974, allocations: 3.938 kB / 443.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/0.2974, allocations: 14.83 kB / 443.9 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.2974, allocations: 5.062 kB / 443.9 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000426/0.2979, allocations: 199.8 kB / 444.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.299, allocations: 0.7172 MB / 444.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006078/0.2996, allocations: 270.8 kB / 445.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.2998, allocations: 134.5 kB / 445.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.2999, allocations: 6.812 kB / 445.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003213/0.3002, allocations: 206.9 kB / 445.4 MB, free: 35.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.3002, allocations: 0 / 445.4 MB, free: 35.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002239/0.3025, allocations: 0.9644 MB / 446.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.3025, allocations: 138 kB / 446.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005107/0.303, allocations: 316.8 kB / 446.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.3031, allocations: 32.7 kB / 446.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.061e-05/0.3032, allocations: 157.1 kB / 447 MB, free: 34.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.113e-05/0.3032, allocations: 78.11 kB / 447.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.116e-05/0.3033, allocations: 37.06 kB / 447.1 MB, free: 34.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.816e-05/0.3033, allocations: 342.3 kB / 447.4 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.3035, allocations: 109.9 kB / 447.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.3038, allocations: 139.2 kB / 447.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.3055, allocations: 0.7446 MB / 448.4 MB, free: 33.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3055, allocations: 0 / 448.4 MB, free: 33.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009663/0.3065, allocations: 0.5373 MB / 449 MB, free: 33.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.872e-05/0.3065, allocations: 161.7 kB / 449.1 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.309e-06/0.3065, allocations: 0 / 449.1 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002622/0.3068, allocations: 84.42 kB / 449.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.307, allocations: 31.75 kB / 449.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/0.3088, allocations: 1.783 MB / 451 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.3091, allocations: 53.75 kB / 451.1 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.3091, allocations: 5.25 kB / 451.1 MB, free: 31.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.54e-06/0.3092, allocations: 5.25 kB / 451.1 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006328/0.3098, allocations: 415.5 kB / 451.5 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/0.3098, allocations: 3.422 kB / 451.5 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001516/0.31, allocations: 62.83 kB / 451.6 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.3101, allocations: 31.39 kB / 451.6 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.3111, allocations: 1.673 MB / 453.3 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.3114, allocations: 49.56 kB / 453.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.3115, allocations: 9.781 kB / 453.3 MB, free: 29.7 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.0001738/0.3116, allocations: 259.9 kB / 453.6 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.3117, allocations: 32.12 kB / 453.6 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.309e-05/0.3118, allocations: 45.5 kB / 453.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3118, allocations: 0 / 453.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.3118, allocations: 2.188 kB / 453.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3118, allocations: 0 / 453.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.3121, allocations: 354.1 kB / 454 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3121, allocations: 0 / 454 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.3122, allocations: 22.47 kB / 454 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004315/0.3127, allocations: 204.5 kB / 454.2 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.3127, allocations: 14 kB / 454.2 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/0.3147, allocations: 2.481 MB / 456.7 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3147, allocations: 0 / 456.7 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.316, allocations: 0.7202 MB / 457.4 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-05/0.316, allocations: 102.2 kB / 457.5 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.988e-05/0.3161, allocations: 7.25 kB / 457.5 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003055/0.3164, allocations: 49.61 kB / 457.6 MB, free: 26.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/0.3165, allocations: 17.62 kB / 457.6 MB, free: 26.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.3165, allocations: 6.688 kB / 457.6 MB, free: 26.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000461/0.3169, allocations: 242.2 kB / 457.8 MB, free: 26.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.317, allocations: 0 / 457.8 MB, free: 26.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000439/0.3174, allocations: 114.6 kB / 458 MB, free: 26.39 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.001483/0.3189, allocations: 1.26 MB / 459.2 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.3201, allocations: 0.9099 MB / 460.1 MB, free: 24.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3201, allocations: 1.25 kB / 460.1 MB, free: 24.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005609/0.3207, allocations: 376.8 kB / 460.5 MB, free: 24.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.321, allocations: 49.77 kB / 460.5 MB, free: 24.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005512/0.3265, allocations: 3.478 MB / 464 MB, free: 22.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.3268, allocations: 0.7792 MB / 464.8 MB, free: 21.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001748/0.327, allocations: 57.61 kB / 464.9 MB, free: 21.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.3271, allocations: 85.09 kB / 464.9 MB, free: 21.87 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3271, allocations: 0 / 464.9 MB, free: 21.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.3482, allocations: 7.025 MB / 472 MB, free: 21.36 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/0.3485, allocations: 227.6 kB / 472.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.911/2.26, allocations: 4 kB / 472.2 MB, free: 21.1 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/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)