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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",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.007597/0.007597, allocations: 99.23 kB / 15.73 MB, free: 5.602 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.001925/0.001925, allocations: 190.5 kB / 16.68 MB, free: 5.523 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09428/0.09428, allocations: 22.31 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002807/0.002807, allocations: 67.89 kB / 436.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1231, allocations: 54.95 MB / 491.5 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002794/0.1259, allocations: 1.127 MB / 492.6 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.1279, allocations: 1.299 MB / 493.9 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.1281, allocations: 4 kB / 493.9 MB, free: 2.766 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003889/0.1285, allocations: 71.55 kB / 494 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.1288, allocations: 79.58 kB / 494.1 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.1292, allocations: 135.8 kB / 494.2 MB, free: 2.484 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005708/0.1298, allocations: 391.2 kB / 494.6 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.1299, allocations: 56.31 kB / 494.7 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002831/0.1302, allocations: 155.5 kB / 494.8 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003441/0.1306, allocations: 187.4 kB / 495 MB, free: 1.711 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.158e-05/0.1307, allocations: 24 kB / 495 MB, free: 1.688 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.996e-05/0.1307, allocations: 20 kB / 495 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.1309, allocations: 103.7 kB / 495.1 MB, free: 1.566 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.131, allocations: 123.2 kB / 495.2 MB, free: 1.445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.1314, allocations: 274.8 kB / 495.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.1314, allocations: 4 kB / 495.5 MB, free: 1.172 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1314, allocations: 3.938 kB / 495.5 MB, free: 1.168 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1314, allocations: 0 / 495.5 MB, free: 1.168 MB / 366.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.002072/0.1335, allocations: 0.7595 MB / 496.3 MB, free: 364 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.1336, allocations: 8.031 kB / 496.3 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.112e-05/0.1336, allocations: 50.73 kB / 496.3 MB, free: 296 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.84e-05/0.1337, allocations: 28.75 kB / 496.4 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.1348, allocations: 419.5 kB / 496.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.1348, allocations: 8.656 kB / 496.8 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.1349, allocations: 16.38 kB / 496.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003659/0.1352, allocations: 199.9 kB / 497 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.1353, allocations: 0 / 497 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.1353, allocations: 8 kB / 497 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.1353, allocations: 7.938 kB / 497 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.1357, allocations: 200.7 kB / 497.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.1369, allocations: 0.6956 MB / 497.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005512/0.1375, allocations: 268.4 kB / 498.2 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.1377, allocations: 128.8 kB / 498.3 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.1378, allocations: 4 kB / 498.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.1378, allocations: 38.5 kB / 498.3 MB, free: 14.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.383e-06/0.1378, allocations: 4 kB / 498.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001861/0.1397, allocations: 0.6894 MB / 499 MB, free: 13.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.1397, allocations: 55.34 kB / 499.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009901/0.1407, allocations: 418.8 kB / 499.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.1408, allocations: 29.7 kB / 499.5 MB, free: 12.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.1409, allocations: 156.5 kB / 499.7 MB, free: 12.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.644e-05/0.141, allocations: 87.22 kB / 499.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-05/0.1411, allocations: 45.7 kB / 499.8 MB, free: 12.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1412, allocations: 342.8 kB / 0.4884 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.1414, allocations: 103.9 kB / 0.4885 GB, free: 12.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.1416, allocations: 105.2 kB / 0.4886 GB, free: 12.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/0.1439, allocations: 0.7154 MB / 0.4893 GB, free: 11.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1439, allocations: 0 / 0.4893 GB, free: 11.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008499/0.1447, allocations: 438 kB / 0.4897 GB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1448, allocations: 7.938 kB / 0.4897 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1448, allocations: 0 / 0.4897 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003126/0.1451, allocations: 96.77 kB / 0.4898 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.1453, allocations: 47.91 kB / 0.4899 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/0.1473, allocations: 1.845 MB / 0.4917 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004198/0.1477, allocations: 67.83 kB / 0.4917 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.1478, allocations: 7.938 kB / 0.4918 GB, free: 8.73 MB / 382.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.0002469/0.148, allocations: 180.4 kB / 0.4919 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-05/0.1481, allocations: 31.81 kB / 0.492 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.1482, allocations: 46.25 kB / 0.492 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1482, allocations: 0 / 0.492 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1482, allocations: 4 kB / 0.492 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1482, allocations: 0 / 0.492 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.1487, allocations: 369.2 kB / 0.4924 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1487, allocations: 0 / 0.4924 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002011/0.1489, allocations: 27.98 kB / 0.4924 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00028/0.1492, allocations: 92.77 kB / 0.4925 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.73e-05/0.1492, allocations: 12 kB / 0.4925 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.1511, allocations: 1.846 MB / 0.4943 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1511, allocations: 0 / 0.4943 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.1522, allocations: 0.6271 MB / 0.4949 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.1523, allocations: 116.9 kB / 0.495 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.904e-05/0.1524, allocations: 8 kB / 0.495 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.1528, allocations: 55.92 kB / 0.4951 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.819e-05/0.1529, allocations: 27.84 kB / 0.4951 GB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.1529, allocations: 4 kB / 0.4951 GB, free: 5.066 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008389/0.1538, allocations: 329.8 kB / 0.4954 GB, free: 4.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1538, allocations: 0 / 0.4954 GB, free: 4.746 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.1541, allocations: 63.94 kB / 0.4955 GB, free: 4.684 MB / 382.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.001313/0.1554, allocations: 1.158 MB / 0.4966 GB, free: 3.496 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007348/0.1562, allocations: 413.8 kB / 0.497 GB, free: 3.082 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1562, allocations: 0 / 0.497 GB, free: 3.082 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004049/0.1566, allocations: 278.5 kB / 0.4973 GB, free: 2.797 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.157, allocations: 38.91 kB / 0.4973 GB, free: 2.758 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1884/0.3454, allocations: 3.574 MB / 0.5008 GB, free: 21.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.3457, allocations: 0.7895 MB / 0.5016 GB, free: 20.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.3458, allocations: 64.34 kB / 0.5016 GB, free: 20.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.346, allocations: 86.58 kB / 0.5017 GB, free: 20.68 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.346, allocations: 0 / 0.5017 GB, free: 20.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/0.3779, allocations: 6.525 MB / 0.5081 GB, free: 20.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.642/10.02, allocations: 8.156 kB / 0.5081 GB, free: 20.13 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)