Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.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.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00781/0.00781, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.002176/0.002176, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08875/0.08875, allocations: 22.33 MB / 312.8 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 63.89 kB / 437 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.171, allocations: 54.96 MB / 492 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002727/0.1737, allocations: 1.13 MB / 493.1 MB, free: 3.656 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.1757, allocations: 1.307 MB / 494.4 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.1759, allocations: 0 / 494.4 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000402/0.1763, allocations: 67.62 kB / 494.5 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000294/0.1766, allocations: 91.58 kB / 494.6 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003411/0.177, allocations: 135.7 kB / 494.7 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004226/0.1774, allocations: 379.3 kB / 495.1 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.1776, allocations: 56.31 kB / 495.1 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.1778, allocations: 155.6 kB / 495.3 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.1781, allocations: 191.3 kB / 495.5 MB, free: 1.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.658e-05/0.1782, allocations: 24 kB / 495.5 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.346e-05/0.1783, allocations: 20 kB / 495.5 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.1784, allocations: 107.7 kB / 495.6 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.1785, allocations: 119.2 kB / 495.7 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.1788, allocations: 267 kB / 496 MB, free: 0.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1789, allocations: 4 kB / 496 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1789, allocations: 3.938 kB / 496 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1789, allocations: 3.938 kB / 496 MB, free: 0.7383 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.002066/0.1809, allocations: 0.7596 MB / 496.8 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.181, allocations: 8.031 kB / 496.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.451e-05/0.1811, allocations: 32.56 kB / 496.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.1821, allocations: 407.3 kB / 497.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.1822, allocations: 8.656 kB / 497.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.886e-05/0.1822, allocations: 24.28 kB / 497.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003714/0.1826, allocations: 196 kB / 497.4 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.1826, allocations: 4 kB / 497.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.1827, allocations: 4 kB / 497.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.1827, allocations: 4 kB / 497.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003912/0.1831, allocations: 196.7 kB / 497.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.1844, allocations: 0.6956 MB / 498.3 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006048/0.185, allocations: 270.4 kB / 498.6 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.1852, allocations: 132.8 kB / 498.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.1852, allocations: 0 / 498.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1853, allocations: 38.56 kB / 498.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.1853, allocations: 0 / 498.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001888/0.1872, allocations: 0.6846 MB / 499.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.1872, allocations: 55.41 kB / 499.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008963/0.1881, allocations: 418.8 kB / 499.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.1882, allocations: 29.7 kB / 499.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.424e-05/0.1883, allocations: 152.4 kB / 0.4884 GB, free: 12.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.08e-05/0.1883, allocations: 86.75 kB / 0.4885 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-05/0.1884, allocations: 41.7 kB / 0.4885 GB, free: 12.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1886, allocations: 346.8 kB / 0.4888 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.1888, allocations: 107.9 kB / 0.4889 GB, free: 11.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.189, allocations: 109.1 kB / 0.489 GB, free: 11.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002253/0.1912, allocations: 0.7104 MB / 0.4897 GB, free: 11.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1912, allocations: 0 / 0.4897 GB, free: 11.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008413/0.1921, allocations: 441.8 kB / 0.4901 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1921, allocations: 7.938 kB / 0.4902 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1921, allocations: 0 / 0.4902 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003355/0.1925, allocations: 92.77 kB / 0.4902 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.1927, allocations: 43.91 kB / 0.4903 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.1946, allocations: 1.845 MB / 0.4921 GB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004325/0.1951, allocations: 67.78 kB / 0.4922 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.1951, allocations: 16.06 kB / 0.4922 GB, free: 8.375 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002498/0.1954, allocations: 176.3 kB / 0.4923 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.556e-05/0.1954, allocations: 27.72 kB / 0.4924 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.23e-05/0.1955, allocations: 42.25 kB / 0.4924 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1956, allocations: 4 kB / 0.4924 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1956, allocations: 0 / 0.4924 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.1956, allocations: 0 / 0.4924 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004428/0.196, allocations: 373.1 kB / 0.4928 GB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.196, allocations: 0 / 0.4928 GB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.1963, allocations: 27.98 kB / 0.4928 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003029/0.1966, allocations: 96.77 kB / 0.4929 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.1966, allocations: 8 kB / 0.4929 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001896/0.1985, allocations: 1.846 MB / 0.4947 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1985, allocations: 0 / 0.4947 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.1997, allocations: 0.6131 MB / 0.4953 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.1999, allocations: 116.7 kB / 0.4954 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.182e-05/0.1999, allocations: 11.94 kB / 0.4954 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/0.2004, allocations: 51.91 kB / 0.4955 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.263e-05/0.2004, allocations: 19.92 kB / 0.4955 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.2005, allocations: 4 kB / 0.4955 GB, free: 4.738 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009069/0.2014, allocations: 337.7 kB / 0.4958 GB, free: 4.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2014, allocations: 0 / 0.4958 GB, free: 4.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003865/0.2018, allocations: 63.94 kB / 0.4959 GB, free: 4.348 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.x_scaled[1]) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001605/0.202, allocations: 111.2 kB / 0.496 GB, free: 4.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008584/0.2028, allocations: 412.7 kB / 0.4964 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2028, allocations: 0 / 0.4964 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004294/0.2033, allocations: 274.5 kB / 0.4966 GB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004365/0.2037, allocations: 44.86 kB / 0.4967 GB, free: 3.488 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.2052, allocations: 0.6832 MB / 0.4973 GB, free: 2.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004962/0.2058, allocations: 0.7909 MB / 0.4981 GB, free: 1.961 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.2059, allocations: 62.36 kB / 0.4982 GB, free: 1.895 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.634e-05/0.206, allocations: 27.44 kB / 0.4982 GB, free: 1.867 MB / 382.1 MB Notification: Performance of SimCode: time 6.12e-07/0.206, allocations: 0 / 0.4982 GB, free: 1.867 MB / 382.1 MB Notification: Performance of Templates: time 0.2808/0.4868, allocations: 3.465 MB / 0.5016 GB, free: 22.06 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)