Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",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.005246/0.005246, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001164/0.001164, allocations: 191.7 kB / 16.67 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.283/1.283, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08684/0.08684, allocations: 22.32 MB / 312.9 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 63.89 kB / 436.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1057, allocations: 54.95 MB / 491.5 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002915/0.1086, allocations: 1.744 MB / 493.2 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.1098, allocations: 0.6859 MB / 493.9 MB, free: 2.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.11, allocations: 4 kB / 493.9 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003169/0.1103, allocations: 75.64 kB / 494 MB, free: 2.758 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.1105, allocations: 83.7 kB / 494.1 MB, free: 2.676 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000455/0.111, allocations: 151.6 kB / 494.2 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.1114, allocations: 279.4 kB / 494.5 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.1115, allocations: 41.47 kB / 494.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.1116, allocations: 119.6 kB / 494.7 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1119, allocations: 139.6 kB / 494.8 MB, free: 1.957 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.419e-05/0.1119, allocations: 16 kB / 494.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.112, allocations: 91.91 kB / 494.9 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.58e-05/0.1121, allocations: 63.75 kB / 495 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.195e-05/0.1122, allocations: 87.41 kB / 495 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.1126, allocations: 235.2 kB / 495.3 MB, free: 1.473 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1126, allocations: 4 kB / 495.3 MB, free: 1.469 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1126, allocations: 0 / 495.3 MB, free: 1.469 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1126, allocations: 0 / 495.3 MB, free: 1.469 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001259/0.1139, allocations: 0.6248 MB / 495.9 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1139, allocations: 12.03 kB / 495.9 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.454e-05/0.114, allocations: 50.61 kB / 496 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.818e-05/0.114, allocations: 24.66 kB / 496 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005755/0.1146, allocations: 314.7 kB / 496.3 MB, free: 360 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.1146, allocations: 8.375 kB / 496.3 MB, free: 352 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.1147, allocations: 4.375 kB / 496.3 MB, free: 348 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.115, allocations: 162 kB / 496.5 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.115, allocations: 0 / 496.5 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.115, allocations: 8 kB / 496.5 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.115, allocations: 0 / 496.5 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.1153, allocations: 131.9 kB / 496.6 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007378/0.116, allocations: 0.4926 MB / 497.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003962/0.1164, allocations: 198.4 kB / 497.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.1166, allocations: 108.9 kB / 497.4 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.1166, allocations: 4 kB / 497.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002417/0.1169, allocations: 181 kB / 497.6 MB, free: 14.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.423e-06/0.1169, allocations: 3.938 kB / 497.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.00118/0.1181, allocations: 0.5711 MB / 498.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.1181, allocations: 85.09 kB / 498.2 MB, free: 14.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004993/0.1186, allocations: 316.9 kB / 498.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.1187, allocations: 29.7 kB / 498.6 MB, free: 13.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.56e-05/0.1187, allocations: 136 kB / 498.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.851e-05/0.1188, allocations: 59.11 kB / 498.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.157e-05/0.1189, allocations: 45.64 kB / 498.8 MB, free: 13.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.119, allocations: 338.8 kB / 499.1 MB, free: 13.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.1192, allocations: 79.95 kB / 499.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.1193, allocations: 83.95 kB / 499.3 MB, free: 13.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.1206, allocations: 0.5785 MB / 499.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1206, allocations: 0 / 499.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006254/0.1212, allocations: 398.2 kB / 0.4885 GB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.1212, allocations: 29.7 kB / 0.4886 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1213, allocations: 7.984 kB / 0.4886 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002092/0.1215, allocations: 56.81 kB / 0.4886 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1216, allocations: 23.98 kB / 0.4887 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/0.1229, allocations: 1.602 MB / 0.4902 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.1232, allocations: 31.84 kB / 0.4903 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.1232, allocations: 12 kB / 0.4903 GB, free: 10.26 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000229/0.1235, allocations: 196.2 kB / 0.4904 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.1235, allocations: 23.72 kB / 0.4905 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.985e-05/0.1236, allocations: 42.05 kB / 0.4905 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1236, allocations: 0 / 0.4905 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1236, allocations: 0 / 0.4905 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1236, allocations: 0 / 0.4905 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.1238, allocations: 293.4 kB / 0.4908 GB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1239, allocations: 7.938 kB / 0.4908 GB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.124, allocations: 15.98 kB / 0.4908 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001626/0.1241, allocations: 48.81 kB / 0.4909 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.769e-05/0.1242, allocations: 15.92 kB / 0.4909 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/0.1254, allocations: 1.606 MB / 0.4924 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1254, allocations: 0 / 0.4924 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008019/0.1262, allocations: 0.533 MB / 0.493 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.106e-05/0.1263, allocations: 104.8 kB / 0.4931 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.721e-05/0.1263, allocations: 11.94 kB / 0.4931 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.1266, allocations: 27.95 kB / 0.4931 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.1266, allocations: 15.98 kB / 0.4931 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.1267, allocations: 7.984 kB / 0.4931 GB, free: 7.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004321/0.1271, allocations: 244.4 kB / 0.4934 GB, free: 6.832 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1271, allocations: 0 / 0.4934 GB, free: 6.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003156/0.1274, allocations: 67.98 kB / 0.4934 GB, free: 6.766 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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,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.001167/0.1286, allocations: 1.096 MB / 0.4945 GB, free: 5.633 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006306/0.1292, allocations: 441.4 kB / 0.4949 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1293, allocations: 0 / 0.4949 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003557/0.1296, allocations: 322 kB / 0.4952 GB, free: 4.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.1299, allocations: 28.42 kB / 0.4953 GB, free: 4.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004082/0.134, allocations: 2.93 MB / 0.4981 GB, free: 1.785 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.1343, allocations: 0.771 MB / 0.4989 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.856e-05/0.1344, allocations: 25.69 kB / 0.4989 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.796e-05/0.1345, allocations: 67.41 kB / 0.499 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of SimCode: time 1.763e-06/0.1345, allocations: 0 / 0.499 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2183/0.3528, allocations: 5.357 MB / 0.5042 GB, free: 22.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.049/9.402, allocations: 10.17 kB / 0.5042 GB, free: 22.3 MB / 382.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)