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.00889/0.00889, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001948/0.001947, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0912/0.0912, allocations: 22.33 MB / 312.9 MB, free: 8.855 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 59.91 kB / 436.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1335, allocations: 54.95 MB / 491.5 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.003955/0.1375, allocations: 1.939 MB / 493.4 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.139, allocations: 0.6663 MB / 494.1 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.1392, allocations: 4 kB / 494.1 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004362/0.1397, allocations: 71.48 kB / 494.2 MB, free: 2.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000362/0.1401, allocations: 99.52 kB / 494.3 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003888/0.1405, allocations: 147.8 kB / 494.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005744/0.1411, allocations: 431.1 kB / 494.8 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1412, allocations: 57.16 kB / 494.9 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.1415, allocations: 175.4 kB / 495.1 MB, free: 1.621 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/0.1419, allocations: 187.3 kB / 495.2 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.024e-05/0.142, allocations: 24 kB / 495.3 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.748e-05/0.142, allocations: 24 kB / 495.3 MB, free: 1.391 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.1422, allocations: 107.6 kB / 495.4 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.1423, allocations: 127.2 kB / 495.5 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.1426, allocations: 263 kB / 495.8 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1427, allocations: 0 / 495.8 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1427, allocations: 0 / 495.8 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.1427, allocations: 0 / 495.8 MB, free: 0.9023 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.002175/0.1449, allocations: 0.7475 MB / 496.5 MB, free: 108 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1449, allocations: 12.03 kB / 496.5 MB, free: 96 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.698e-05/0.145, allocations: 46.73 kB / 496.6 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.479e-05/0.1451, allocations: 28.56 kB / 496.6 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.1462, allocations: 423.9 kB / 497 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.1462, allocations: 8.375 kB / 497 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.1462, allocations: 16.38 kB / 497 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000396/0.1466, allocations: 186.3 kB / 497.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1467, allocations: 0 / 497.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.1467, allocations: 8 kB / 497.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1467, allocations: 0 / 497.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003467/0.1471, allocations: 179.9 kB / 497.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.1483, allocations: 0.6485 MB / 498.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005434/0.1488, allocations: 254.4 kB / 498.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.149, allocations: 105.2 kB / 498.4 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.1491, allocations: 7.938 kB / 498.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.1491, allocations: 38.56 kB / 498.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 2.765e-06/0.1491, allocations: 3.938 kB / 498.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006676/0.1498, allocations: 337.1 kB / 498.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.1498, allocations: 59.33 kB / 498.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009088/0.1508, allocations: 420.4 kB / 499.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1508, allocations: 29.7 kB / 499.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.904e-05/0.1509, allocations: 152.4 kB / 499.4 MB, free: 13.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.781e-05/0.151, allocations: 82.81 kB / 499.5 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.439e-05/0.1511, allocations: 45.7 kB / 499.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1512, allocations: 338.8 kB / 499.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.1514, allocations: 92.11 kB / 500 MB, free: 12.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002628/0.1517, allocations: 93.84 kB / 0.4884 GB, free: 12.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003677/0.1553, allocations: 0.6215 MB / 0.489 GB, free: 11.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1554, allocations: 0 / 0.489 GB, free: 11.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008643/0.1562, allocations: 314.3 kB / 0.4893 GB, free: 11.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.1563, allocations: 8 kB / 0.4893 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1563, allocations: 3.938 kB / 0.4893 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.1563, allocations: 0 / 0.4893 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003996/0.1568, allocations: 47.97 kB / 0.4893 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.1568, allocations: 4 kB / 0.4893 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006273/0.1574, allocations: 63.7 kB / 0.4894 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.322e-05/0.1575, allocations: 4 kB / 0.4894 GB, free: 11.31 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.000329/0.1578, allocations: 175.6 kB / 0.4896 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.444e-05/0.1579, allocations: 27.62 kB / 0.4896 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006336/0.1586, allocations: 313.2 kB / 0.4899 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.1586, allocations: 4 kB / 0.4899 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1586, allocations: 0 / 0.4899 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1586, allocations: 0 / 0.4899 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004734/0.1591, allocations: 357.2 kB / 0.4902 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-06/0.1591, allocations: 0 / 0.4902 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.1594, allocations: 39.98 kB / 0.4903 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.057e-05/0.1594, allocations: 3.984 kB / 0.4903 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.768e-05/0.1595, allocations: 15.88 kB / 0.4903 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1595, allocations: 0 / 0.4903 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1595, allocations: 0 / 0.4903 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000851/0.1604, allocations: 0.4942 MB / 0.4908 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.1605, allocations: 104.8 kB / 0.4909 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.377e-05/0.1606, allocations: 7.938 kB / 0.4909 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/0.161, allocations: 55.92 kB / 0.4909 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.932e-05/0.1611, allocations: 11.98 kB / 0.4909 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.104e-05/0.1612, allocations: 19.97 kB / 0.491 GB, free: 9.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009367/0.1621, allocations: 330.9 kB / 0.4913 GB, free: 9.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1621, allocations: 0 / 0.4913 GB, free: 9.293 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003215/0.1624, allocations: 51.84 kB / 0.4913 GB, free: 9.242 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.00119/0.1636, allocations: 1.031 MB / 0.4923 GB, free: 8.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004746/0.1641, allocations: 243.7 kB / 0.4926 GB, free: 7.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.1641, allocations: 0 / 0.4926 GB, free: 7.945 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002007/0.1644, allocations: 126.2 kB / 0.4927 GB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.1648, allocations: 58.59 kB / 0.4927 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005665/0.1705, allocations: 3.264 MB / 0.4959 GB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.1709, allocations: 0.7872 MB / 0.4967 GB, free: 3.598 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001859/0.1711, allocations: 58.25 kB / 0.4967 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.1713, allocations: 103.3 kB / 0.4968 GB, free: 3.441 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1713, allocations: 0 / 0.4968 GB, free: 3.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2539/0.4252, allocations: 6.046 MB / 0.5027 GB, free: 22.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/8.226, allocations: 5.359 kB / 0.5028 GB, free: 22.52 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)