Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.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_digital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital") translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 113.9 kB / 16.42 MB, free: 6.523 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.001746/0.001746, allocations: 183.9 kB / 17.34 MB, free: 5.734 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09519/0.09519, allocations: 22.32 MB / 313.5 MB, free: 8.848 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 63.89 kB / 437.7 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09885, allocations: 54.95 MB / 492.7 MB, free: 4.824 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.003249/0.1021, allocations: 2.009 MB / 494.7 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1034, allocations: 0.7091 MB / 495.4 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.1036, allocations: 0 / 495.4 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003085/0.1039, allocations: 47.59 kB / 495.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.1042, allocations: 67.56 kB / 495.5 MB, free: 1.973 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.1046, allocations: 163.7 kB / 495.7 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004438/0.1051, allocations: 351.3 kB / 496 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.1053, allocations: 87.11 kB / 496.1 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.1055, allocations: 139.5 kB / 496.2 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.1058, allocations: 163.3 kB / 496.4 MB, free: 1.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-05/0.1058, allocations: 24 kB / 496.4 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.693e-05/0.1059, allocations: 28 kB / 496.4 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.1061, allocations: 87.73 kB / 496.5 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.1062, allocations: 127.3 kB / 496.6 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.1065, allocations: 302.6 kB / 496.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1066, allocations: 0 / 496.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1066, allocations: 0 / 496.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.1066, allocations: 4 kB / 496.9 MB, free: 0.5195 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001584/0.1082, allocations: 0.724 MB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1082, allocations: 12.03 kB / 497.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.237e-05/0.1083, allocations: 32.75 kB / 497.7 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007198/0.109, allocations: 359.6 kB / 498.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.1091, allocations: 12.7 kB / 498.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.509e-05/0.1091, allocations: 28.36 kB / 498.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004677/0.1096, allocations: 254.1 kB / 498.4 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1096, allocations: 0 / 498.4 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.1097, allocations: 8 kB / 498.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1097, allocations: 4 kB / 498.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004554/0.1101, allocations: 196.5 kB / 498.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.1114, allocations: 0.7076 MB / 499.3 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006622/0.1121, allocations: 270.2 kB / 499.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/0.1123, allocations: 128.8 kB / 499.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.1124, allocations: 4 kB / 499.7 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003484/0.1127, allocations: 203.2 kB / 499.9 MB, free: 13.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.974e-06/0.1127, allocations: 4 kB / 499.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.002479/0.1152, allocations: 0.9037 MB / 0.489 GB, free: 12.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.368e-05/0.1153, allocations: 136.5 kB / 0.4892 GB, free: 12.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005923/0.1159, allocations: 322.5 kB / 0.4895 GB, free: 11.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.744e-05/0.116, allocations: 29.7 kB / 0.4895 GB, free: 11.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.739e-05/0.1161, allocations: 152.5 kB / 0.4896 GB, free: 11.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.892e-05/0.1162, allocations: 91.25 kB / 0.4897 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.112e-05/0.1163, allocations: 49.7 kB / 0.4898 GB, free: 11.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1164, allocations: 338.8 kB / 0.4901 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/0.1166, allocations: 109.1 kB / 0.4902 GB, free: 11.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.1169, allocations: 143 kB / 0.4903 GB, free: 11.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002012/0.1189, allocations: 0.7322 MB / 0.4911 GB, free: 10.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1189, allocations: 4 kB / 0.4911 GB, free: 10.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001066/0.12, allocations: 0.5013 MB / 0.4915 GB, free: 9.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.1201, allocations: 59.44 kB / 0.4916 GB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1201, allocations: 4 kB / 0.4916 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000286/0.1204, allocations: 72.8 kB / 0.4917 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.1205, allocations: 35.91 kB / 0.4917 GB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/0.1228, allocations: 1.864 MB / 0.4935 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000333/0.1231, allocations: 47.84 kB / 0.4936 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.1231, allocations: 12.05 kB / 0.4936 GB, free: 7.5 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_d.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_d.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002909/0.1234, allocations: 212.1 kB / 0.4938 GB, free: 7.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001982/0.1236, allocations: 131 kB / 0.4939 GB, free: 7.156 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001739/0.1254, allocations: 0.6866 MB / 0.4946 GB, free: 6.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.353e-06/0.1254, allocations: 4 kB / 0.4946 GB, free: 6.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007149/0.1261, allocations: 438.1 kB / 0.495 GB, free: 5.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.1262, allocations: 65.42 kB / 0.4951 GB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.1262, allocations: 0 / 0.4951 GB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001828/0.1264, allocations: 64.75 kB / 0.4951 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.1266, allocations: 31.98 kB / 0.4952 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.1281, allocations: 1.854 MB / 0.497 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.1284, allocations: 43.88 kB / 0.497 GB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.1285, allocations: 12 kB / 0.497 GB, free: 3.762 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_d.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_d.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.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: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.PI_d.u,$PRE.PI_d.ulino,$PRE.PI_d.ulin,$PRE.PI_d.xfb,PI_d.u,PI_d.ulino,PI_d.ulin,PI_d.xfb) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001995/0.1287, allocations: 242 kB / 0.4973 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.59e-05/0.1287, allocations: 31.81 kB / 0.4973 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.559e-05/0.1288, allocations: 34.17 kB / 0.4973 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1288, allocations: 0 / 0.4973 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1288, allocations: 4 kB / 0.4973 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.088e-05/0.1289, allocations: 104.9 kB / 0.4974 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.129, allocations: 11.94 kB / 0.4974 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003472/0.1293, allocations: 39.95 kB / 0.4975 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.1294, allocations: 19.91 kB / 0.4975 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001702/0.1311, allocations: 0.7179 MB / 0.4982 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009749/0.1321, allocations: 0.6871 MB / 0.4989 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002619/0.1324, allocations: 151.8 kB / 0.499 GB, free: 1.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004854/0.1329, allocations: 245.8 kB / 0.4992 GB, free: 1.402 MB / 382.1 MB Notification: Performance of Backend: time 5.61e-07/0.1329, allocations: 0 / 0.4992 GB, free: 1.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.1342, allocations: 0.8732 MB / 0.5001 GB, free: 460 kB / 382.1 MB Notification: Performance of SimCode: time 0.1815/0.3158, allocations: 1.091 MB / 0.5012 GB, free: 21.91 MB / 382.1 MB Notification: Performance of Templates: time 0.009364/0.3252, allocations: 5.338 MB / 0.5064 GB, free: 21.79 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.makefile (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.sim & ./AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe 2>&1)