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.001043/0.001043, allocations: 106.7 kB / 16.41 MB, free: 6.453 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.001168/0.001168, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.285/1.285, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09281/0.09281, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001229, allocations: 63.89 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09321/0.09445, allocations: 54.96 MB / 492.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.003301/0.09778, allocations: 2.117 MB / 494.8 MB, free: 2.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.09913, allocations: 0.7326 MB / 495.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.09931, allocations: 8 kB / 495.5 MB, free: 1.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003233/0.09966, allocations: 55.52 kB / 495.6 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.09992, allocations: 71.44 kB / 495.7 MB, free: 1.742 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004619/0.1004, allocations: 211.6 kB / 495.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004672/0.1009, allocations: 415.2 kB / 496.3 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.1011, allocations: 116.2 kB / 496.4 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.1013, allocations: 155.4 kB / 496.5 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.1015, allocations: 187.2 kB / 496.7 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.959e-05/0.1016, allocations: 32 kB / 496.7 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.012e-05/0.1016, allocations: 36 kB / 496.8 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.1018, allocations: 111.6 kB / 496.9 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.1019, allocations: 147.1 kB / 497 MB, free: 368 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.1023, allocations: 358.8 kB / 497.4 MB, free: 8 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1023, allocations: 0 / 497.4 MB, free: 8 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1023, allocations: 0 / 497.4 MB, free: 8 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.1023, allocations: 3.938 kB / 497.4 MB, free: 4 kB / 366.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.001562/0.1039, allocations: 0.7312 MB / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.1039, allocations: 12.03 kB / 498.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.284e-05/0.104, allocations: 36.47 kB / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007454/0.1047, allocations: 395.2 kB / 498.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.1048, allocations: 12.81 kB / 498.6 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.1048, allocations: 28.31 kB / 498.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.1054, allocations: 294.8 kB / 498.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.1054, allocations: 7.984 kB / 498.9 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.1054, allocations: 8 kB / 498.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1054, allocations: 4 kB / 498.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000512/0.106, allocations: 241.6 kB / 499.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.1073, allocations: 0.83 MB / 500 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008089/0.1082, allocations: 314.3 kB / 0.4885 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.1084, allocations: 144.8 kB / 0.4887 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.1085, allocations: 8 kB / 0.4887 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.1085, allocations: 30.56 kB / 0.4887 GB, free: 12.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1085, allocations: 0 / 0.4887 GB, free: 12.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.002857/0.1114, allocations: 1.014 MB / 0.4897 GB, free: 11.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.1115, allocations: 110.8 kB / 0.4898 GB, free: 11.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006216/0.1121, allocations: 342.9 kB / 0.4901 GB, free: 11.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.1121, allocations: 37.69 kB / 0.4902 GB, free: 11.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.1122, allocations: 168.4 kB / 0.4903 GB, free: 11.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.723e-05/0.1123, allocations: 90.66 kB / 0.4904 GB, free: 10.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.768e-05/0.1124, allocations: 49.69 kB / 0.4905 GB, free: 10.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1126, allocations: 338.8 kB / 0.4908 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002664/0.1128, allocations: 124.8 kB / 0.4909 GB, free: 10.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.1131, allocations: 151.2 kB / 0.4911 GB, free: 10.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002054/0.1152, allocations: 0.6493 MB / 0.4917 GB, free: 9.594 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1152, allocations: 3.938 kB / 0.4917 GB, free: 9.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001384/0.1166, allocations: 0.5688 MB / 0.4923 GB, free: 9.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.1166, allocations: 4 kB / 0.4923 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1166, allocations: 3.938 kB / 0.4923 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004912/0.1171, allocations: 149.5 kB / 0.4924 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.1173, allocations: 27.98 kB / 0.4924 GB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004516/0.1218, allocations: 3.909 MB / 0.4962 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.1222, allocations: 59.88 kB / 0.4963 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.1222, allocations: 4 kB / 0.4963 GB, free: 4.57 MB / 382.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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003146/0.1226, allocations: 217 kB / 0.4965 GB, free: 4.355 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002016/0.1228, allocations: 126.5 kB / 0.4966 GB, free: 4.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001751/0.1245, allocations: 0.5834 MB / 0.4972 GB, free: 3.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.212e-06/0.1246, allocations: 3.938 kB / 0.4972 GB, free: 3.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008194/0.1254, allocations: 418.7 kB / 0.4976 GB, free: 3.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.1254, allocations: 4 kB / 0.4976 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-06/0.1254, allocations: 4 kB / 0.4976 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/0.1258, allocations: 129.8 kB / 0.4977 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.1259, allocations: 31.92 kB / 0.4978 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1881/0.3141, allocations: 3.675 MB / 0.5014 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004008/0.3145, allocations: 49.94 kB / 0.5014 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.3145, allocations: 8.281 kB / 0.5014 GB, free: 20.65 MB / 382.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 (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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.3147, allocations: 207.9 kB / 0.5016 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-05/0.3147, allocations: 25.31 kB / 0.5016 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.818e-05/0.3148, allocations: 39.23 kB / 0.5017 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3148, allocations: 2.469 kB / 0.5017 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3148, allocations: 3 kB / 0.5017 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3148, allocations: 1.312 kB / 0.5017 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003614/0.3152, allocations: 397.6 kB / 0.5021 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3152, allocations: 0 / 0.5021 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.3154, allocations: 27.7 kB / 0.5021 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004911/0.3159, allocations: 174 kB / 0.5023 GB, free: 20.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.3159, allocations: 7.031 kB / 0.5023 GB, free: 20.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003083/0.319, allocations: 3.684 MB / 0.5059 GB, free: 17.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.319, allocations: 4.312 kB / 0.5059 GB, free: 17.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.3205, allocations: 0.7196 MB / 0.5066 GB, free: 17.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.025e-05/0.3205, allocations: 111.9 kB / 0.5067 GB, free: 17.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.248e-05/0.3206, allocations: 12 kB / 0.5067 GB, free: 17.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003868/0.321, allocations: 45.75 kB / 0.5067 GB, free: 17.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3211, allocations: 24.91 kB / 0.5068 GB, free: 17.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.3211, allocations: 6.578 kB / 0.5068 GB, free: 17.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005564/0.3217, allocations: 262.7 kB / 0.507 GB, free: 17.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3217, allocations: 0 / 0.507 GB, free: 17.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006445/0.3224, allocations: 134.8 kB / 0.5071 GB, free: 17.24 MB / 382.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 (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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000106/0.3225, allocations: 112.4 kB / 0.5072 GB, free: 17.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.3239, allocations: 0.9725 MB / 0.5082 GB, free: 16.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3239, allocations: 0 / 0.5082 GB, free: 16.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004996/0.3244, allocations: 420.2 kB / 0.5086 GB, free: 16.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.3248, allocations: 57.3 kB / 0.5086 GB, free: 16.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.326, allocations: 0.737 MB / 0.5094 GB, free: 16.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.3262, allocations: 0.7995 MB / 0.5101 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.437e-05/0.3263, allocations: 22.17 kB / 0.5102 GB, free: 15.43 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3263, allocations: 0 / 0.5102 GB, free: 15.43 MB / 382.1 MB Notification: Performance of Templates: time 0.008674/0.3349, allocations: 6.35 MB / 0.5164 GB, free: 15.02 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.makefile (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)