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.008478/0.008478, allocations: 101.9 kB / 15.73 MB, free: 6.062 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.001598/0.001598, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09059/0.09059, allocations: 22.33 MB / 312.9 MB, free: 8.848 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 436.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1043, allocations: 54.96 MB / 491.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.003148/0.1075, allocations: 1.81 MB / 493.3 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1088, allocations: 0.6546 MB / 494 MB, free: 2.738 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.109, allocations: 4 kB / 494 MB, free: 2.734 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003547/0.1093, allocations: 27.78 kB / 494 MB, free: 2.707 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.1095, allocations: 43.72 kB / 494 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.1099, allocations: 123.7 kB / 494.2 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.1102, allocations: 231.5 kB / 494.4 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.1104, allocations: 53.55 kB / 494.4 MB, free: 2.262 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.1105, allocations: 83.73 kB / 494.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.1107, allocations: 103.6 kB / 494.6 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.406e-05/0.1108, allocations: 23.94 kB / 494.6 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.267e-05/0.1108, allocations: 16 kB / 494.7 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.728e-05/0.1109, allocations: 47.91 kB / 494.7 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.879e-05/0.111, allocations: 91.52 kB / 494.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002519/0.1113, allocations: 199.2 kB / 495 MB, free: 1.707 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1113, allocations: 0 / 495 MB, free: 1.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1113, allocations: 0 / 495 MB, free: 1.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1113, allocations: 3.938 kB / 495 MB, free: 1.703 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.001089/0.1124, allocations: 0.5761 MB / 495.6 MB, free: 1.066 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1125, allocations: 8.031 kB / 495.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.1125, allocations: 50.73 kB / 495.6 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.1126, allocations: 20.84 kB / 495.6 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000477/0.1131, allocations: 272.7 kB / 495.9 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.1131, allocations: 12.38 kB / 495.9 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.1131, allocations: 20.36 kB / 495.9 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.1135, allocations: 176.1 kB / 496.1 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1135, allocations: 3.984 kB / 496.1 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.1135, allocations: 11.94 kB / 496.1 MB, free: 452 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.1136, allocations: 0 / 496.1 MB, free: 452 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.1139, allocations: 128.1 kB / 496.3 MB, free: 324 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009077/0.1148, allocations: 0.532 MB / 496.8 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005085/0.1153, allocations: 194.4 kB / 497 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.1155, allocations: 80.81 kB / 497.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.1155, allocations: 7.938 kB / 497.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002855/0.1158, allocations: 202.7 kB / 497.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.1158, allocations: 0 / 497.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001591/0.1174, allocations: 0.6246 MB / 497.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.1175, allocations: 162.2 kB / 498 MB, free: 14.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003911/0.1179, allocations: 214.6 kB / 498.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.118, allocations: 29.7 kB / 498.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.574e-05/0.1181, allocations: 124.3 kB / 498.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.571e-05/0.1182, allocations: 47.58 kB / 498.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.345e-05/0.1183, allocations: 41.7 kB / 498.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1184, allocations: 334.8 kB / 498.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.1186, allocations: 76.81 kB / 498.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.1188, allocations: 81.67 kB / 499 MB, free: 13.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.12, allocations: 0.526 MB / 499.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.12, allocations: 4 kB / 499.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004401/0.1205, allocations: 276.8 kB / 499.8 MB, free: 12.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/0.1205, allocations: 65.42 kB / 499.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1206, allocations: 0 / 499.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1206, allocations: 0 / 499.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.1208, allocations: 31.98 kB / 499.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1208, allocations: 7.875 kB / 499.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.121, allocations: 31.92 kB / 499.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.345e-05/0.121, allocations: 11.98 kB / 499.9 MB, free: 12.37 MB / 382.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.0002147/0.1213, allocations: 150.2 kB / 0.4883 GB, free: 12.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001179/0.1214, allocations: 79.38 kB / 0.4884 GB, free: 12.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009734/0.1224, allocations: 0.4899 MB / 0.4889 GB, free: 11.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.202e-06/0.1224, allocations: 0 / 0.4889 GB, free: 11.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.000342/0.1227, allocations: 257.6 kB / 0.4891 GB, free: 11.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.1228, allocations: 59.41 kB / 0.4892 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-06/0.1228, allocations: 3.938 kB / 0.4892 GB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-06/0.1228, allocations: 0 / 0.4892 GB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.1229, allocations: 31.97 kB / 0.4892 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.123, allocations: 4 kB / 0.4892 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.1231, allocations: 23.92 kB / 0.4893 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.1232, allocations: 4 kB / 0.4893 GB, free: 11.2 MB / 382.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.0001509/0.1233, allocations: 241.8 kB / 0.4895 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.704e-05/0.1234, allocations: 19.91 kB / 0.4895 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.914e-05/0.1234, allocations: 25.52 kB / 0.4895 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1234, allocations: 0 / 0.4895 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1235, allocations: 0 / 0.4895 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1235, allocations: 0 / 0.4895 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.1237, allocations: 281.3 kB / 0.4898 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1237, allocations: 0 / 0.4898 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.1239, allocations: 19.98 kB / 0.4898 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003619/0.1242, allocations: 142.5 kB / 0.49 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.1243, allocations: 8 kB / 0.49 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008815/0.1251, allocations: 0.8076 MB / 0.4908 GB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1252, allocations: 0 / 0.4908 GB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009185/0.1261, allocations: 0.4994 MB / 0.4913 GB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.1262, allocations: 96.95 kB / 0.4913 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.1262, allocations: 8.031 kB / 0.4914 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.1264, allocations: 27.97 kB / 0.4914 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.1265, allocations: 11.98 kB / 0.4914 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.1265, allocations: 8 kB / 0.4914 GB, free: 8.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002738/0.1268, allocations: 160.2 kB / 0.4915 GB, free: 8.711 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1268, allocations: 4 kB / 0.4916 GB, free: 8.707 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003163/0.1271, allocations: 63.89 kB / 0.4916 GB, free: 8.645 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],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.001177/0.1283, allocations: 1.04 MB / 0.4926 GB, free: 7.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006458/0.129, allocations: 497.5 kB / 0.4931 GB, free: 7.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.129, allocations: 0 / 0.4931 GB, free: 7.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000444/0.1294, allocations: 211.3 kB / 0.4933 GB, free: 6.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1297, allocations: 46.14 kB / 0.4934 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.1328, allocations: 2.266 MB / 0.4956 GB, free: 4.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.1331, allocations: 0.732 MB / 0.4963 GB, free: 3.656 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.1333, allocations: 37.05 kB / 0.4963 GB, free: 3.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.14e-05/0.1334, allocations: 47.42 kB / 0.4964 GB, free: 3.574 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1334, allocations: 0 / 0.4964 GB, free: 3.574 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2205/0.3539, allocations: 4.693 MB / 0.5009 GB, free: 22.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.3, allocations: 10.27 kB / 0.501 GB, free: 22.73 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput.fmu > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)