Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001091/0.001091, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.322/1.322, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09191/0.09191, allocations: 22.32 MB / 313.4 MB, free: 8.977 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 66.67 kB / 381.5 MB, free: 41.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07853/0.07991, allocations: 54.96 MB / 436.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.00226/0.0822, allocations: 1.066 MB / 437.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.08362, allocations: 1.248 MB / 438.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.836e-05/0.08371, allocations: 4 kB / 438.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002669/0.084, allocations: 43.7 kB / 438.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.08418, allocations: 71.66 kB / 438.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.0844, allocations: 95.86 kB / 438.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.0847, allocations: 307.4 kB / 439.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.08482, allocations: 49.88 kB / 439.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.08498, allocations: 119.6 kB / 439.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.0852, allocations: 151.5 kB / 439.6 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.08527, allocations: 20 kB / 439.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.876e-05/0.08532, allocations: 20 kB / 439.6 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.08544, allocations: 91.72 kB / 439.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.683e-05/0.08554, allocations: 95.39 kB / 439.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.08576, allocations: 223.2 kB / 440 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.08577, allocations: 0 / 440 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08578, allocations: 3.938 kB / 440 MB, free: 9.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.08579, allocations: 4 kB / 440 MB, free: 9.438 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001624/0.08742, allocations: 0.6622 MB / 440.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.08746, allocations: 8.031 kB / 440.7 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.08753, allocations: 24.66 kB / 440.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008251/0.08836, allocations: 362.6 kB / 441 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.08839, allocations: 8.375 kB / 441.1 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.08843, allocations: 16.28 kB / 441.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.08873, allocations: 179.1 kB / 441.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.08875, allocations: 0 / 441.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.08878, allocations: 4 kB / 441.3 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.08879, allocations: 8 kB / 441.3 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.08911, allocations: 167.9 kB / 441.4 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000995/0.09012, allocations: 0.6212 MB / 442 MB, free: 7.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/0.09047, allocations: 210.5 kB / 442.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.09066, allocations: 116.8 kB / 442.4 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.09068, allocations: 4 kB / 442.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.09072, allocations: 42.55 kB / 442.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.302e-06/0.09073, allocations: 3.938 kB / 442.4 MB, free: 6.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001762/0.0925, allocations: 0.638 MB / 443.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.09254, allocations: 55.41 kB / 443.1 MB, free: 6.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007474/0.09329, allocations: 344.9 kB / 443.4 MB, free: 5.785 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.09332, allocations: 33.7 kB / 443.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.157e-05/0.09341, allocations: 132.4 kB / 443.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.304e-05/0.09348, allocations: 70.91 kB / 443.7 MB, free: 5.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.917e-05/0.09357, allocations: 41.7 kB / 443.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.09369, allocations: 338.8 kB / 444 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.09385, allocations: 83.94 kB / 444.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.09402, allocations: 99.88 kB / 444.2 MB, free: 4.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/0.09597, allocations: 0.6249 MB / 444.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.09599, allocations: 0 / 444.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007446/0.09674, allocations: 398 kB / 445.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.09676, allocations: 11.92 kB / 445.2 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.09677, allocations: 0 / 445.2 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.09708, allocations: 100.7 kB / 445.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.09726, allocations: 31.92 kB / 445.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.09898, allocations: 1.837 MB / 447.2 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003727/0.09937, allocations: 55.98 kB / 447.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.0994, allocations: 11.94 kB / 447.3 MB, free: 1.762 MB / 318.1 MB Warning: Assuming fixed start value for the following 6 variables: 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 (21): * Single equations (assignments): 20 * 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.0002172/0.09962, allocations: 175.8 kB / 447.5 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.827e-05/0.09969, allocations: 23.72 kB / 447.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.08e-05/0.09978, allocations: 38.17 kB / 447.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.09979, allocations: 0 / 447.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.09981, allocations: 4 kB / 447.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.09982, allocations: 4 kB / 447.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003575/0.1002, allocations: 329.3 kB / 447.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1002, allocations: 0 / 447.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.1004, allocations: 23.98 kB / 447.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002729/0.1007, allocations: 88.77 kB / 448 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1007, allocations: 8 kB / 448 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.1024, allocations: 1.853 MB / 449.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.1024, allocations: 4.031 kB / 449.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008997/0.1033, allocations: 0.5487 MB / 450.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.126e-05/0.1034, allocations: 108.8 kB / 450.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.1035, allocations: 11.92 kB / 450.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003823/0.1039, allocations: 47.94 kB / 450.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.754e-05/0.1039, allocations: 27.89 kB / 450.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.1039, allocations: 4 kB / 450.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006498/0.1046, allocations: 276.3 kB / 450.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1046, allocations: 0 / 450.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003022/0.1049, allocations: 48 kB / 450.9 MB, free: 13.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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.0001027/0.105, allocations: 99.25 kB / 451 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006714/0.1057, allocations: 398.6 kB / 451.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1057, allocations: 0 / 451.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003526/0.1061, allocations: 242.6 kB / 451.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.1064, allocations: 38.75 kB / 451.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009095/0.1074, allocations: 0.6016 MB / 452.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.1077, allocations: 0.7674 MB / 453 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.216e-05/0.1078, allocations: 23.42 kB / 453 MB, free: 11.68 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1078, allocations: 0 / 453 MB, free: 11.68 MB / 334.1 MB Notification: Performance of Templates: time 0.005269/0.1131, allocations: 3.711 MB / 456.7 MB, free: 7.969 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)