Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.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_equalising,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising",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.005647/0.005646, allocations: 96.94 kB / 15.73 MB, free: 6.488 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: 189.7 kB / 16.67 MB, free: 6.391 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2123/0.2123, allocations: 22.34 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 67.73 kB / 436.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09951/0.1007, allocations: 54.97 MB / 491.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.002364/0.1031, allocations: 1.934 MB / 493.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1043, allocations: 0.6705 MB / 494.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.95e-05/0.1044, allocations: 4 kB / 494.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003421/0.1048, allocations: 67.55 kB / 494.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.105, allocations: 103.5 kB / 494.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.1053, allocations: 151.8 kB / 494.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.1058, allocations: 431.2 kB / 494.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.1059, allocations: 61.14 kB / 494.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.1062, allocations: 171.5 kB / 495.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000265/0.1064, allocations: 195.2 kB / 495.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.719e-05/0.1065, allocations: 24 kB / 495.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.493e-05/0.1065, allocations: 20 kB / 495.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.1067, allocations: 99.7 kB / 495.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.1068, allocations: 119.2 kB / 495.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.1071, allocations: 274.7 kB / 495.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.1071, allocations: 0 / 495.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1071, allocations: 0 / 495.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1071, allocations: 0 / 495.8 MB, free: 13.43 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001767/0.1089, allocations: 0.7437 MB / 496.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.1089, allocations: 12.03 kB / 496.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.032e-05/0.109, allocations: 46.73 kB / 496.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.1091, allocations: 44.64 kB / 496.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009411/0.11, allocations: 412.2 kB / 497.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.11, allocations: 12.38 kB / 497.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.118e-05/0.1101, allocations: 16.33 kB / 497.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.1104, allocations: 190.2 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1104, allocations: 3.938 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.1105, allocations: 8 kB / 497.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1105, allocations: 4 kB / 497.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.1108, allocations: 175.9 kB / 497.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.1119, allocations: 0.6564 MB / 498.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/0.1124, allocations: 246.4 kB / 498.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.1126, allocations: 109.2 kB / 498.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.1126, allocations: 7.875 kB / 498.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.1127, allocations: 34.56 kB / 498.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.393e-06/0.1127, allocations: 0 / 498.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006394/0.1133, allocations: 343.7 kB / 498.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.1134, allocations: 51.41 kB / 498.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000897/0.1143, allocations: 420.4 kB / 499.3 MB, free: 9.734 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.1143, allocations: 29.7 kB / 499.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.1144, allocations: 152.4 kB / 499.5 MB, free: 9.547 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.952e-05/0.1145, allocations: 95.22 kB / 499.6 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.561e-05/0.1146, allocations: 41.7 kB / 499.6 MB, free: 9.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1147, allocations: 338.8 kB / 500 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.1149, allocations: 92.05 kB / 0.4883 GB, free: 8.977 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.1151, allocations: 92.41 kB / 0.4884 GB, free: 8.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002347/0.1174, allocations: 0.6184 MB / 0.489 GB, free: 8.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1174, allocations: 0 / 0.489 GB, free: 8.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004908/0.1179, allocations: 310.8 kB / 0.4893 GB, free: 7.961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.118, allocations: 8 kB / 0.4893 GB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.118, allocations: 7.938 kB / 0.4893 GB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.118, allocations: 0 / 0.4893 GB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002669/0.1183, allocations: 55.91 kB / 0.4894 GB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.1183, allocations: 0 / 0.4894 GB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003753/0.1187, allocations: 63.77 kB / 0.4894 GB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.1187, allocations: 4 kB / 0.4894 GB, free: 7.824 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 FA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] FA2.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 (28): * Single equations (assignments): 28 * 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.0002038/0.1189, allocations: 171.7 kB / 0.4896 GB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.119, allocations: 27.81 kB / 0.4896 GB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005392/0.1195, allocations: 314.2 kB / 0.4899 GB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1195, allocations: 4 kB / 0.4899 GB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1195, allocations: 3.938 kB / 0.4899 GB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1195, allocations: 3.938 kB / 0.4899 GB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.1199, allocations: 357.3 kB / 0.4903 GB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.12, allocations: 0 / 0.4903 GB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.1203, allocations: 43.97 kB / 0.4903 GB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1203, allocations: 0 / 0.4903 GB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.1203, allocations: 11.94 kB / 0.4903 GB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1203, allocations: 4 kB / 0.4903 GB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1203, allocations: 4 kB / 0.4903 GB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006999/0.121, allocations: 0.489 MB / 0.4908 GB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.882e-05/0.1211, allocations: 112.8 kB / 0.4909 GB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.04e-05/0.1212, allocations: 15.94 kB / 0.4909 GB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004165/0.1216, allocations: 51.92 kB / 0.491 GB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.1217, allocations: 15.97 kB / 0.491 GB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.1217, allocations: 8 kB / 0.491 GB, free: 6.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007541/0.1225, allocations: 330.9 kB / 0.4913 GB, free: 5.797 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1225, allocations: 0 / 0.4913 GB, free: 5.797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.1228, allocations: 44 kB / 0.4914 GB, free: 5.754 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,FA2.x_scaled[1],FA1.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 (23): * Single equations (assignments): 23 * 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.0009623/0.1237, allocations: 1.046 MB / 0.4924 GB, free: 4.684 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004396/0.1242, allocations: 239.7 kB / 0.4926 GB, free: 4.449 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1242, allocations: 0 / 0.4926 GB, free: 4.449 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.1244, allocations: 115.9 kB / 0.4927 GB, free: 4.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/0.1249, allocations: 58.22 kB / 0.4928 GB, free: 4.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005286/0.1302, allocations: 3.296 MB / 0.496 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.1305, allocations: 0.7911 MB / 0.4968 GB, free: 76 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000182/0.1307, allocations: 62.23 kB / 0.4968 GB, free: 16 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.1309, allocations: 99.62 kB / 0.4969 GB, free: 15.91 MB / 382.1 MB Notification: Performance of SimCode: time 5.62e-07/0.1309, allocations: 4 kB / 0.4969 GB, free: 15.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02548/0.1564, allocations: 5.926 MB / 0.5027 GB, free: 10.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.809/7.965, allocations: 13.89 kB / 0.5027 GB, free: 10.08 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising_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_equalising.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe 2>&1)