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.00118/0.00118, allocations: 111 kB / 16.37 MB, free: 6.344 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.001241/0.001241, allocations: 192 kB / 17.3 MB, free: 5.898 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.249/1.249, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08828/0.08828, allocations: 22.33 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 75.88 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09711/0.09835, allocations: 54.96 MB / 492.6 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.002869/0.1013, allocations: 2.124 MB / 494.7 MB, free: 2.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.1024, allocations: 0.7248 MB / 495.5 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.1025, allocations: 7.938 kB / 495.5 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/0.1028, allocations: 55.56 kB / 495.5 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.103, allocations: 71.44 kB / 495.6 MB, free: 1.773 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003914/0.1034, allocations: 203.7 kB / 495.8 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003747/0.1038, allocations: 411.2 kB / 496.2 MB, free: 1.172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.104, allocations: 116.2 kB / 496.3 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.1042, allocations: 159.4 kB / 496.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000217/0.1044, allocations: 183.2 kB / 496.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.272e-05/0.1044, allocations: 32 kB / 496.7 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.288e-05/0.1045, allocations: 39.94 kB / 496.7 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.1046, allocations: 107.7 kB / 496.8 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.1047, allocations: 151.1 kB / 497 MB, free: 408 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000316/0.1051, allocations: 366.7 kB / 497.3 MB, free: 40 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1051, allocations: 3.938 kB / 497.3 MB, free: 36 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1051, allocations: 0 / 497.3 MB, free: 36 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1051, allocations: 0 / 497.3 MB, free: 36 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.001451/0.1066, allocations: 0.7208 MB / 498.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.1066, allocations: 16.03 kB / 498.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.605e-05/0.1067, allocations: 36.47 kB / 498.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006853/0.1074, allocations: 387.2 kB / 498.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.129e-05/0.1074, allocations: 16.81 kB / 498.5 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/0.1075, allocations: 24.38 kB / 498.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.108, allocations: 294.8 kB / 498.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.108, allocations: 11.92 kB / 498.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.108, allocations: 4 kB / 498.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.1081, allocations: 7.938 kB / 498.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005227/0.1086, allocations: 245.6 kB / 499.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.11, allocations: 0.83 MB / 499.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008318/0.1108, allocations: 314.4 kB / 0.4885 GB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002749/0.1111, allocations: 136.8 kB / 0.4886 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.1111, allocations: 4 kB / 0.4886 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.1112, allocations: 38.5 kB / 0.4887 GB, free: 12.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.1112, allocations: 0 / 0.4887 GB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.002842/0.114, allocations: 1.006 MB / 0.4896 GB, free: 11.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.1141, allocations: 118.8 kB / 0.4898 GB, free: 11.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005831/0.1147, allocations: 338.9 kB / 0.4901 GB, free: 11.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.1147, allocations: 41.62 kB / 0.4901 GB, free: 11.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.607e-05/0.1148, allocations: 168.4 kB / 0.4903 GB, free: 11.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.391e-05/0.1149, allocations: 90.64 kB / 0.4904 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.315e-05/0.115, allocations: 53.69 kB / 0.4904 GB, free: 10.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1151, allocations: 342.8 kB / 0.4907 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.1154, allocations: 120.8 kB / 0.4909 GB, free: 10.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/0.1157, allocations: 151.2 kB / 0.491 GB, free: 10.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001956/0.1176, allocations: 0.6415 MB / 0.4916 GB, free: 9.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1176, allocations: 0 / 0.4916 GB, free: 9.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001362/0.119, allocations: 0.5766 MB / 0.4922 GB, free: 9.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.119, allocations: 4 kB / 0.4922 GB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.119, allocations: 3.938 kB / 0.4922 GB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004653/0.1195, allocations: 145.6 kB / 0.4923 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.1197, allocations: 35.92 kB / 0.4924 GB, free: 8.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004324/0.124, allocations: 3.901 MB / 0.4962 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003677/0.1244, allocations: 59.75 kB / 0.4962 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.1244, allocations: 8 kB / 0.4962 GB, free: 4.609 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.0003091/0.1247, allocations: 223.6 kB / 0.4965 GB, free: 4.391 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002161/0.125, allocations: 134.5 kB / 0.4966 GB, free: 4.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001639/0.1266, allocations: 0.5756 MB / 0.4972 GB, free: 3.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.1266, allocations: 0 / 0.4972 GB, free: 3.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007781/0.1274, allocations: 426.7 kB / 0.4976 GB, free: 3.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.368e-06/0.1274, allocations: 4 kB / 0.4976 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-06/0.1274, allocations: 192 / 0.4976 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003173/0.1278, allocations: 125.6 kB / 0.4977 GB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.1279, allocations: 35.98 kB / 0.4977 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1985/0.3264, allocations: 3.675 MB / 0.5013 GB, free: 20.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.3269, allocations: 49.34 kB / 0.5014 GB, free: 20.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.3269, allocations: 7.734 kB / 0.5014 GB, free: 20.72 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.0001394/0.327, allocations: 205.2 kB / 0.5016 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.754e-05/0.3271, allocations: 31.19 kB / 0.5016 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.98e-05/0.3272, allocations: 39.89 kB / 0.5016 GB, free: 20.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3272, allocations: 0.7031 kB / 0.5016 GB, free: 20.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3272, allocations: 4.188 kB / 0.5016 GB, free: 20.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3272, allocations: 1.594 kB / 0.5016 GB, free: 20.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003867/0.3276, allocations: 393 kB / 0.502 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3276, allocations: 0.8906 kB / 0.502 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.3278, allocations: 26.72 kB / 0.502 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004898/0.3283, allocations: 172.3 kB / 0.5022 GB, free: 20.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.3283, allocations: 11.25 kB / 0.5022 GB, free: 20.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003073/0.3314, allocations: 3.677 MB / 0.5058 GB, free: 17.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3314, allocations: 0 / 0.5058 GB, free: 17.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.3329, allocations: 0.7285 MB / 0.5065 GB, free: 17.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.651e-05/0.3329, allocations: 111.9 kB / 0.5066 GB, free: 17.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.333, allocations: 13.66 kB / 0.5066 GB, free: 17.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003584/0.3333, allocations: 41.56 kB / 0.5067 GB, free: 17.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.951e-05/0.3334, allocations: 26.09 kB / 0.5067 GB, free: 17.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.3335, allocations: 12.61 kB / 0.5067 GB, free: 17.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004916/0.3339, allocations: 260.9 kB / 0.507 GB, free: 17.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.334, allocations: 0 / 0.507 GB, free: 17.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006078/0.3346, allocations: 130.7 kB / 0.5071 GB, free: 17.3 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.0001107/0.3347, allocations: 104.9 kB / 0.5072 GB, free: 17.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.3362, allocations: 0.9842 MB / 0.5081 GB, free: 16.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3362, allocations: 2.844 kB / 0.5081 GB, free: 16.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004814/0.3367, allocations: 422.6 kB / 0.5085 GB, free: 16.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004261/0.3371, allocations: 55.53 kB / 0.5086 GB, free: 16.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.3382, allocations: 0.7335 MB / 0.5093 GB, free: 16.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.3385, allocations: 0.8008 MB / 0.5101 GB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.575e-05/0.3385, allocations: 20.7 kB / 0.5101 GB, free: 15.49 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3386, allocations: 0 / 0.5101 GB, free: 15.49 MB / 382.1 MB Notification: Performance of Templates: time 0.01062/0.3492, allocations: 6.338 MB / 0.5163 GB, free: 15.09 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)