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.001545/0.001546, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 200 kB / 16.79 MB, free: 6.828 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.323/1.323, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1995/0.1995, allocations: 22.35 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 60.14 kB / 380.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2355, allocations: 54.94 MB / 435.7 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.002663/0.2382, allocations: 2.181 MB / 437.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008895/0.2391, allocations: 0.7135 MB / 438.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.2392, allocations: 3.156 kB / 438.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002728/0.2395, allocations: 56.94 kB / 438.7 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.2397, allocations: 52.67 kB / 438.7 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.24, allocations: 194.5 kB / 438.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.2403, allocations: 381.7 kB / 439.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.2405, allocations: 106.6 kB / 439.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.2406, allocations: 137 kB / 439.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.2408, allocations: 177.2 kB / 439.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.895e-05/0.2409, allocations: 18.94 kB / 439.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.244e-05/0.2409, allocations: 17.44 kB / 439.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.779e-05/0.241, allocations: 86.83 kB / 439.8 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.471e-05/0.2411, allocations: 141.3 kB / 439.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.2413, allocations: 265.7 kB / 440.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2413, allocations: 0 / 440.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.71e-07/0.2413, allocations: 0 / 440.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.2413, allocations: 0 / 440.2 MB, free: 36.65 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.001396/0.2427, allocations: 0.7299 MB / 440.9 MB, free: 36.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.2428, allocations: 11.59 kB / 440.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.987e-05/0.2428, allocations: 42.78 kB / 441 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/0.2435, allocations: 385.7 kB / 441.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.2435, allocations: 17.81 kB / 441.4 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.86e-05/0.2435, allocations: 23.12 kB / 441.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.244, allocations: 305.1 kB / 441.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.244, allocations: 0 / 441.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.244, allocations: 10.78 kB / 441.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2441, allocations: 5.688 kB / 441.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004751/0.2445, allocations: 243.8 kB / 441.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.2458, allocations: 0.8266 MB / 442.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008682/0.2466, allocations: 321.3 kB / 443.1 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00028/0.2469, allocations: 137.8 kB / 443.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.232e-05/0.247, allocations: 6.781 kB / 443.2 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.247, allocations: 34.56 kB / 443.3 MB, free: 34.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.395e-06/0.247, allocations: 4 kB / 443.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002683/0.2497, allocations: 1.007 MB / 444.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.2497, allocations: 117.5 kB / 444.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000525/0.2503, allocations: 347.1 kB / 444.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.2503, allocations: 32.7 kB / 444.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.19e-05/0.2504, allocations: 166.7 kB / 444.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.657e-05/0.2504, allocations: 89.17 kB / 445 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.652e-05/0.2505, allocations: 55 kB / 445.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.5e-05/0.2506, allocations: 338.6 kB / 445.4 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.2508, allocations: 125.9 kB / 445.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.2511, allocations: 162.5 kB / 445.7 MB, free: 33.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001852/0.2529, allocations: 0.6343 MB / 446.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2529, allocations: 0 / 446.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001243/0.2542, allocations: 0.58 MB / 446.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.2542, allocations: 7.375 kB / 446.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2542, allocations: 3.938 kB / 446.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000439/0.2547, allocations: 145.8 kB / 447 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.2548, allocations: 35 kB / 447.1 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003384/0.2582, allocations: 3.59 MB / 450.7 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.2586, allocations: 55.62 kB / 450.7 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.2586, allocations: 10.88 kB / 450.7 MB, free: 30.01 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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002738/0.2589, allocations: 219.1 kB / 450.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001717/0.2591, allocations: 129.2 kB / 451.1 MB, free: 29.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001591/0.2607, allocations: 0.5689 MB / 451.6 MB, free: 29.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.804e-06/0.2607, allocations: 3.469 kB / 451.6 MB, free: 29.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.000696/0.2614, allocations: 426.8 kB / 452.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.285e-06/0.2614, allocations: 3.594 kB / 452.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-06/0.2614, allocations: 0 / 452.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002934/0.2617, allocations: 120.3 kB / 452.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.2618, allocations: 27.09 kB / 452.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002035/0.2639, allocations: 3.343 MB / 455.6 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.2642, allocations: 51.14 kB / 455.6 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.2642, allocations: 9.531 kB / 455.6 MB, free: 26.34 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 (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.0001272/0.2644, allocations: 205.4 kB / 455.8 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.807e-05/0.2644, allocations: 28.44 kB / 455.8 MB, free: 26.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.226e-05/0.2645, allocations: 42.27 kB / 455.9 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2645, allocations: 6.812 kB / 455.9 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2645, allocations: 0 / 455.9 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2645, allocations: 2.844 kB / 455.9 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003472/0.2649, allocations: 387.5 kB / 456.3 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2649, allocations: 3.188 kB / 456.3 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.2651, allocations: 27.47 kB / 456.3 MB, free: 25.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004781/0.2656, allocations: 175.5 kB / 456.5 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.2656, allocations: 10.03 kB / 456.5 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002834/0.2684, allocations: 3.418 MB / 459.9 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2685, allocations: 9.219 kB / 459.9 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.2698, allocations: 0.7296 MB / 460.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.378e-05/0.2699, allocations: 109.2 kB / 460.7 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.2699, allocations: 7.156 kB / 460.7 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.2703, allocations: 51.55 kB / 460.8 MB, free: 22.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.439e-05/0.2704, allocations: 24.75 kB / 460.8 MB, free: 22.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.2704, allocations: 13.22 kB / 460.8 MB, free: 22.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004733/0.2709, allocations: 260.4 kB / 461.1 MB, free: 22.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.01e-07/0.2709, allocations: 4 kB / 461.1 MB, free: 22.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006507/0.2716, allocations: 135.7 kB / 461.2 MB, free: 22.21 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 (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 9.129e-05/0.2717, allocations: 101.4 kB / 461.3 MB, free: 22.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.273, allocations: 0.9725 MB / 462.3 MB, free: 21.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.273, allocations: 0 / 462.3 MB, free: 21.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004806/0.2735, allocations: 415.1 kB / 462.7 MB, free: 21.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.2739, allocations: 57.05 kB / 462.8 MB, free: 21.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.2751, allocations: 0.8505 MB / 463.6 MB, free: 20.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.2753, allocations: 0.8044 MB / 464.4 MB, free: 19.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.374e-05/0.2754, allocations: 19.41 kB / 464.4 MB, free: 19.93 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2754, allocations: 4 kB / 464.4 MB, free: 19.93 MB / 350.1 MB Notification: Performance of Templates: time 0.009838/0.2852, allocations: 6.329 MB / 470.8 MB, free: 19.43 MB / 350.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)