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.005407/0.005407, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.00118/0.00118, allocations: 195.9 kB / 16.67 MB, free: 5.977 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1999/0.1999, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002383/0.002383, allocations: 65.84 kB / 436.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1233, allocations: 54.96 MB / 491.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002119/0.1254, allocations: 1.073 MB / 492.6 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.127, allocations: 1.248 MB / 493.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1272, allocations: 0 / 493.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003483/0.1276, allocations: 59.62 kB / 493.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.1278, allocations: 63.62 kB / 494 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000252/0.128, allocations: 103.8 kB / 494.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.1284, allocations: 303.5 kB / 494.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.1286, allocations: 45.66 kB / 494.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.1288, allocations: 123.6 kB / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.1291, allocations: 155.5 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.1291, allocations: 20 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.627e-05/0.1292, allocations: 16 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.1293, allocations: 91.78 kB / 494.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.1294, allocations: 95.39 kB / 494.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.1297, allocations: 223.7 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1297, allocations: 0 / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1297, allocations: 0 / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1297, allocations: 0 / 495.1 MB, free: 14.11 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001709/0.1314, allocations: 0.6741 MB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.1315, allocations: 8.031 kB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.081e-05/0.1315, allocations: 46.73 kB / 495.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.489e-05/0.1316, allocations: 28.56 kB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000881/0.1325, allocations: 358.7 kB / 496.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.1325, allocations: 12.38 kB / 496.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.1326, allocations: 16.36 kB / 496.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003127/0.1329, allocations: 171 kB / 496.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.1329, allocations: 4 kB / 496.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.1329, allocations: 8 kB / 496.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1329, allocations: 0 / 496.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.1332, allocations: 167.9 kB / 496.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.1344, allocations: 0.6329 MB / 497.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.1348, allocations: 214.4 kB / 497.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.135, allocations: 112.8 kB / 497.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.135, allocations: 4 kB / 497.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.135, allocations: 30.56 kB / 497.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.135, allocations: 4 kB / 497.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.001792/0.1368, allocations: 0.6458 MB / 498.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.1369, allocations: 51.41 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007534/0.1376, allocations: 344.8 kB / 498.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.1377, allocations: 29.7 kB / 498.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.025e-05/0.1378, allocations: 140.4 kB / 498.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.179e-05/0.1378, allocations: 74.91 kB / 498.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.89e-05/0.1379, allocations: 41.7 kB / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1381, allocations: 334.8 kB / 499.2 MB, free: 9.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.1382, allocations: 91.94 kB / 499.3 MB, free: 9.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.1384, allocations: 91.94 kB / 499.4 MB, free: 9.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.1404, allocations: 0.6115 MB / 0.4883 GB, free: 8.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1404, allocations: 0 / 0.4883 GB, free: 8.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007637/0.1411, allocations: 401.9 kB / 0.4887 GB, free: 8.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1412, allocations: 7.938 kB / 0.4887 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1412, allocations: 0 / 0.4887 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003121/0.1415, allocations: 96.75 kB / 0.4888 GB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.1417, allocations: 31.98 kB / 0.4888 GB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.1435, allocations: 1.833 MB / 0.4906 GB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.1438, allocations: 63.77 kB / 0.4907 GB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.1439, allocations: 12 kB / 0.4907 GB, free: 6.367 MB / 366.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.0002029/0.1441, allocations: 171.7 kB / 0.4908 GB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.164e-05/0.1441, allocations: 19.72 kB / 0.4909 GB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.95e-05/0.1442, allocations: 42.17 kB / 0.4909 GB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1442, allocations: 7.984 kB / 0.4909 GB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1442, allocations: 0 / 0.4909 GB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1442, allocations: 0 / 0.4909 GB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003463/0.1446, allocations: 329.3 kB / 0.4912 GB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.1446, allocations: 7.938 kB / 0.4912 GB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.1448, allocations: 32.09 kB / 0.4913 GB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003563/0.1452, allocations: 100.8 kB / 0.4914 GB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.1452, allocations: 4 kB / 0.4914 GB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/0.1469, allocations: 1.849 MB / 0.4932 GB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1469, allocations: 0 / 0.4932 GB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000905/0.1478, allocations: 0.5596 MB / 0.4937 GB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.667e-05/0.1479, allocations: 96.83 kB / 0.4938 GB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.648e-05/0.148, allocations: 12.05 kB / 0.4938 GB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/0.1483, allocations: 47.88 kB / 0.4939 GB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.719e-05/0.1484, allocations: 15.92 kB / 0.4939 GB, free: 2.855 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.1484, allocations: 16.3 kB / 0.4939 GB, free: 2.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006518/0.1491, allocations: 260.3 kB / 0.4941 GB, free: 2.586 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1491, allocations: 0 / 0.4941 GB, free: 2.586 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003122/0.1494, allocations: 59.94 kB / 0.4942 GB, free: 2.527 MB / 366.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.001204/0.1506, allocations: 1.105 MB / 0.4953 GB, free: 1.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006948/0.1514, allocations: 361.6 kB / 0.4956 GB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1514, allocations: 4 kB / 0.4956 GB, free: 1.027 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003626/0.1517, allocations: 246.5 kB / 0.4959 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00036/0.1521, allocations: 37.95 kB / 0.4959 GB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005316/0.1574, allocations: 3.129 MB / 0.4989 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.1578, allocations: 0.7635 MB / 0.4997 GB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.1579, allocations: 57.89 kB / 0.4998 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.158, allocations: 71.42 kB / 0.4998 GB, free: 12.6 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.158, allocations: 0 / 0.4998 GB, free: 12.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.1826, allocations: 5.803 MB / 0.5055 GB, free: 6.891 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.324/9.507, allocations: 22.84 kB / 0.5055 GB, free: 6.871 MB / 382.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)