Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_standard.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_standard,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_standard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_standard,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_standard",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.007946/0.007946, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001954/0.001954, allocations: 195.8 kB / 16.68 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2056/0.2056, allocations: 22.35 MB / 312.9 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001515, allocations: 64.8 kB / 436.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.114, allocations: 54.97 MB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_standard): time 0.003089/0.1171, allocations: 1.79 MB / 493.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.1184, allocations: 0.5845 MB / 493.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.1186, allocations: 0 / 493.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003521/0.1189, allocations: 39.7 kB / 494 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.1192, allocations: 59.69 kB / 494 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002472/0.1195, allocations: 91.86 kB / 494.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003462/0.1198, allocations: 255.5 kB / 494.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.12, allocations: 41.89 kB / 494.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.1202, allocations: 107.6 kB / 494.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.1204, allocations: 119.5 kB / 494.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.089e-05/0.1205, allocations: 12 kB / 494.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.584e-05/0.1205, allocations: 16 kB / 494.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.1207, allocations: 63.73 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.1208, allocations: 75.53 kB / 494.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.121, allocations: 179.2 kB / 495 MB, free: 14.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.121, allocations: 0 / 495 MB, free: 14.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1211, allocations: 3.938 kB / 495 MB, free: 14.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1211, allocations: 4 kB / 495 MB, free: 14.29 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.001402/0.1225, allocations: 0.5725 MB / 495.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.1225, allocations: 8.031 kB / 495.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.686e-05/0.1226, allocations: 42.73 kB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.304e-05/0.1227, allocations: 24.8 kB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006557/0.1233, allocations: 312.5 kB / 495.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.1234, allocations: 8.375 kB / 495.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.421e-05/0.1234, allocations: 12.38 kB / 495.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.1237, allocations: 136.4 kB / 496.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.1237, allocations: 7.922 kB / 496.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.1237, allocations: 4 kB / 496.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.1237, allocations: 4 kB / 496.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.124, allocations: 119.9 kB / 496.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.1251, allocations: 0.5159 MB / 496.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004317/0.1255, allocations: 178.4 kB / 496.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.1257, allocations: 83.34 kB / 497 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.1257, allocations: 4 kB / 497 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.1257, allocations: 30.56 kB / 497 MB, free: 12.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.1257, allocations: 0 / 497 MB, free: 12.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005343/0.1263, allocations: 249.6 kB / 497.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.1263, allocations: 55.34 kB / 497.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006183/0.127, allocations: 279.1 kB / 497.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.127, allocations: 25.7 kB / 497.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.707e-05/0.1271, allocations: 128.3 kB / 497.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.735e-05/0.1272, allocations: 55.55 kB / 497.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.686e-05/0.1272, allocations: 37.7 kB / 497.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1274, allocations: 330.8 kB / 498.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.1275, allocations: 63.91 kB / 498.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.1276, allocations: 55.97 kB / 498.3 MB, free: 10.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.1295, allocations: 462.2 kB / 498.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1295, allocations: 0 / 498.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000369/0.1299, allocations: 218.1 kB / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1299, allocations: 8 kB / 498.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1299, allocations: 0 / 498.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.1299, allocations: 4 kB / 498.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.1301, allocations: 35.97 kB / 499 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.1302, allocations: 7.938 kB / 499 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002382/0.1304, allocations: 35.86 kB / 499 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.1304, allocations: 4 kB / 499 MB, free: 9.996 MB / 366.1 MB Warning: Assuming fixed start value for the following 5 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 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 (20): * Single equations (assignments): 20 * 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.0002152/0.1306, allocations: 159.6 kB / 499.2 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.096e-05/0.1307, allocations: 19.86 kB / 499.2 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004374/0.1311, allocations: 219 kB / 499.4 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1312, allocations: 0 / 499.4 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.1312, allocations: 11.88 kB / 499.4 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1312, allocations: 7.922 kB / 499.4 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003261/0.1315, allocations: 289.4 kB / 499.7 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1315, allocations: 3.984 kB / 499.7 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.1318, allocations: 27.98 kB / 499.7 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.1318, allocations: 0 / 499.7 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.1318, allocations: 15.92 kB / 499.8 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1318, allocations: 0 / 499.8 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.1318, allocations: 3.938 kB / 499.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005309/0.1324, allocations: 390 kB / 0.4884 GB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.571e-05/0.1325, allocations: 97 kB / 0.4885 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.1325, allocations: 4.062 kB / 0.4885 GB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.1328, allocations: 31.91 kB / 0.4885 GB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.1328, allocations: 11.97 kB / 0.4886 GB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.1328, allocations: 4 kB / 0.4886 GB, free: 8.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004349/0.1333, allocations: 220.5 kB / 0.4888 GB, free: 8.418 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1333, allocations: 0 / 0.4888 GB, free: 8.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002766/0.1336, allocations: 39.89 kB / 0.4888 GB, free: 8.379 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y) * 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 (17): * Single equations (assignments): 17 * 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.0008614/0.1344, allocations: 0.9152 MB / 0.4897 GB, free: 7.438 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003566/0.1348, allocations: 163.9 kB / 0.4899 GB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1348, allocations: 0 / 0.4899 GB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.135, allocations: 85.92 kB / 0.4899 GB, free: 7.195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.1354, allocations: 45.14 kB / 0.49 GB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003839/0.1392, allocations: 2.47 MB / 0.4924 GB, free: 4.602 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.1396, allocations: 0.7475 MB / 0.4931 GB, free: 3.828 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.1397, allocations: 41.52 kB / 0.4932 GB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.1399, allocations: 63.41 kB / 0.4932 GB, free: 3.727 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1399, allocations: 0 / 0.4932 GB, free: 3.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.1622, allocations: 4.226 MB / 0.4974 GB, free: 15.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.533/7.695, allocations: 11.17 kB / 0.4974 GB, free: 15.59 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_standard.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_standard.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_standard.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_standard.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_actuation_schemes.SplitRange_standard_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_standard.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_standard.pipe 2>&1)