Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.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.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",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.004907/0.004907, allocations: 98.2 kB / 15.73 MB, free: 6.004 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.001076/0.001076, allocations: 193.3 kB / 16.67 MB, free: 5.934 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2031/0.2031, allocations: 22.35 MB / 312.9 MB, free: 12.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 56.53 kB / 436.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.098/0.09925, allocations: 54.97 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.002523/0.1018, allocations: 2.014 MB / 493.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.1029, allocations: 0.6783 MB / 494.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.103, allocations: 7.938 kB / 494.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003399/0.1034, allocations: 75.53 kB / 494.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.1037, allocations: 99.45 kB / 494.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.104, allocations: 155.8 kB / 494.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004301/0.1044, allocations: 467.5 kB / 495 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.1046, allocations: 70.05 kB / 495.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.1048, allocations: 187.4 kB / 495.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002721/0.1051, allocations: 207.2 kB / 495.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.682e-05/0.1051, allocations: 24 kB / 495.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.97e-05/0.1052, allocations: 24 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.1053, allocations: 103.7 kB / 495.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.1054, allocations: 127.1 kB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.1057, allocations: 294.6 kB / 496 MB, free: 13.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1058, allocations: 4 kB / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1058, allocations: 0 / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1058, allocations: 0 / 496 MB, free: 13.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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001839/0.1076, allocations: 0.7711 MB / 496.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1077, allocations: 8.031 kB / 496.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.157e-05/0.1077, allocations: 50.73 kB / 496.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/0.1078, allocations: 40.7 kB / 496.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1088, allocations: 432 kB / 497.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.1088, allocations: 8.703 kB / 497.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.674e-05/0.1089, allocations: 24.33 kB / 497.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.1092, allocations: 200.2 kB / 497.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.1093, allocations: 7.938 kB / 497.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.1093, allocations: 8 kB / 497.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.1093, allocations: 4 kB / 497.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003658/0.1097, allocations: 204.1 kB / 497.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.1109, allocations: 0.6992 MB / 498.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007262/0.1116, allocations: 320.6 kB / 498.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.1118, allocations: 120.8 kB / 498.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.1118, allocations: 7.938 kB / 498.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.1119, allocations: 30.56 kB / 498.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.1119, allocations: 0 / 498.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006727/0.1126, allocations: 369.5 kB / 499.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.1126, allocations: 55.41 kB / 499.3 MB, free: 9.707 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008891/0.1135, allocations: 420.4 kB / 499.8 MB, free: 9.285 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.1136, allocations: 33.7 kB / 499.8 MB, free: 9.246 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1137, allocations: 164.5 kB / 499.9 MB, free: 9.082 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.1138, allocations: 99.16 kB / 0.4883 GB, free: 8.984 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.226e-05/0.1139, allocations: 45.7 kB / 0.4884 GB, free: 8.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.114, allocations: 342.8 kB / 0.4887 GB, free: 8.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.1142, allocations: 91.95 kB / 0.4888 GB, free: 8.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.1144, allocations: 97.95 kB / 0.4889 GB, free: 8.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002419/0.1168, allocations: 0.6616 MB / 0.4895 GB, free: 7.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1168, allocations: 4 kB / 0.4895 GB, free: 7.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005237/0.1173, allocations: 341.2 kB / 0.4899 GB, free: 7.398 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1174, allocations: 4 kB / 0.4899 GB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1174, allocations: 0 / 0.4899 GB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1174, allocations: 4 kB / 0.4899 GB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00028/0.1177, allocations: 55.91 kB / 0.4899 GB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.1177, allocations: 0 / 0.4899 GB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004147/0.1181, allocations: 63.81 kB / 0.49 GB, free: 7.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.1182, allocations: 8 kB / 0.49 GB, free: 7.266 MB / 366.1 MB Warning: Assuming fixed start value for the following 7 variables: Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real CA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] CA2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0002416/0.1184, allocations: 167.7 kB / 0.4901 GB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.427e-05/0.1185, allocations: 35.69 kB / 0.4902 GB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005958/0.1191, allocations: 337.5 kB / 0.4905 GB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.1191, allocations: 7.938 kB / 0.4905 GB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1191, allocations: 0 / 0.4905 GB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1191, allocations: 0 / 0.4905 GB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003963/0.1195, allocations: 361.4 kB / 0.4909 GB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1195, allocations: 3.938 kB / 0.4909 GB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/0.1198, allocations: 55.91 kB / 0.4909 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.1199, allocations: 7.984 kB / 0.4909 GB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.1199, allocations: 4 kB / 0.4909 GB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1199, allocations: 4 kB / 0.4909 GB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1199, allocations: 0 / 0.4909 GB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007086/0.1206, allocations: 0.5236 MB / 0.4914 GB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.983e-05/0.1207, allocations: 116.8 kB / 0.4915 GB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.051e-05/0.1208, allocations: 11.98 kB / 0.4916 GB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004199/0.1212, allocations: 55.92 kB / 0.4916 GB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.854e-05/0.1213, allocations: 7.984 kB / 0.4916 GB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.1213, allocations: 12 kB / 0.4916 GB, free: 5.477 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007664/0.1221, allocations: 330.9 kB / 0.4919 GB, free: 5.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1221, allocations: 0 / 0.4919 GB, free: 5.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.1224, allocations: 59.89 kB / 0.492 GB, free: 5.098 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y,CA2.x_scaled[1],CA1.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0009732/0.1234, allocations: 1.056 MB / 0.493 GB, free: 4.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004397/0.1238, allocations: 255.7 kB / 0.4933 GB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1238, allocations: 0 / 0.4933 GB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.124, allocations: 127.9 kB / 0.4934 GB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.1245, allocations: 64.55 kB / 0.4935 GB, free: 3.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005239/0.1298, allocations: 3.385 MB / 0.4968 GB, free: 100 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.1301, allocations: 0.7987 MB / 0.4975 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001756/0.1303, allocations: 66.23 kB / 0.4976 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.1305, allocations: 99.41 kB / 0.4977 GB, free: 15.11 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1305, allocations: 0 / 0.4977 GB, free: 15.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.1529, allocations: 6.12 MB / 0.5037 GB, free: 9.105 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.778/7.931, allocations: 12.88 kB / 0.5037 GB, free: 9.094 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops_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_SplitRange_cascadeLoops.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe 2>&1)