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.000983/0.000983, allocations: 110.9 kB / 15.99 MB, free: 5.914 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.001007/0.001008, allocations: 192.4 kB / 16.91 MB, free: 5.758 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.24/1.24, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0869/0.0869, allocations: 22.32 MB / 313.1 MB, free: 8.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001177, allocations: 65.69 kB / 380.9 MB, free: 41.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07677/0.07796, allocations: 54.96 MB / 435.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.003018/0.08101, allocations: 2.173 MB / 438 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.08207, allocations: 0.717 MB / 438.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.08218, allocations: 4 kB / 438.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.08245, allocations: 35.77 kB / 438.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.08264, allocations: 63.62 kB / 438.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.08301, allocations: 194.9 kB / 439.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003568/0.08337, allocations: 411.1 kB / 439.5 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.08356, allocations: 116.5 kB / 439.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.08372, allocations: 155.5 kB / 439.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.08392, allocations: 187.2 kB / 439.9 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.998e-05/0.08398, allocations: 32 kB / 439.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.063e-05/0.08403, allocations: 32 kB / 440 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.08415, allocations: 107.7 kB / 440.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.08427, allocations: 159.1 kB / 440.2 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.08452, allocations: 275.4 kB / 440.5 MB, free: 8.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.08452, allocations: 3.938 kB / 440.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.08453, allocations: 0 / 440.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.08454, allocations: 0 / 440.5 MB, free: 8.859 MB / 318.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.001421/0.08597, allocations: 0.7246 MB / 441.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.086, allocations: 12.03 kB / 441.2 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.574e-05/0.08608, allocations: 40.47 kB / 441.3 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006489/0.08673, allocations: 387.2 kB / 441.7 MB, free: 7.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.08676, allocations: 16.81 kB / 441.7 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.4e-05/0.08681, allocations: 24.38 kB / 441.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000503/0.08732, allocations: 294.8 kB / 442 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.08734, allocations: 0 / 442 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.08737, allocations: 8 kB / 442 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.08739, allocations: 8 kB / 442 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000499/0.0879, allocations: 245.5 kB / 442.2 MB, free: 7.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.08918, allocations: 0.8379 MB / 443.1 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007851/0.08998, allocations: 314.3 kB / 443.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000258/0.09025, allocations: 140.8 kB / 443.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.09029, allocations: 4 kB / 443.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.09032, allocations: 38.56 kB / 443.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.09033, allocations: 0 / 443.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.002739/0.09307, allocations: 1.01 MB / 444.6 MB, free: 4.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.09314, allocations: 114.6 kB / 444.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000572/0.09372, allocations: 354.9 kB / 445 MB, free: 4.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.445e-05/0.09376, allocations: 29.7 kB / 445.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.578e-05/0.09387, allocations: 176.2 kB / 445.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.763e-05/0.09395, allocations: 90.73 kB / 445.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.001e-05/0.09403, allocations: 41.7 kB / 445.4 MB, free: 3.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.09415, allocations: 346.8 kB / 445.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.09441, allocations: 124.8 kB / 445.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003778/0.0948, allocations: 158.4 kB / 446 MB, free: 3.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002284/0.09709, allocations: 0.6345 MB / 446.6 MB, free: 2.441 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.09711, allocations: 0 / 446.6 MB, free: 2.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001321/0.09843, allocations: 0.5807 MB / 447.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.09846, allocations: 4 kB / 447.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.09847, allocations: 3.938 kB / 447.2 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004482/0.09892, allocations: 149.6 kB / 447.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.09907, allocations: 27.98 kB / 447.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003994/0.1031, allocations: 3.905 MB / 451.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003314/0.1034, allocations: 55.81 kB / 451.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.1034, allocations: 8 kB / 451.3 MB, free: 13.41 MB / 334.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.0002775/0.1037, allocations: 216.8 kB / 451.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001773/0.1039, allocations: 134.5 kB / 451.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001645/0.1056, allocations: 0.5757 MB / 452.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.182e-06/0.1056, allocations: 4 kB / 452.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007402/0.1063, allocations: 418.6 kB / 452.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/0.1063, allocations: 4 kB / 452.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-06/0.1064, allocations: 0 / 452.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000298/0.1067, allocations: 129.6 kB / 452.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.1068, allocations: 27.98 kB / 452.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002604/0.1094, allocations: 3.691 MB / 456.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.1097, allocations: 47.81 kB / 456.6 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.1098, allocations: 8 kB / 456.6 MB, free: 7.867 MB / 334.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.000137/0.1099, allocations: 205.2 kB / 456.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-05/0.11, allocations: 35.56 kB / 456.8 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.309e-05/0.1101, allocations: 42.3 kB / 456.9 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1101, allocations: 7.984 kB / 456.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.1101, allocations: 0 / 456.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1101, allocations: 0 / 456.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003872/0.1105, allocations: 389.2 kB / 457.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1105, allocations: 0 / 457.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.1107, allocations: 23.98 kB / 457.3 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004855/0.1111, allocations: 189.6 kB / 457.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.1112, allocations: 8 kB / 457.5 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003429/0.1146, allocations: 3.661 MB / 461.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1146, allocations: 0 / 461.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.116, allocations: 0.7345 MB / 461.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.639e-05/0.1161, allocations: 116.7 kB / 462 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.338e-05/0.1162, allocations: 8 kB / 462 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003497/0.1165, allocations: 43.94 kB / 462 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.733e-05/0.1166, allocations: 19.97 kB / 462 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.1166, allocations: 4 kB / 462 MB, free: 2.016 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00049/0.1171, allocations: 269.9 kB / 462.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1171, allocations: 3.938 kB / 462.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005963/0.1177, allocations: 131.7 kB / 462.4 MB, free: 1.621 MB / 334.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.0001102/0.1178, allocations: 107.2 kB / 462.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.1193, allocations: 0.9926 MB / 463.5 MB, free: 472 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1193, allocations: 0 / 463.5 MB, free: 472 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005231/0.1199, allocations: 413.2 kB / 463.9 MB, free: 32 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004209/0.1203, allocations: 61.91 kB / 464 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.1215, allocations: 0.856 MB / 464.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.1219, allocations: 0.7999 MB / 465.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.092e-05/0.1219, allocations: 19.44 kB / 465.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1219, allocations: 0 / 465.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of Templates: time 0.007282/0.1292, allocations: 6.341 MB / 472 MB, free: 7.895 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)