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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009993/0.001004, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2032/0.2032, allocations: 22.34 MB / 312.7 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001342, allocations: 63.89 kB / 380.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2746, allocations: 54.95 MB / 435.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002161/0.2768, allocations: 1.054 MB / 436.9 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.278, allocations: 1.259 MB / 438.2 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.884e-05/0.2781, allocations: 2.812 kB / 438.2 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.2784, allocations: 46.66 kB / 438.2 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.2786, allocations: 69.92 kB / 438.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.2788, allocations: 102.2 kB / 438.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.279, allocations: 289.8 kB / 438.7 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.2792, allocations: 46.39 kB / 438.7 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.2793, allocations: 124.3 kB / 438.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.2795, allocations: 155 kB / 439 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.086e-05/0.2795, allocations: 20.91 kB / 439 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.324e-05/0.2796, allocations: 21.69 kB / 439.1 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.2797, allocations: 89.11 kB / 439.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.113e-05/0.2798, allocations: 98.28 kB / 439.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001822/0.28, allocations: 223.6 kB / 439.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.28, allocations: 0 / 439.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.28, allocations: 0 / 439.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.28, allocations: 0 / 439.5 MB, free: 37.48 MB / 350.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.001487/0.2815, allocations: 0.6683 MB / 440.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.2815, allocations: 12.72 kB / 440.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.454e-05/0.2816, allocations: 49.17 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.699e-05/0.2816, allocations: 28.44 kB / 440.2 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007051/0.2823, allocations: 351.5 kB / 440.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.2824, allocations: 10.78 kB / 440.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.2824, allocations: 21.28 kB / 440.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.2827, allocations: 168.6 kB / 440.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.2827, allocations: 3.906 kB / 440.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.2827, allocations: 6.844 kB / 440.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2827, allocations: 2.625 kB / 440.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.283, allocations: 171 kB / 440.9 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008568/0.2839, allocations: 0.6228 MB / 441.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.2842, allocations: 217.6 kB / 441.8 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.2843, allocations: 113.8 kB / 441.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.2844, allocations: 6.906 kB / 441.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.66e-05/0.2844, allocations: 30.56 kB / 441.9 MB, free: 36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.983e-06/0.2844, allocations: 3.984 kB / 441.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001578/0.286, allocations: 0.6403 MB / 442.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.723e-05/0.286, allocations: 54.73 kB / 442.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006579/0.2867, allocations: 344.4 kB / 442.9 MB, free: 35.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.2867, allocations: 29.7 kB / 443 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.407e-05/0.2868, allocations: 138.6 kB / 443.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.397e-05/0.2868, allocations: 70.22 kB / 443.2 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.448e-05/0.2869, allocations: 43.2 kB / 443.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.958e-05/0.287, allocations: 342.2 kB / 443.6 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.2871, allocations: 84.84 kB / 443.6 MB, free: 34.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.2873, allocations: 96.14 kB / 443.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/0.289, allocations: 0.6216 MB / 444.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.289, allocations: 0 / 444.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006417/0.2896, allocations: 397.5 kB / 444.7 MB, free: 34.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.2897, allocations: 6.219 kB / 444.7 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2897, allocations: 6.938 kB / 444.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002782/0.29, allocations: 95.3 kB / 444.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.2901, allocations: 31.03 kB / 444.9 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.2915, allocations: 1.845 MB / 446.7 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003231/0.2918, allocations: 61.27 kB / 446.8 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.2918, allocations: 7 kB / 446.8 MB, free: 32.94 MB / 350.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.000161/0.292, allocations: 166.5 kB / 447 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.2921, allocations: 30.38 kB / 447 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.851e-05/0.2921, allocations: 35.12 kB / 447 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2921, allocations: 2.281 kB / 447 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2922, allocations: 2.656 kB / 447 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2922, allocations: 3.938 kB / 447 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002955/0.2925, allocations: 334.3 kB / 447.4 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.2925, allocations: 0 / 447.4 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001599/0.2926, allocations: 27.14 kB / 447.4 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002346/0.2929, allocations: 100.2 kB / 447.5 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.2929, allocations: 6.75 kB / 447.5 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.2942, allocations: 1.842 MB / 449.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2942, allocations: 3.938 kB / 449.3 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007812/0.295, allocations: 0.5581 MB / 449.9 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/0.295, allocations: 102.5 kB / 450 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/0.2951, allocations: 9.875 kB / 450 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003423/0.2954, allocations: 39.56 kB / 450 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.025e-05/0.2955, allocations: 27.47 kB / 450.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.2955, allocations: 6.969 kB / 450.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005634/0.2961, allocations: 269 kB / 450.3 MB, free: 30.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2961, allocations: 3.625 kB / 450.3 MB, free: 30.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003067/0.2964, allocations: 52.03 kB / 450.4 MB, free: 30.34 MB / 350.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.0009737/0.2974, allocations: 1.102 MB / 451.5 MB, free: 29.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005907/0.298, allocations: 392.6 kB / 451.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.298, allocations: 0 / 451.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002907/0.2983, allocations: 253.4 kB / 452.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.2986, allocations: 40.44 kB / 452.2 MB, free: 29.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.3029, allocations: 3.117 MB / 455.3 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.3031, allocations: 0.7761 MB / 456.1 MB, free: 26.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001249/0.3032, allocations: 54 kB / 456.1 MB, free: 26.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.3033, allocations: 68.11 kB / 456.2 MB, free: 26.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3034, allocations: 1.312 kB / 456.2 MB, free: 26.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02877/0.3321, allocations: 5.587 MB / 461.8 MB, free: 26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.898/9.23, allocations: 16.72 kB / 461.8 MB, free: 25.98 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)