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: translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2") translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001149, allocations: 99.55 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.001091/0.001091, 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.413/1.413, allocations: 223.2 MB / 239.9 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2565/0.2565, allocations: 22.34 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003963/0.0003966, allocations: 11.94 kB / 381.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3217, allocations: 55.97 MB / 437.8 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.001744/0.3234, allocations: 1.768 MB / 439.6 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008953/0.3244, allocations: 0.6741 MB / 440.2 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.3245, allocations: 9.469 kB / 440.3 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003168/0.3248, allocations: 42.98 kB / 440.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.325, allocations: 66.41 kB / 440.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.3254, allocations: 151.5 kB / 440.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000271/0.3256, allocations: 228.2 kB / 440.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.3258, allocations: 93.77 kB / 440.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.326, allocations: 137 kB / 441 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.3262, allocations: 145.6 kB / 441.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.3263, allocations: 9.375 kB / 441.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.244e-05/0.3263, allocations: 11.16 kB / 441.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.969e-05/0.3264, allocations: 80.66 kB / 441.2 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.055e-05/0.3265, allocations: 69.97 kB / 441.3 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.3267, allocations: 253.8 kB / 441.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.3267, allocations: 0 / 441.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3267, allocations: 0 / 441.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.3267, allocations: 0 / 441.5 MB, free: 36.99 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.00138/0.3281, allocations: 0.6971 MB / 442.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.3281, allocations: 10.75 kB / 442.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.634e-05/0.3282, allocations: 36.94 kB / 442.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006683/0.3289, allocations: 367.1 kB / 442.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.3289, allocations: 16.75 kB / 442.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.329, allocations: 31.28 kB / 442.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004544/0.3294, allocations: 302.3 kB / 443 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.3295, allocations: 3.906 kB / 443 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.3295, allocations: 10.92 kB / 443 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3295, allocations: 5.375 kB / 443 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004796/0.33, allocations: 254.6 kB / 443.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.3312, allocations: 0.8456 MB / 444.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007781/0.332, allocations: 339.7 kB / 444.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.3321, allocations: 6.719 kB / 444.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.3321, allocations: 37.34 kB / 444.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.813e-06/0.3321, allocations: 0 / 444.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002772/0.3349, allocations: 1.121 MB / 445.6 MB, free: 34.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.3349, allocations: 105.8 kB / 445.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005382/0.3355, allocations: 348.2 kB / 446 MB, free: 34.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.3355, allocations: 28.27 kB / 446 MB, free: 34.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.224e-05/0.3356, allocations: 173.2 kB / 446.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.603e-05/0.3357, allocations: 90.14 kB / 446.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.297e-05/0.3357, allocations: 7.938 kB / 446.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.756e-05/0.3358, allocations: 341.7 kB / 446.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.336, allocations: 129.5 kB / 446.8 MB, free: 34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.3363, allocations: 157.2 kB / 446.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.3365, allocations: 141.7 kB / 447.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3365, allocations: 3.953 kB / 447.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001312/0.3378, allocations: 0.6305 MB / 447.7 MB, free: 33.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.403e-05/0.3379, allocations: 99.38 kB / 447.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.3379, allocations: 0 / 447.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005822/0.3385, allocations: 195 kB / 448 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.3387, allocations: 30.11 kB / 448 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003788/0.3424, allocations: 3.928 MB / 451.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.3428, allocations: 61.47 kB / 452 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.3428, allocations: 6.75 kB / 452 MB, free: 30.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.392e-06/0.3428, allocations: 2.625 kB / 452 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006329/0.3435, allocations: 375.1 kB / 452.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-06/0.3435, allocations: 3.938 kB / 452.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002805/0.3438, allocations: 122.8 kB / 452.5 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.3439, allocations: 27.06 kB / 452.5 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002084/0.346, allocations: 3.358 MB / 455.9 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.3463, allocations: 49.86 kB / 455.9 MB, free: 27.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.3464, allocations: 9.875 kB / 455.9 MB, free: 27.09 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.000239/0.3466, allocations: 233.6 kB / 456.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.3467, allocations: 34.06 kB / 456.2 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.123e-05/0.3468, allocations: 43.48 kB / 456.2 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3468, allocations: 10.02 kB / 456.3 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3468, allocations: 3.984 kB / 456.3 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3468, allocations: 0 / 456.3 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003671/0.3472, allocations: 390.4 kB / 456.6 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3472, allocations: 0 / 456.6 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.3473, allocations: 25.83 kB / 456.7 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004908/0.3478, allocations: 196.5 kB / 456.9 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.3479, allocations: 10.12 kB / 456.9 MB, free: 26.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003264/0.3511, allocations: 3.591 MB / 460.5 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3511, allocations: 3.188 kB / 460.5 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.3527, allocations: 0.783 MB / 461.2 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.832e-05/0.3528, allocations: 112 kB / 461.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.487e-05/0.3528, allocations: 9.844 kB / 461.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003605/0.3532, allocations: 46.97 kB / 461.4 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.3533, allocations: 31.23 kB / 461.4 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.3533, allocations: 8.094 kB / 461.4 MB, free: 23.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005104/0.3538, allocations: 264.6 kB / 461.7 MB, free: 22.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3539, allocations: 1.25 kB / 461.7 MB, free: 22.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007658/0.3546, allocations: 131.8 kB / 461.8 MB, free: 22.9 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.0001314/0.3548, allocations: 103.4 kB / 461.9 MB, free: 22.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.3566, allocations: 1.056 MB / 463 MB, free: 22.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3566, allocations: 3.938 kB / 463 MB, free: 22.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005705/0.3572, allocations: 420.1 kB / 463.4 MB, free: 21.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.3576, allocations: 63.83 kB / 463.5 MB, free: 21.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.359, allocations: 0.7999 MB / 464.3 MB, free: 21.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.3593, allocations: 0.8066 MB / 465.1 MB, free: 20.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.3594, allocations: 62.52 kB / 465.1 MB, free: 20.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.907e-05/0.3595, allocations: 18.97 kB / 465.2 MB, free: 20.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3595, allocations: 0 / 465.2 MB, free: 20.68 MB / 350.1 MB Notification: Performance of Templates: time 0.01179/0.3713, allocations: 5.557 MB / 470.7 MB, free: 20.32 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.makefile Environment - environmentSimulation: (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 & ./AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe 2>&1) Environment - environmentSimulation: