Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_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.004832/0.004832, 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.001123/0.001123, allocations: 194.1 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2087/0.2087, allocations: 22.35 MB / 312.9 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 70.31 kB / 436.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09515/0.09652, allocations: 54.96 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002238/0.0988, allocations: 1.306 MB / 492.9 MB, free: 448 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.1007, allocations: 1.396 MB / 494.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002658/0.101, allocations: 4 kB / 494.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005032/0.1015, allocations: 95.41 kB / 494.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000419/0.102, allocations: 127.4 kB / 494.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004816/0.1025, allocations: 191.7 kB / 494.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006446/0.1031, allocations: 0.5107 MB / 495.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.1033, allocations: 65.27 kB / 495.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003149/0.1036, allocations: 219.3 kB / 495.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/0.104, allocations: 243.1 kB / 495.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.52e-05/0.1041, allocations: 27.98 kB / 495.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.558e-05/0.1042, allocations: 28 kB / 495.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.1043, allocations: 127.6 kB / 495.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.1045, allocations: 143.1 kB / 496 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.1048, allocations: 335 kB / 496.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1049, allocations: 0 / 496.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1049, allocations: 0 / 496.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1049, allocations: 0 / 496.3 MB, free: 12.93 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002496/0.1074, allocations: 0.8647 MB / 497.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1074, allocations: 8.031 kB / 497.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.821e-05/0.1075, allocations: 54.73 kB / 497.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.64e-05/0.1076, allocations: 40.38 kB / 497.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.1089, allocations: 498 kB / 497.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.109, allocations: 16.69 kB / 497.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.728e-05/0.109, allocations: 20.38 kB / 497.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003624/0.1094, allocations: 212.2 kB / 498 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.1094, allocations: 0 / 498 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.1095, allocations: 4 kB / 498 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.1095, allocations: 4 kB / 498 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.1099, allocations: 232.4 kB / 498.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.1113, allocations: 0.7616 MB / 499 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006557/0.1119, allocations: 332.5 kB / 499.3 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.1121, allocations: 128.8 kB / 499.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.1122, allocations: 7.984 kB / 499.5 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.1122, allocations: 46.5 kB / 499.5 MB, free: 9.566 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.1122, allocations: 4 kB / 499.5 MB, free: 9.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.00185/0.1141, allocations: 0.7798 MB / 0.4886 GB, free: 8.734 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.1141, allocations: 59.34 kB / 0.4886 GB, free: 8.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.1153, allocations: 0.5092 MB / 0.4891 GB, free: 8.145 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.1153, allocations: 25.7 kB / 0.4892 GB, free: 8.113 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.1155, allocations: 180.4 kB / 0.4893 GB, free: 7.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.516e-05/0.1156, allocations: 94.56 kB / 0.4894 GB, free: 7.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.1157, allocations: 53.64 kB / 0.4895 GB, free: 7.781 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1158, allocations: 346.8 kB / 0.4898 GB, free: 7.434 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.116, allocations: 108.2 kB / 0.4899 GB, free: 7.324 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.1162, allocations: 120.4 kB / 0.49 GB, free: 7.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/0.1184, allocations: 0.715 MB / 0.4907 GB, free: 6.492 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1184, allocations: 4 kB / 0.4907 GB, free: 6.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008874/0.1193, allocations: 479.2 kB / 0.4912 GB, free: 6.008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1194, allocations: 4 kB / 0.4912 GB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1194, allocations: 0 / 0.4912 GB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003738/0.1197, allocations: 113.6 kB / 0.4913 GB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.1199, allocations: 43.91 kB / 0.4913 GB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/0.1226, allocations: 3.185 MB / 0.4944 GB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005203/0.1232, allocations: 79.67 kB / 0.4945 GB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.1232, allocations: 15.94 kB / 0.4945 GB, free: 2.281 MB / 366.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002462/0.1235, allocations: 188.4 kB / 0.4947 GB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.557e-05/0.1236, allocations: 39.52 kB / 0.4948 GB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.731e-05/0.1237, allocations: 55.31 kB / 0.4948 GB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1237, allocations: 0 / 0.4948 GB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.1237, allocations: 4 kB / 0.4948 GB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1237, allocations: 0 / 0.4948 GB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004644/0.1242, allocations: 397.2 kB / 0.4952 GB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1242, allocations: 0 / 0.4952 GB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.1244, allocations: 35.92 kB / 0.4952 GB, free: 1.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003147/0.1247, allocations: 109.6 kB / 0.4953 GB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.1248, allocations: 8 kB / 0.4953 GB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002558/0.1273, allocations: 3.2 MB / 0.4985 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1273, allocations: 3.938 kB / 0.4985 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.1284, allocations: 0.6642 MB / 0.4991 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.1286, allocations: 124.6 kB / 0.4992 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.1286, allocations: 12.06 kB / 0.4992 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005418/0.1292, allocations: 67.89 kB / 0.4993 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/0.1292, allocations: 19.97 kB / 0.4993 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.1293, allocations: 7.938 kB / 0.4993 GB, free: 12.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001053/0.1303, allocations: 410.9 kB / 0.4997 GB, free: 12.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.1303, allocations: 0 / 0.4997 GB, free: 12.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003702/0.1307, allocations: 83.78 kB / 0.4998 GB, free: 12.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001362/0.1321, allocations: 1.194 MB / 0.501 GB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008892/0.133, allocations: 0.5406 MB / 0.5015 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.133, allocations: 0 / 0.5015 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005394/0.1336, allocations: 409.2 kB / 0.5019 GB, free: 10.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.134, allocations: 57.52 kB / 0.5019 GB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007236/0.1413, allocations: 3.982 MB / 0.5058 GB, free: 6.148 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.1417, allocations: 0.8185 MB / 0.5066 GB, free: 5.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.1419, allocations: 66.92 kB / 0.5067 GB, free: 5.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.142, allocations: 115.4 kB / 0.5068 GB, free: 5.125 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.142, allocations: 0 / 0.5068 GB, free: 5.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0328/0.1748, allocations: 7.869 MB / 0.5145 GB, free: 13.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.564/9.739, allocations: 21.12 kB / 0.5145 GB, free: 13.33 MB / 398.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Exploiting_2dof_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)