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.005354/0.005354, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001045/0.001045, allocations: 195.8 kB / 16.67 MB, free: 5.977 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2467/0.2467, allocations: 22.36 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 70.88 kB / 436.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, allocations: 54.95 MB / 491.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.003181/0.1078, allocations: 2.014 MB / 493.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1092, allocations: 0.6819 MB / 494.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.1093, allocations: 4 kB / 494.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003966/0.1098, allocations: 71.48 kB / 494.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.11, allocations: 103.5 kB / 494.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003417/0.1104, allocations: 151.8 kB / 494.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000521/0.1109, allocations: 463.5 kB / 495 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.1111, allocations: 76.58 kB / 495.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002387/0.1114, allocations: 183.4 kB / 495.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003233/0.1117, allocations: 199.3 kB / 495.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.515e-05/0.1118, allocations: 24 kB / 495.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.371e-05/0.1118, allocations: 24 kB / 495.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.112, allocations: 111.6 kB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.1122, allocations: 123.2 kB / 495.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003523/0.1125, allocations: 303.6 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1125, allocations: 0 / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1125, allocations: 7.938 kB / 496 MB, free: 13.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.1125, allocations: 0 / 496 MB, free: 13.19 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.001783/0.1143, allocations: 0.7557 MB / 496.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.1144, allocations: 12.03 kB / 496.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.426e-05/0.1145, allocations: 46.73 kB / 496.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.836e-05/0.1146, allocations: 40.47 kB / 496.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.1156, allocations: 431.8 kB / 497.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/0.1156, allocations: 16.7 kB / 497.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/0.1157, allocations: 12.38 kB / 497.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.1161, allocations: 204.2 kB / 497.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1161, allocations: 0 / 497.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.1161, allocations: 8 kB / 497.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.1161, allocations: 8 kB / 497.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.1165, allocations: 204.1 kB / 497.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.1177, allocations: 0.6914 MB / 498.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006972/0.1184, allocations: 310.4 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.1186, allocations: 120.8 kB / 498.9 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.1186, allocations: 15.86 kB / 498.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.1187, allocations: 38.56 kB / 498.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.1187, allocations: 4 kB / 498.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006432/0.1193, allocations: 360.1 kB / 499.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.1194, allocations: 55.41 kB / 499.3 MB, free: 9.707 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008392/0.1202, allocations: 428.4 kB / 499.7 MB, free: 9.277 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.1202, allocations: 29.7 kB / 499.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.1203, allocations: 156.4 kB / 499.9 MB, free: 9.086 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.352e-05/0.1204, allocations: 90.73 kB / 0.4883 GB, free: 8.996 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.498e-05/0.1205, allocations: 49.7 kB / 0.4883 GB, free: 8.941 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1206, allocations: 342.8 kB / 0.4887 GB, free: 8.598 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.1208, allocations: 99.88 kB / 0.4888 GB, free: 8.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.121, allocations: 96.73 kB / 0.4889 GB, free: 8.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002273/0.1232, allocations: 0.6694 MB / 0.4895 GB, free: 7.734 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1233, allocations: 0 / 0.4895 GB, free: 7.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000503/0.1238, allocations: 325.1 kB / 0.4898 GB, free: 7.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1238, allocations: 4 kB / 0.4898 GB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1238, allocations: 7.984 kB / 0.4898 GB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1238, allocations: 0 / 0.4898 GB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002695/0.1241, allocations: 51.92 kB / 0.4899 GB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1241, allocations: 11.98 kB / 0.4899 GB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003667/0.1245, allocations: 67.66 kB / 0.49 GB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.1245, allocations: 7.984 kB / 0.49 GB, free: 7.262 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 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.0002214/0.1247, allocations: 173.7 kB / 0.4901 GB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.32e-05/0.1248, allocations: 35.56 kB / 0.4902 GB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005882/0.1254, allocations: 321.5 kB / 0.4905 GB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1254, allocations: 4 kB / 0.4905 GB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1254, allocations: 0 / 0.4905 GB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.1254, allocations: 7.984 kB / 0.4905 GB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004012/0.1259, allocations: 361.3 kB / 0.4908 GB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1259, allocations: 3.938 kB / 0.4908 GB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002968/0.1262, allocations: 51.97 kB / 0.4909 GB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1262, allocations: 0 / 0.4909 GB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.1262, allocations: 8 kB / 0.4909 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1262, allocations: 0 / 0.4909 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1262, allocations: 7.922 kB / 0.4909 GB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006807/0.1269, allocations: 0.5195 MB / 0.4914 GB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.127, allocations: 120.6 kB / 0.4915 GB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.725e-05/0.1271, allocations: 8 kB / 0.4915 GB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004044/0.1275, allocations: 55.91 kB / 0.4916 GB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.081e-05/0.1275, allocations: 15.97 kB / 0.4916 GB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.1276, allocations: 8 kB / 0.4916 GB, free: 5.484 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007073/0.1283, allocations: 330.9 kB / 0.4919 GB, free: 5.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1283, allocations: 0 / 0.4919 GB, free: 5.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002784/0.1286, allocations: 55.91 kB / 0.492 GB, free: 5.109 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,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.0009512/0.1295, allocations: 1.06 MB / 0.493 GB, free: 4.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004379/0.13, allocations: 255.7 kB / 0.4932 GB, free: 3.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.13, allocations: 7.938 kB / 0.4933 GB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.1302, allocations: 127.9 kB / 0.4934 GB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.1306, allocations: 61.14 kB / 0.4934 GB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005084/0.1357, allocations: 3.371 MB / 0.4967 GB, free: 124 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.1361, allocations: 0.7987 MB / 0.4975 GB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.1363, allocations: 62.25 kB / 0.4976 GB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001707/0.1365, allocations: 103.4 kB / 0.4977 GB, free: 15.14 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1365, allocations: 0 / 0.4977 GB, free: 15.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02339/0.1599, allocations: 6.053 MB / 0.5036 GB, free: 9.191 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.415/7.575, allocations: 11.7 kB / 0.5036 GB, free: 9.18 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)