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.005773/0.005773, allocations: 101.6 kB / 15.73 MB, free: 6.043 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.001372/0.001372, allocations: 197.4 kB / 16.67 MB, free: 5.961 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09448/0.09448, allocations: 22.33 MB / 312.9 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002159/0.002159, allocations: 59.91 kB / 436.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1157, allocations: 54.96 MB / 491.5 MB, free: 5.262 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.003388/0.1192, allocations: 2.005 MB / 493.5 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.1205, allocations: 0.6819 MB / 494.2 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.1208, allocations: 4 kB / 494.2 MB, free: 2.551 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004168/0.1212, allocations: 75.48 kB / 494.3 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000306/0.1215, allocations: 95.45 kB / 494.4 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.1219, allocations: 159.8 kB / 494.5 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.1225, allocations: 459.5 kB / 495 MB, free: 1.777 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.1226, allocations: 74.03 kB / 495 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.1229, allocations: 187.4 kB / 495.2 MB, free: 1.516 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003118/0.1232, allocations: 203.2 kB / 495.4 MB, free: 1.316 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.679e-05/0.1233, allocations: 24 kB / 495.4 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.778e-05/0.1233, allocations: 28 kB / 495.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1235, allocations: 99.66 kB / 495.6 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.1236, allocations: 135.1 kB / 495.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.1239, allocations: 290.9 kB / 496 MB, free: 0.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1239, allocations: 0 / 496 MB, free: 0.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.1239, allocations: 0 / 496 MB, free: 0.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1239, allocations: 3.938 kB / 496 MB, free: 0.7461 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.00206/0.126, allocations: 0.7636 MB / 496.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1261, allocations: 16.03 kB / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.064e-05/0.1261, allocations: 46.73 kB / 496.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.297e-05/0.1262, allocations: 36.47 kB / 496.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.1273, allocations: 431.8 kB / 497.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.1273, allocations: 12.7 kB / 497.3 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.1273, allocations: 16.38 kB / 497.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003562/0.1277, allocations: 200.2 kB / 497.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1277, allocations: 0 / 497.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.1278, allocations: 4 kB / 497.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.1278, allocations: 7.984 kB / 497.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003861/0.1282, allocations: 208.1 kB / 497.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.1295, allocations: 0.6952 MB / 498.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007412/0.1302, allocations: 314.4 kB / 498.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.1304, allocations: 124.7 kB / 498.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.1305, allocations: 7.938 kB / 498.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.1305, allocations: 34.56 kB / 498.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.212e-06/0.1305, allocations: 0 / 498.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006857/0.1312, allocations: 371 kB / 499.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.1313, allocations: 55.41 kB / 499.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008932/0.1322, allocations: 428.4 kB / 499.7 MB, free: 12.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.1322, allocations: 25.7 kB / 499.7 MB, free: 12.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.1323, allocations: 164.4 kB / 499.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.923e-05/0.1324, allocations: 90.59 kB / 500 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-05/0.1325, allocations: 49.7 kB / 0.4883 GB, free: 12.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1327, allocations: 346.7 kB / 0.4886 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.1329, allocations: 91.94 kB / 0.4887 GB, free: 12.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.133, allocations: 91.59 kB / 0.4888 GB, free: 11.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002448/0.1355, allocations: 0.657 MB / 0.4895 GB, free: 11.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1355, allocations: 4 kB / 0.4895 GB, free: 11.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005932/0.1361, allocations: 333.1 kB / 0.4898 GB, free: 10.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.1361, allocations: 8 kB / 0.4898 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1361, allocations: 0 / 0.4898 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.1362, allocations: 0 / 0.4898 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.1365, allocations: 55.91 kB / 0.4898 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.1365, allocations: 4 kB / 0.4898 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.1369, allocations: 63.77 kB / 0.4899 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.1369, allocations: 8 kB / 0.4899 GB, free: 10.82 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 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.0003255/0.1373, allocations: 175.7 kB / 0.4901 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.284e-05/0.1374, allocations: 35.56 kB / 0.4901 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006438/0.138, allocations: 331.8 kB / 0.4904 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.138, allocations: 4 kB / 0.4904 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.138, allocations: 0 / 0.4904 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.138, allocations: 0 / 0.4904 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004615/0.1385, allocations: 365.3 kB / 0.4908 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.1385, allocations: 11.94 kB / 0.4908 GB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003264/0.1389, allocations: 47.97 kB / 0.4908 GB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.1389, allocations: 0 / 0.4908 GB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/0.1389, allocations: 11.94 kB / 0.4908 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1389, allocations: 0 / 0.4908 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1389, allocations: 0 / 0.4908 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007816/0.1397, allocations: 0.5157 MB / 0.4913 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.1399, allocations: 124.6 kB / 0.4915 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.1399, allocations: 8 kB / 0.4915 GB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.1403, allocations: 51.92 kB / 0.4915 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.1404, allocations: 11.98 kB / 0.4915 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.1404, allocations: 11.98 kB / 0.4915 GB, free: 9.039 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008249/0.1412, allocations: 326.9 kB / 0.4919 GB, free: 8.723 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.174e-06/0.1413, allocations: 0 / 0.4919 GB, free: 8.723 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003261/0.1416, allocations: 63.78 kB / 0.4919 GB, free: 8.66 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,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.001121/0.1427, allocations: 1.071 MB / 0.493 GB, free: 7.562 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004766/0.1432, allocations: 255.7 kB / 0.4932 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.1432, allocations: 0 / 0.4932 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002054/0.1434, allocations: 127.9 kB / 0.4933 GB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/0.1439, allocations: 66.69 kB / 0.4934 GB, free: 7.121 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005818/0.1497, allocations: 3.368 MB / 0.4967 GB, free: 3.664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.1501, allocations: 0.8026 MB / 0.4975 GB, free: 2.836 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001842/0.1503, allocations: 58.25 kB / 0.4975 GB, free: 2.781 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.1505, allocations: 103.4 kB / 0.4976 GB, free: 2.68 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1505, allocations: 0 / 0.4976 GB, free: 2.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2469/0.3974, allocations: 6.224 MB / 0.5037 GB, free: 22.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.033/8.43, allocations: 8.297 kB / 0.5037 GB, free: 22.26 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe 2>&1)