Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.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.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",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.0066/0.006601, allocations: 99.48 kB / 15.73 MB, free: 6.043 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.001321/0.001321, allocations: 185.6 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2108/0.2108, allocations: 22.36 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 64.91 kB / 436.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.108, allocations: 54.96 MB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002654/0.1107, allocations: 1.818 MB / 493.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.1121, allocations: 0.6623 MB / 494 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1122, allocations: 0 / 494 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003641/0.1126, allocations: 31.77 kB / 494 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.1128, allocations: 39.73 kB / 494.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.1131, allocations: 127.7 kB / 494.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.1135, allocations: 223.6 kB / 494.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.1136, allocations: 49.53 kB / 494.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.1138, allocations: 91.67 kB / 494.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.1139, allocations: 99.58 kB / 494.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.073e-05/0.114, allocations: 20 kB / 494.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.174e-05/0.114, allocations: 20 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.1141, allocations: 55.83 kB / 494.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.877e-05/0.1143, allocations: 83.59 kB / 494.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002744/0.1145, allocations: 195.8 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.1145, allocations: 4 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1146, allocations: 0 / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1146, allocations: 0 / 495 MB, free: 14.21 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001109/0.1157, allocations: 0.5687 MB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1157, allocations: 12.03 kB / 495.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.967e-05/0.1158, allocations: 46.73 kB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.961e-05/0.1159, allocations: 28.66 kB / 495.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.1163, allocations: 284.6 kB / 496 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.1164, allocations: 8.375 kB / 496 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.075e-05/0.1164, allocations: 20.36 kB / 496 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003556/0.1168, allocations: 176.1 kB / 496.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.1168, allocations: 7.844 kB / 496.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.1168, allocations: 8 kB / 496.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1169, allocations: 4 kB / 496.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000304/0.1172, allocations: 128.1 kB / 496.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009131/0.1181, allocations: 0.5319 MB / 496.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005128/0.1186, allocations: 178.4 kB / 497 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.1188, allocations: 92.75 kB / 497.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.1188, allocations: 0 / 497.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003018/0.1192, allocations: 202.6 kB / 497.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.1192, allocations: 0 / 497.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001599/0.1208, allocations: 0.6241 MB / 497.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.763e-05/0.1209, allocations: 162.2 kB / 498.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.1212, allocations: 210.6 kB / 498.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.1212, allocations: 25.7 kB / 498.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/0.1213, allocations: 128.2 kB / 498.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.907e-05/0.1214, allocations: 43.36 kB / 498.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.547e-05/0.1215, allocations: 41.7 kB / 498.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1216, allocations: 326.8 kB / 498.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.1218, allocations: 72.81 kB / 498.9 MB, free: 10 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.1219, allocations: 93.59 kB / 499 MB, free: 9.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.1231, allocations: 0.5261 MB / 499.5 MB, free: 9.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1232, allocations: 0 / 499.5 MB, free: 9.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004455/0.1236, allocations: 274.1 kB / 499.8 MB, free: 9.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.562e-05/0.1237, allocations: 59.41 kB / 499.9 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1237, allocations: 0 / 499.9 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1237, allocations: 0 / 499.9 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.1239, allocations: 43.91 kB / 499.9 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1239, allocations: 0 / 499.9 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/0.1241, allocations: 27.88 kB / 499.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.1242, allocations: 4 kB / 499.9 MB, free: 8.902 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: 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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002391/0.1244, allocations: 164 kB / 0.4884 GB, free: 8.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001707/0.1246, allocations: 69.69 kB / 0.4884 GB, free: 8.664 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001047/0.1256, allocations: 0.5008 MB / 0.4889 GB, free: 8.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.042e-06/0.1256, allocations: 0 / 0.4889 GB, free: 8.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003535/0.126, allocations: 258.9 kB / 0.4892 GB, free: 7.852 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.1261, allocations: 59.39 kB / 0.4892 GB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-06/0.1261, allocations: 0 / 0.4892 GB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.167e-06/0.1261, allocations: 4 kB / 0.4892 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.1262, allocations: 23.98 kB / 0.4892 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-06/0.1263, allocations: 0 / 0.4892 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.1264, allocations: 35.81 kB / 0.4893 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.1265, allocations: 4 kB / 0.4893 GB, free: 7.715 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: 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: 6 ($PRE.TDO.timeNextEv,$PRE.TDO.tdo,TDO.timeNextEv,TDO.tdo,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002822/0.1268, allocations: 249.7 kB / 0.4895 GB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.509e-05/0.1268, allocations: 19.78 kB / 0.4895 GB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.984e-05/0.1269, allocations: 17.53 kB / 0.4896 GB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.1269, allocations: 4 kB / 0.4896 GB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.1269, allocations: 4 kB / 0.4896 GB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1269, allocations: 7.984 kB / 0.4896 GB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002871/0.1272, allocations: 273.4 kB / 0.4898 GB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1272, allocations: 4 kB / 0.4898 GB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.1273, allocations: 11.98 kB / 0.4899 GB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000362/0.1277, allocations: 142.5 kB / 0.49 GB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.1278, allocations: 11.98 kB / 0.49 GB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009485/0.1287, allocations: 0.7998 MB / 0.4908 GB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1287, allocations: 0 / 0.4908 GB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008887/0.1296, allocations: 0.4954 MB / 0.4913 GB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.499e-05/0.1297, allocations: 96.95 kB / 0.4914 GB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.1298, allocations: 4 kB / 0.4914 GB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.13, allocations: 31.97 kB / 0.4914 GB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.13, allocations: 7.984 kB / 0.4914 GB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.1301, allocations: 8 kB / 0.4914 GB, free: 5.391 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003159/0.1304, allocations: 172.2 kB / 0.4916 GB, free: 5.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1304, allocations: 0 / 0.4916 GB, free: 5.223 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003452/0.1308, allocations: 67.84 kB / 0.4916 GB, free: 5.156 MB / 366.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],Cfb.FO.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,TDO.tdo,TDO.timeNextEv) * Number of discrete states: 4 ($whenCondition2,TDO.timeNextEv,TDO.tdo,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001259/0.132, allocations: 1.043 MB / 0.4927 GB, free: 4.078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006668/0.1327, allocations: 485.3 kB / 0.4931 GB, free: 3.555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1327, allocations: 0 / 0.4931 GB, free: 3.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004267/0.1331, allocations: 211.3 kB / 0.4933 GB, free: 3.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.1334, allocations: 50.03 kB / 0.4934 GB, free: 3.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.1369, allocations: 2.257 MB / 0.4956 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.1373, allocations: 0.7281 MB / 0.4963 GB, free: 184 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.1374, allocations: 41.05 kB / 0.4963 GB, free: 144 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.807e-05/0.1376, allocations: 51.42 kB / 0.4964 GB, free: 92 kB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1376, allocations: 0 / 0.4964 GB, free: 92 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.1654, allocations: 4.819 MB / 0.5011 GB, free: 11.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/10.99, allocations: 4.969 kB / 0.5011 GB, free: 11.41 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput.fmu > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)