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.001172/0.001172, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001145/0.001145, allocations: 195.4 kB / 16.14 MB, free: 6.719 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.189/1.189, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1731/0.1731, allocations: 22.34 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 63.91 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2117, allocations: 54.93 MB / 435.2 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001734/0.2135, allocations: 1.119 MB / 436.3 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009023/0.2144, allocations: 1.246 MB / 437.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.788e-05/0.2145, allocations: 3.938 kB / 437.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002256/0.2147, allocations: 47.16 kB / 437.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.2149, allocations: 56.16 kB / 437.6 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001415/0.215, allocations: 95.69 kB / 437.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.2152, allocations: 284.2 kB / 438 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.197e-05/0.2153, allocations: 38.02 kB / 438 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.456e-05/0.2154, allocations: 120.9 kB / 438.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.2155, allocations: 144.3 kB / 438.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/0.2156, allocations: 11.66 kB / 438.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.987e-05/0.2156, allocations: 11.81 kB / 438.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.089e-05/0.2157, allocations: 84.81 kB / 438.4 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.073e-05/0.2158, allocations: 86.5 kB / 438.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.2159, allocations: 216.5 kB / 438.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2159, allocations: 0 / 438.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2159, allocations: 0 / 438.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.2159, allocations: 3.188 kB / 438.7 MB, free: 37.39 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.001289/0.2172, allocations: 0.6672 MB / 439.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.747e-05/0.2173, allocations: 18.16 kB / 439.4 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.318e-05/0.2173, allocations: 41.38 kB / 439.4 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.114e-05/0.2173, allocations: 29.58 kB / 439.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006392/0.218, allocations: 353.9 kB / 439.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.218, allocations: 11.22 kB / 439.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.218, allocations: 15.78 kB / 439.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002315/0.2183, allocations: 166.4 kB / 440 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2183, allocations: 11.31 kB / 440 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.2183, allocations: 10.78 kB / 440 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.2183, allocations: 10.7 kB / 440 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002523/0.2186, allocations: 169.9 kB / 440.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007616/0.2194, allocations: 0.6185 MB / 440.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.2196, allocations: 214.6 kB / 441 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.2198, allocations: 111.5 kB / 441.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.2198, allocations: 6.906 kB / 441.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.056e-05/0.2198, allocations: 37.06 kB / 441.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.142e-06/0.2198, allocations: 0 / 441.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.00144/0.2213, allocations: 0.649 MB / 441.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.667e-05/0.2213, allocations: 54.28 kB / 441.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005752/0.2219, allocations: 344.7 kB / 442.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.2219, allocations: 29.7 kB / 442.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.2219, allocations: 138.6 kB / 442.4 MB, free: 35.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.332e-05/0.222, allocations: 69.08 kB / 442.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.555e-05/0.2221, allocations: 39.69 kB / 442.5 MB, free: 35.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.195e-05/0.2221, allocations: 345.2 kB / 442.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.2222, allocations: 88.06 kB / 442.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.2224, allocations: 95.17 kB / 443 MB, free: 34.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.224, allocations: 0.616 MB / 443.6 MB, free: 34.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.224, allocations: 0 / 443.6 MB, free: 34.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005888/0.2246, allocations: 405.4 kB / 444 MB, free: 34.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.2246, allocations: 2.844 kB / 444 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.2246, allocations: 2.812 kB / 444 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.2249, allocations: 96.14 kB / 444.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.225, allocations: 28.83 kB / 444.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/0.2262, allocations: 1.734 MB / 445.9 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.2265, allocations: 57.81 kB / 445.9 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.2265, allocations: 3 kB / 445.9 MB, free: 32.96 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.0001283/0.2267, allocations: 176.3 kB / 446.1 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.404e-05/0.2267, allocations: 20.53 kB / 446.1 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.05e-05/0.2268, allocations: 37.97 kB / 446.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.2268, allocations: 0 / 446.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.2268, allocations: 6.875 kB / 446.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2268, allocations: 0 / 446.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.227, allocations: 331.5 kB / 446.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.227, allocations: 2.875 kB / 446.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.2272, allocations: 23.3 kB / 446.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002264/0.2274, allocations: 95.64 kB / 446.6 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.2275, allocations: 6.656 kB / 446.6 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.2285, allocations: 1.735 MB / 448.3 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2286, allocations: 0 / 448.3 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007091/0.2293, allocations: 0.5607 MB / 448.9 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.301e-05/0.2293, allocations: 102.6 kB / 449 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.2294, allocations: 12.61 kB / 449 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003225/0.2297, allocations: 42.86 kB / 449.1 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.2297, allocations: 15.09 kB / 449.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.2298, allocations: 16.06 kB / 449.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005126/0.2303, allocations: 268.6 kB / 449.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2303, allocations: 0 / 449.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.2306, allocations: 59.25 kB / 449.4 MB, free: 30.47 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.0008409/0.2314, allocations: 1.097 MB / 450.5 MB, free: 29.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004674/0.2319, allocations: 378 kB / 450.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2319, allocations: 3.5 kB / 450.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.2322, allocations: 246.1 kB / 451.1 MB, free: 29.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.2325, allocations: 40.42 kB / 451.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003833/0.2363, allocations: 3.175 MB / 454.3 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.2365, allocations: 0.7748 MB / 455.1 MB, free: 26.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.2366, allocations: 54.23 kB / 455.2 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.585e-05/0.2367, allocations: 70.03 kB / 455.2 MB, free: 26.67 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2367, allocations: 0 / 455.2 MB, free: 26.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01419/0.2509, allocations: 5.303 MB / 460.5 MB, free: 26.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001098/0.251, allocations: 202.6 kB / 460.7 MB, free: 25.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.606/1.857, allocations: 1.438 kB / 460.7 MB, free: 25.95 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)