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.007405/0.007405, allocations: 100.4 kB / 15.73 MB, free: 5.953 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.001861/0.001861, allocations: 190.1 kB / 16.67 MB, free: 5.875 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09528/0.09528, allocations: 22.34 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 67.89 kB / 436.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1084, allocations: 54.94 MB / 491.5 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.003427/0.1119, allocations: 1.938 MB / 493.4 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1133, allocations: 0.6741 MB / 494.1 MB, free: 2.652 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001832/0.1135, allocations: 4 kB / 494.1 MB, free: 2.648 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004046/0.114, allocations: 71.55 kB / 494.2 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003402/0.1143, allocations: 99.45 kB / 494.3 MB, free: 2.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003953/0.1147, allocations: 147.8 kB / 494.4 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006157/0.1154, allocations: 431.1 kB / 494.8 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.1155, allocations: 69.08 kB / 494.9 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.1159, allocations: 167.5 kB / 495.1 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003871/0.1163, allocations: 195.3 kB / 495.3 MB, free: 1.484 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.383e-05/0.1164, allocations: 20 kB / 495.3 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.78e-05/0.1164, allocations: 24 kB / 495.3 MB, free: 1.441 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.1166, allocations: 95.72 kB / 495.4 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.1167, allocations: 127.1 kB / 495.5 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.1171, allocations: 262.8 kB / 495.8 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1171, allocations: 4 kB / 495.8 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1171, allocations: 4 kB / 495.8 MB, free: 0.957 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1171, allocations: 0 / 495.8 MB, free: 0.957 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.001951/0.1191, allocations: 0.7475 MB / 496.5 MB, free: 164 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.1191, allocations: 11.97 kB / 496.5 MB, free: 152 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.327e-05/0.1192, allocations: 50.73 kB / 496.6 MB, free: 92 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.341e-05/0.1193, allocations: 32.7 kB / 496.6 MB, free: 60 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.1204, allocations: 420.2 kB / 497 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.1204, allocations: 8.375 kB / 497 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.323e-05/0.1204, allocations: 16.33 kB / 497.1 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003517/0.1208, allocations: 190.2 kB / 497.2 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.1208, allocations: 0 / 497.2 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1208, allocations: 4 kB / 497.2 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1209, allocations: 8 kB / 497.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003612/0.1212, allocations: 179.9 kB / 497.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.1224, allocations: 0.6486 MB / 498.1 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005442/0.123, allocations: 254.4 kB / 498.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.1232, allocations: 101.2 kB / 498.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.1232, allocations: 7.922 kB / 498.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.1232, allocations: 38.5 kB / 498.5 MB, free: 14.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.1233, allocations: 4 kB / 498.5 MB, free: 14.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006825/0.1239, allocations: 340.3 kB / 498.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.124, allocations: 51.41 kB / 498.9 MB, free: 13.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009204/0.1249, allocations: 424.4 kB / 499.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.125, allocations: 29.7 kB / 499.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1251, allocations: 156.4 kB / 499.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.558e-05/0.1252, allocations: 83.28 kB / 499.5 MB, free: 12.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.065e-05/0.1253, allocations: 49.62 kB / 499.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1254, allocations: 338.8 kB / 499.9 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.1256, allocations: 88.11 kB / 0.4883 GB, free: 12.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.1258, allocations: 92.36 kB / 0.4884 GB, free: 12.42 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002338/0.1281, allocations: 0.6293 MB / 0.489 GB, free: 11.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1281, allocations: 0 / 0.489 GB, free: 11.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005081/0.1287, allocations: 310.5 kB / 0.4893 GB, free: 11.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1287, allocations: 8 kB / 0.4893 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.1287, allocations: 3.938 kB / 0.4893 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.1287, allocations: 3.984 kB / 0.4893 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002493/0.129, allocations: 47.92 kB / 0.4893 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.129, allocations: 4 kB / 0.4893 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000385/0.1294, allocations: 63.81 kB / 0.4894 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.1294, allocations: 4 kB / 0.4894 GB, free: 11.35 MB / 382.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.000227/0.1296, allocations: 175.6 kB / 0.4896 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.476e-05/0.1297, allocations: 31.8 kB / 0.4896 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005932/0.1303, allocations: 305.9 kB / 0.4899 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.1303, allocations: 4 kB / 0.4899 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1303, allocations: 0 / 0.4899 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.1303, allocations: 0 / 0.4899 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004507/0.1308, allocations: 357.3 kB / 0.4902 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.1308, allocations: 0 / 0.4902 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002909/0.1311, allocations: 47.91 kB / 0.4903 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1311, allocations: 0 / 0.4903 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.233e-05/0.1312, allocations: 15.92 kB / 0.4903 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1312, allocations: 0 / 0.4903 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1312, allocations: 3.938 kB / 0.4903 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007413/0.1319, allocations: 0.4905 MB / 0.4908 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.132, allocations: 120.8 kB / 0.4909 GB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.1321, allocations: 7.938 kB / 0.4909 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/0.1325, allocations: 51.92 kB / 0.491 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.45e-05/0.1326, allocations: 11.98 kB / 0.491 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.1326, allocations: 8 kB / 0.491 GB, free: 9.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007711/0.1334, allocations: 330.9 kB / 0.4913 GB, free: 9.332 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1334, allocations: 0 / 0.4913 GB, free: 9.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002902/0.1337, allocations: 44 kB / 0.4913 GB, free: 9.289 MB / 382.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.001058/0.1347, allocations: 1.041 MB / 0.4924 GB, free: 8.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004485/0.1352, allocations: 239.7 kB / 0.4926 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1352, allocations: 0 / 0.4926 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.1354, allocations: 118.3 kB / 0.4927 GB, free: 7.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004413/0.1359, allocations: 70.27 kB / 0.4928 GB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005581/0.1415, allocations: 3.286 MB / 0.496 GB, free: 4.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.1419, allocations: 0.7911 MB / 0.4967 GB, free: 3.609 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001626/0.1421, allocations: 58.25 kB / 0.4968 GB, free: 3.555 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.1423, allocations: 95.41 kB / 0.4969 GB, free: 3.461 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1423, allocations: 0 / 0.4969 GB, free: 3.461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.215/0.3573, allocations: 5.927 MB / 0.5027 GB, free: 22.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.805/8.162, allocations: 6.5 kB / 0.5027 GB, free: 22.41 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe 2>&1)