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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008964/0.0008964, allocations: 72.95 kB / 20.74 MB, free: 3.75 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009277/0.0009277, allocations: 177 kB / 24.17 MB, free: 332 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9859/0.9859, allocations: 177.2 MB / 204.6 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09713/0.09713, allocations: 18.14 MB / 279.2 MB, free: 11.2 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 304.6 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.545e-05/2.681e-05, allocations: 4.094 kB / 304.6 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.00211/0.002137, allocations: 1.15 MB / 305.7 MB, free: 15.88 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.003872, allocations: 1.365 MB / 307.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.974e-05/0.003972, allocations: 6.594 kB / 307.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003863/0.004359, allocations: 72.5 kB / 307.2 MB, free: 14.88 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.004554, allocations: 89.11 kB / 307.2 MB, free: 14.83 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003974/0.004952, allocations: 220.5 kB / 307.5 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003218/0.005274, allocations: 264.5 kB / 307.7 MB, free: 14.64 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.005407, allocations: 45.09 kB / 307.8 MB, free: 14.62 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.005634, allocations: 119.7 kB / 307.9 MB, free: 14.53 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.005909, allocations: 170.4 kB / 308 MB, free: 14.42 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.671e-05/0.005955, allocations: 24 kB / 308.1 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.166e-05/0.005987, allocations: 20 kB / 308.1 MB, free: 14.38 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.006109, allocations: 114 kB / 308.2 MB, free: 14.29 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.395e-05/0.006183, allocations: 76.69 kB / 308.3 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.006385, allocations: 199.2 kB / 308.5 MB, free: 14.03 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.006389, allocations: 4 kB / 308.5 MB, free: 14.03 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.00639, allocations: 0 / 308.5 MB, free: 14.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.006394, allocations: 0 / 308.5 MB, free: 14.03 MB / 282.7 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.0007181/0.007112, allocations: 0.5291 MB / 309 MB, free: 13.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.007148, allocations: 12.92 kB / 309 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.607e-05/0.007204, allocations: 24.92 kB / 309 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003673/0.007571, allocations: 250.5 kB / 309.3 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.00759, allocations: 12.66 kB / 309.3 MB, free: 13.15 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/0.007616, allocations: 12.38 kB / 309.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.007783, allocations: 111.2 kB / 309.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.007795, allocations: 192 / 309.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.007812, allocations: 12.36 kB / 309.4 MB, free: 13.01 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.007818, allocations: 11.94 kB / 309.4 MB, free: 13 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.007931, allocations: 57.02 kB / 309.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006185/0.00855, allocations: 373.4 kB / 309.9 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002601/0.00881, allocations: 178.8 kB / 310 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.789e-05/0.008868, allocations: 40.84 kB / 310.1 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.008883, allocations: 4 kB / 310.1 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.008905, allocations: 38.55 kB / 310.1 MB, free: 12.28 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.008907, allocations: 0 / 310.1 MB, free: 12.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007175/0.009624, allocations: 325.2 kB / 310.4 MB, free: 11.96 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.009653, allocations: 55.41 kB / 310.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.009815, allocations: 251 kB / 310.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.009833, allocations: 29.7 kB / 310.8 MB, free: 11.6 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/0.009884, allocations: 129.1 kB / 310.9 MB, free: 11.47 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.913e-05/0.009943, allocations: 87.2 kB / 311 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.689e-05/0.01, allocations: 45.67 kB / 311 MB, free: 11.33 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.191e-05/0.01009, allocations: 342.8 kB / 311.3 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.612e-05/0.01014, allocations: 22.81 kB / 311.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.371e-05/0.01018, allocations: 16 kB / 311.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.01035, allocations: 130.6 kB / 311.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.01035, allocations: 0 / 311.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002787/0.01063, allocations: 186.4 kB / 311.7 MB, free: 10.63 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.01064, allocations: 6.188 kB / 311.7 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.01065, allocations: 0 / 311.7 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001941/0.01084, allocations: 55.62 kB / 311.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.01095, allocations: 43.92 kB / 311.8 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009719/0.01192, allocations: 1.345 MB / 313.1 MB, free: 9.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.496e-05/0.01202, allocations: 23.88 kB / 313.2 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.01203, allocations: 4 kB / 313.2 MB, free: 9.062 MB / 282.7 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.0001555/0.01218, allocations: 149.5 kB / 313.3 MB, free: 8.91 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.004e-05/0.01222, allocations: 23.97 kB / 313.3 MB, free: 8.887 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.317e-05/0.01227, allocations: 46.33 kB / 313.4 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.01227, allocations: 7.938 kB / 313.4 MB, free: 8.832 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.01227, allocations: 4.188 kB / 313.4 MB, free: 8.828 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.01228, allocations: 3.938 kB / 313.4 MB, free: 8.824 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.01245, allocations: 157.7 kB / 313.6 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.01245, allocations: 0 / 313.6 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.01256, allocations: 27.98 kB / 313.6 MB, free: 8.625 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001432/0.01271, allocations: 59.62 kB / 313.6 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.01272, allocations: 4 kB / 313.6 MB, free: 8.559 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008365/0.01356, allocations: 1.344 MB / 315 MB, free: 7.113 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01356, allocations: 4 kB / 315 MB, free: 7.109 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003712/0.01393, allocations: 379.7 kB / 315.4 MB, free: 6.719 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.275e-05/0.01396, allocations: 35.73 kB / 315.4 MB, free: 6.684 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/0.01399, allocations: 4 kB / 315.4 MB, free: 6.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.01409, allocations: 15.98 kB / 315.4 MB, free: 6.664 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.01415, allocations: 23.91 kB / 315.4 MB, free: 6.641 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.01416, allocations: 0 / 315.4 MB, free: 6.641 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.813e-05/0.01425, allocations: 108.6 kB / 315.5 MB, free: 6.531 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01425, allocations: 0 / 315.5 MB, free: 6.531 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001947/0.01444, allocations: 67.89 kB / 315.6 MB, free: 6.465 MB / 282.7 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.0001011/0.01454, allocations: 80.42 kB / 315.7 MB, free: 6.375 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002959/0.01484, allocations: 227.5 kB / 315.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.01484, allocations: 4 kB / 315.9 MB, free: 6.133 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.01499, allocations: 195.3 kB / 316.1 MB, free: 5.926 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.01522, allocations: 50.06 kB / 316.2 MB, free: 5.875 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008091/0.01602, allocations: 0.5817 MB / 316.7 MB, free: 5.266 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.397e-05/0.01609, allocations: 108.9 kB / 316.8 MB, free: 5.141 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.077e-05/0.01615, allocations: 22.28 kB / 316.9 MB, free: 5.121 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.914e-05/0.01625, allocations: 75.38 kB / 316.9 MB, free: 5.047 MB / 282.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01625, allocations: 4 kB / 316.9 MB, free: 5.043 MB / 282.7 MB Notification: Performance of Templates: time 0.005682/0.02193, allocations: 3.924 MB / 320.9 MB, free: 1.176 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9527762848883867]