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.001316/0.00132, allocations: 117.8 kB / 16.37 MB, free: 6 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.001411/0.001412, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.398/1.398, 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.0942/0.0942, allocations: 22.32 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 63.16 kB / 382.2 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08558/0.08681, allocations: 54.96 MB / 437.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002353/0.08921, allocations: 1.139 MB / 438.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.09076, allocations: 1.291 MB / 439.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.979e-05/0.09087, allocations: 0 / 439.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003533/0.09123, allocations: 79.48 kB / 439.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.09148, allocations: 79.61 kB / 439.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.09175, allocations: 135.8 kB / 439.9 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003769/0.09214, allocations: 383.3 kB / 440.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.09229, allocations: 60.3 kB / 440.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.09248, allocations: 155.5 kB / 440.5 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.09274, allocations: 187.4 kB / 440.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.664e-05/0.09279, allocations: 20 kB / 440.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.748e-05/0.09284, allocations: 27.94 kB / 440.7 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.09298, allocations: 111.7 kB / 440.9 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.09309, allocations: 115.2 kB / 441 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.09333, allocations: 275 kB / 441.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.09334, allocations: 0 / 441.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.09335, allocations: 8 kB / 441.2 MB, free: 8.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.09336, allocations: 0 / 441.2 MB, free: 8.176 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001728/0.0951, allocations: 0.7519 MB / 442 MB, free: 7.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.09514, allocations: 8.031 kB / 442 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.125e-05/0.0952, allocations: 32.56 kB / 442 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009635/0.09617, allocations: 415.2 kB / 442.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.0962, allocations: 8.656 kB / 442.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.262e-05/0.09625, allocations: 20.38 kB / 442.5 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.09658, allocations: 192 kB / 442.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.0966, allocations: 7.938 kB / 442.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.09663, allocations: 4 kB / 442.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.09664, allocations: 4 kB / 442.7 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.097, allocations: 200.7 kB / 442.9 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.09816, allocations: 0.6917 MB / 443.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005257/0.0987, allocations: 270.4 kB / 443.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.09891, allocations: 124.8 kB / 443.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.09894, allocations: 4 kB / 443.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.09897, allocations: 34.56 kB / 444 MB, free: 5.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.402e-06/0.09898, allocations: 0 / 444 MB, free: 5.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001771/0.1008, allocations: 0.6965 MB / 444.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.1008, allocations: 59.41 kB / 444.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008835/0.1017, allocations: 414.8 kB / 445.1 MB, free: 4.062 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.1017, allocations: 33.7 kB / 445.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.182e-05/0.1018, allocations: 148.5 kB / 445.3 MB, free: 3.875 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.298e-05/0.1019, allocations: 86.8 kB / 445.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/0.102, allocations: 41.7 kB / 445.4 MB, free: 3.742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1021, allocations: 342.8 kB / 445.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.1023, allocations: 107.8 kB / 445.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.1025, allocations: 108.4 kB / 446 MB, free: 3.188 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00212/0.1046, allocations: 0.7085 MB / 446.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1046, allocations: 0 / 446.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008202/0.1055, allocations: 441.8 kB / 447.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1055, allocations: 11.94 kB / 447.1 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1055, allocations: 0 / 447.1 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003361/0.1058, allocations: 100.7 kB / 447.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.106, allocations: 43.97 kB / 447.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.1079, allocations: 1.829 MB / 449.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.1083, allocations: 75.62 kB / 449.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.1084, allocations: 12 kB / 449.2 MB, free: 15.82 MB / 334.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.0002088/0.1086, allocations: 180.4 kB / 449.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.571e-05/0.1086, allocations: 23.72 kB / 449.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.087e-05/0.1087, allocations: 42.25 kB / 449.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.1087, allocations: 4 kB / 449.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1088, allocations: 4 kB / 449.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1088, allocations: 0 / 449.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003568/0.1091, allocations: 369.2 kB / 449.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1091, allocations: 0 / 449.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002073/0.1094, allocations: 28.17 kB / 449.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002649/0.1096, allocations: 104.7 kB / 449.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/0.1097, allocations: 8 kB / 449.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/0.1113, allocations: 1.842 MB / 451.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1114, allocations: 3.938 kB / 451.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009635/0.1123, allocations: 0.6181 MB / 452.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.341e-05/0.1124, allocations: 112.8 kB / 452.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.1125, allocations: 8 kB / 452.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004221/0.1129, allocations: 55.97 kB / 452.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.113, allocations: 23.86 kB / 452.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.113, allocations: 4 kB / 452.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007494/0.1138, allocations: 329.8 kB / 452.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1138, allocations: 0 / 452.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.1141, allocations: 67.84 kB / 453 MB, free: 11.78 MB / 334.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.0001383/0.1142, allocations: 113.3 kB / 453.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007314/0.115, allocations: 409.4 kB / 453.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.115, allocations: 0 / 453.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.1154, allocations: 274.4 kB / 453.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.1158, allocations: 51.11 kB / 453.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.1172, allocations: 0.6754 MB / 454.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.1176, allocations: 0.7909 MB / 455.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001534/0.1178, allocations: 62.23 kB / 455.4 MB, free: 9.336 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.733e-05/0.1179, allocations: 23.44 kB / 455.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1179, allocations: 0 / 455.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of Templates: time 0.00665/0.1246, allocations: 3.418 MB / 458.8 MB, free: 5.898 MB / 334.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)