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.001289/0.001289, allocations: 109.6 kB / 16.41 MB, free: 6.426 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.001296/0.001296, allocations: 190.7 kB / 17.35 MB, free: 5.688 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.309/1.309, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09327/0.09327, allocations: 22.33 MB / 313.5 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00228/0.00228, allocations: 59.91 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1132, allocations: 54.95 MB / 492.7 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.003086/0.1163, allocations: 2.005 MB / 494.7 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.1176, allocations: 0.7014 MB / 495.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1178, allocations: 8 kB / 495.4 MB, free: 2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.1181, allocations: 47.58 kB / 495.4 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.1183, allocations: 67.56 kB / 495.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003965/0.1187, allocations: 159.2 kB / 495.7 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004092/0.1191, allocations: 363.2 kB / 496 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.1193, allocations: 83.11 kB / 496.1 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.1195, allocations: 139.5 kB / 496.2 MB, free: 1.156 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.1198, allocations: 167.3 kB / 496.4 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.1198, allocations: 28 kB / 496.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.178e-05/0.1199, allocations: 24 kB / 496.4 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.12, allocations: 83.73 kB / 496.5 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.1202, allocations: 131.2 kB / 496.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003207/0.1205, allocations: 294.7 kB / 496.9 MB, free: 452 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1205, allocations: 4 kB / 496.9 MB, free: 448 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1205, allocations: 0 / 496.9 MB, free: 448 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1205, allocations: 4 kB / 497 MB, free: 444 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001566/0.1221, allocations: 0.7357 MB / 497.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.1221, allocations: 8.031 kB / 497.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.1222, allocations: 32.75 kB / 497.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007168/0.1229, allocations: 355.6 kB / 498.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.123, allocations: 12.7 kB / 498.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.531e-05/0.123, allocations: 24.38 kB / 498.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/0.1235, allocations: 254 kB / 498.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1235, allocations: 4 kB / 498.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/0.1236, allocations: 4 kB / 498.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.896e-06/0.1236, allocations: 11.98 kB / 498.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004674/0.124, allocations: 192.5 kB / 498.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.1253, allocations: 0.7037 MB / 499.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.1259, allocations: 262.3 kB / 499.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002576/0.1262, allocations: 128.8 kB / 499.7 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.1262, allocations: 4 kB / 499.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000353/0.1266, allocations: 205.1 kB / 499.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.1266, allocations: 0 / 499.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.002481/0.1291, allocations: 0.9063 MB / 0.489 GB, free: 12.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.1292, allocations: 140.5 kB / 0.4892 GB, free: 12.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006119/0.1298, allocations: 310.5 kB / 0.4895 GB, free: 11.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/0.1298, allocations: 37.69 kB / 0.4895 GB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.977e-05/0.1299, allocations: 156.5 kB / 0.4896 GB, free: 11.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.701e-05/0.13, allocations: 87.27 kB / 0.4897 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.769e-05/0.1301, allocations: 49.7 kB / 0.4898 GB, free: 11.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1302, allocations: 338.8 kB / 0.4901 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.1305, allocations: 101.1 kB / 0.4902 GB, free: 11.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.1308, allocations: 147 kB / 0.4903 GB, free: 10.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001992/0.1328, allocations: 0.7361 MB / 0.491 GB, free: 10.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1328, allocations: 0 / 0.491 GB, free: 10.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001091/0.1339, allocations: 0.5052 MB / 0.4915 GB, free: 9.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.493e-05/0.1339, allocations: 63.39 kB / 0.4916 GB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1339, allocations: 0 / 0.4916 GB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002816/0.1342, allocations: 76.8 kB / 0.4917 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.1344, allocations: 31.92 kB / 0.4917 GB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/0.1367, allocations: 1.864 MB / 0.4935 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003496/0.1371, allocations: 47.84 kB / 0.4936 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.1371, allocations: 4 kB / 0.4936 GB, free: 7.426 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.0003142/0.1375, allocations: 221.3 kB / 0.4938 GB, free: 7.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002052/0.1377, allocations: 127 kB / 0.4939 GB, free: 7.074 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001819/0.1395, allocations: 0.6905 MB / 0.4946 GB, free: 6.348 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/0.1395, allocations: 0 / 0.4946 GB, free: 6.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007507/0.1403, allocations: 442.2 kB / 0.495 GB, free: 5.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.149e-05/0.1403, allocations: 65.58 kB / 0.4951 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.1403, allocations: 0 / 0.4951 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001865/0.1405, allocations: 60.81 kB / 0.4951 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.1407, allocations: 35.92 kB / 0.4952 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.1422, allocations: 1.842 MB / 0.497 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.1425, allocations: 55.92 kB / 0.497 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.1426, allocations: 8 kB / 0.497 GB, free: 3.68 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.0001768/0.1428, allocations: 238.8 kB / 0.4972 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.1428, allocations: 35.75 kB / 0.4973 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.869e-05/0.1429, allocations: 38.19 kB / 0.4973 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.1429, allocations: 3.984 kB / 0.4973 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1429, allocations: 0 / 0.4973 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.575e-05/0.143, allocations: 100.9 kB / 0.4974 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.109e-05/0.1431, allocations: 15.92 kB / 0.4974 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003305/0.1434, allocations: 39.95 kB / 0.4975 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.129e-05/0.1435, allocations: 15.97 kB / 0.4975 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001735/0.1452, allocations: 0.7168 MB / 0.4982 GB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009694/0.1462, allocations: 0.6871 MB / 0.4989 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002609/0.1465, allocations: 140 kB / 0.499 GB, free: 1.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005163/0.147, allocations: 253.8 kB / 0.4992 GB, free: 1.324 MB / 382.1 MB Notification: Performance of Backend: time 8.12e-07/0.147, allocations: 3.938 kB / 0.4992 GB, free: 1.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.1484, allocations: 0.881 MB / 0.5001 GB, free: 368 kB / 382.1 MB Notification: Performance of SimCode: time 0.1774/0.3258, allocations: 1.101 MB / 0.5012 GB, free: 21.82 MB / 382.1 MB Notification: Performance of Templates: time 0.009186/0.335, allocations: 5.323 MB / 0.5064 GB, free: 21.69 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)