Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.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_compare2,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2",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.0008122/0.0008122, 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.0008355/0.0008355, allocations: 177.3 kB / 15.95 MB, free: 216 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.147/1.147, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1859/0.1859, allocations: 22.34 MB / 313.3 MB, free: 13.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002939, allocations: 8 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2378, allocations: 55.97 MB / 437.9 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.00246/0.2404, allocations: 1.763 MB / 439.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.2415, allocations: 0.6777 MB / 440.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.2417, allocations: 4.75 kB / 440.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003189/0.242, allocations: 45.47 kB / 440.4 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.2422, allocations: 60.77 kB / 440.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003631/0.2426, allocations: 156.6 kB / 440.6 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.2428, allocations: 222.9 kB / 440.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.243, allocations: 95 kB / 440.9 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.2432, allocations: 142.3 kB / 441 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.2434, allocations: 144.6 kB / 441.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.2434, allocations: 9.531 kB / 441.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.24e-05/0.2435, allocations: 11.53 kB / 441.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.762e-05/0.2436, allocations: 81.78 kB / 441.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.14e-05/0.2436, allocations: 68.95 kB / 441.4 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.2439, allocations: 259 kB / 441.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2439, allocations: 0 / 441.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2439, allocations: 0 / 441.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2439, allocations: 0 / 441.6 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001358/0.2453, allocations: 0.6897 MB / 442.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.2453, allocations: 9.469 kB / 442.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.525e-05/0.2454, allocations: 59.39 kB / 442.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.599e-05/0.2454, allocations: 39.09 kB / 442.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006371/0.2461, allocations: 372.5 kB / 442.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.2461, allocations: 16.78 kB / 442.8 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.132e-05/0.2462, allocations: 24.97 kB / 442.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000486/0.2467, allocations: 299.7 kB / 443.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.2467, allocations: 7.859 kB / 443.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.2467, allocations: 6.844 kB / 443.1 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2467, allocations: 5.688 kB / 443.1 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004967/0.2472, allocations: 258.5 kB / 443.4 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.2485, allocations: 0.8464 MB / 444.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007372/0.2492, allocations: 333.4 kB / 444.5 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.2493, allocations: 6.891 kB / 444.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.2493, allocations: 40.78 kB / 444.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.874e-06/0.2493, allocations: 0 / 444.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002648/0.252, allocations: 1.118 MB / 445.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.252, allocations: 113.2 kB / 445.8 MB, free: 34.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005288/0.2526, allocations: 340.8 kB / 446.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.2526, allocations: 29.7 kB / 446.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.945e-05/0.2527, allocations: 177.3 kB / 446.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.925e-05/0.2528, allocations: 92.34 kB / 446.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.415e-05/0.2528, allocations: 10.94 kB / 446.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.358e-05/0.2529, allocations: 338.6 kB / 446.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002276/0.2531, allocations: 127.1 kB / 446.9 MB, free: 33.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.2534, allocations: 160.8 kB / 447.1 MB, free: 33.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.2536, allocations: 141.5 kB / 447.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2536, allocations: 4.031 kB / 447.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001299/0.2549, allocations: 0.6285 MB / 447.8 MB, free: 33.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.255, allocations: 95.38 kB / 447.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.255, allocations: 0 / 447.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006093/0.2556, allocations: 200.5 kB / 448.1 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.2558, allocations: 28.23 kB / 448.2 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003927/0.2597, allocations: 3.933 MB / 452.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.2601, allocations: 64.67 kB / 452.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.2601, allocations: 5.25 kB / 452.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/0.2601, allocations: 5.25 kB / 452.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006097/0.2607, allocations: 373.7 kB / 452.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-06/0.2607, allocations: 0 / 452.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/0.261, allocations: 121.3 kB / 452.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.2612, allocations: 28.02 kB / 452.7 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.2631, allocations: 3.362 MB / 456 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.2634, allocations: 44.56 kB / 456.1 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.2634, allocations: 9.719 kB / 456.1 MB, free: 27.06 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002077/0.2636, allocations: 242 kB / 456.3 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.106e-05/0.2637, allocations: 29.69 kB / 456.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.174e-05/0.2638, allocations: 38.42 kB / 456.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2638, allocations: 3.688 kB / 456.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2638, allocations: 0 / 456.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2638, allocations: 3.281 kB / 456.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003254/0.2641, allocations: 405.6 kB / 456.8 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2641, allocations: 0 / 456.8 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.2643, allocations: 22.83 kB / 456.8 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004454/0.2647, allocations: 190.1 kB / 457 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.2648, allocations: 6.531 kB / 457 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003021/0.2678, allocations: 3.597 MB / 460.6 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2678, allocations: 5.062 kB / 460.6 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.2693, allocations: 0.7843 MB / 461.4 MB, free: 23.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-05/0.2694, allocations: 107 kB / 461.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/0.2694, allocations: 7.344 kB / 461.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.2698, allocations: 54.2 kB / 461.6 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.855e-05/0.2699, allocations: 24.94 kB / 461.6 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.2699, allocations: 13.03 kB / 461.6 MB, free: 23.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004959/0.2704, allocations: 257.5 kB / 461.8 MB, free: 22.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2704, allocations: 1.438 kB / 461.8 MB, free: 22.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007243/0.2711, allocations: 139.5 kB / 462 MB, free: 22.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Process_1.x_scaled[1],Process_1.x_scaled[2],PI_1.FO.y,Process_2.x_scaled[1],Process_2.x_scaled[2],PI_2.FO.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00176/0.2729, allocations: 1.325 MB / 463.3 MB, free: 22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.2748, allocations: 1.056 MB / 464.4 MB, free: 21.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2748, allocations: 0 / 464.4 MB, free: 21.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005661/0.2754, allocations: 425.5 kB / 464.8 MB, free: 21.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.2757, allocations: 51.97 kB / 464.8 MB, free: 21.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005254/0.281, allocations: 2.493 MB / 467.3 MB, free: 19.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.2815, allocations: 0.8005 MB / 468.1 MB, free: 19.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002187/0.2817, allocations: 69.27 kB / 468.2 MB, free: 19.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.2818, allocations: 97.14 kB / 468.3 MB, free: 19.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.325e-06/0.2819, allocations: 0 / 468.3 MB, free: 19.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.586/6.868, allocations: 8.618 MB / 476.9 MB, free: 18.12 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/6.868, allocations: 212.9 kB / 477.1 MB, free: 17.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/8.912, allocations: 3.938 kB / 477.1 MB, free: 17.87 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2.fmu > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe 2>&1) Environment - environmentSimulation: