Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation.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_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",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.004746/0.004746, allocations: 99.95 kB / 15.73 MB, free: 6.059 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.001163/0.001163, allocations: 189.4 kB / 16.67 MB, free: 5.973 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09336/0.09336, allocations: 22.32 MB / 312.9 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 436.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1014, allocations: 54.95 MB / 491.5 MB, free: 5.266 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002905/0.1043, allocations: 1.912 MB / 493.4 MB, free: 3.336 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1054, allocations: 0.5845 MB / 494 MB, free: 2.746 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.1055, allocations: 7.938 kB / 494 MB, free: 2.738 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003098/0.1059, allocations: 51.58 kB / 494 MB, free: 2.688 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.1061, allocations: 51.7 kB / 494.1 MB, free: 2.637 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.1064, allocations: 107.8 kB / 494.2 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003557/0.1067, allocations: 316 kB / 494.5 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.1069, allocations: 52.38 kB / 494.6 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.1071, allocations: 119.6 kB / 494.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.1073, allocations: 127.5 kB / 494.8 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.1073, allocations: 24 kB / 494.8 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.857e-05/0.1074, allocations: 16 kB / 494.8 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.1075, allocations: 63.75 kB / 494.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.159e-05/0.1076, allocations: 95.39 kB / 495 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.1078, allocations: 203 kB / 495.2 MB, free: 1.535 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1078, allocations: 0 / 495.2 MB, free: 1.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1078, allocations: 0 / 495.2 MB, free: 1.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1079, allocations: 0 / 495.2 MB, free: 1.535 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001307/0.1092, allocations: 0.5958 MB / 495.8 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1092, allocations: 12.03 kB / 495.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.025e-05/0.1093, allocations: 50.73 kB / 495.8 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.401e-05/0.1093, allocations: 28.73 kB / 495.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005977/0.1099, allocations: 315.6 kB / 496.2 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.11, allocations: 12.38 kB / 496.2 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.11, allocations: 20.38 kB / 496.2 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003601/0.1104, allocations: 207.6 kB / 496.4 MB, free: 200 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.1104, allocations: 0 / 496.4 MB, free: 200 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.1104, allocations: 7.984 kB / 496.4 MB, free: 192 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1104, allocations: 4 kB / 496.4 MB, free: 188 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003247/0.1108, allocations: 155.8 kB / 496.6 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.1118, allocations: 0.7232 MB / 497.3 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004996/0.1124, allocations: 230.6 kB / 497.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.1125, allocations: 80.81 kB / 497.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.1126, allocations: 3.938 kB / 497.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.1126, allocations: 38.56 kB / 497.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.542e-06/0.1126, allocations: 0 / 497.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005504/0.1132, allocations: 263.9 kB / 497.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.1132, allocations: 55.41 kB / 498 MB, free: 14.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/0.1137, allocations: 292.9 kB / 498.3 MB, free: 14.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.1137, allocations: 29.7 kB / 498.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.942e-05/0.1138, allocations: 152.4 kB / 498.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.584e-05/0.1139, allocations: 75.36 kB / 498.5 MB, free: 14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.322e-05/0.114, allocations: 57.7 kB / 498.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1141, allocations: 334.8 kB / 498.9 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.1143, allocations: 72.23 kB / 499 MB, free: 13.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.1145, allocations: 127 kB / 499.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.1159, allocations: 467.6 kB / 499.5 MB, free: 12.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.1159, allocations: 0 / 499.5 MB, free: 12.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000496/0.1164, allocations: 279.4 kB / 499.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.1164, allocations: 4 kB / 499.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1164, allocations: 7.984 kB / 499.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.1165, allocations: 4 kB / 499.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.1168, allocations: 67.91 kB / 499.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.1168, allocations: 12.12 kB / 499.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.1171, allocations: 43.81 kB / 499.9 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.1171, allocations: 7.984 kB / 500 MB, free: 12.48 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: M.y:VARIABLE(flow=false start = M.y_start fixed = true ) "Connector of Real output signal" type: Real PI.xfb:VARIABLE(fixed = true ) type: Real P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (PI.LOsat,PI.HIsat,PI.iNoDec,PI.iNoInc,PI.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0002031/0.1173, allocations: 150.5 kB / 0.4884 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/0.1174, allocations: 35.78 kB / 0.4884 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004481/0.1178, allocations: 227.7 kB / 0.4886 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1178, allocations: 4 kB / 0.4886 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1178, allocations: 0 / 0.4886 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1178, allocations: 0 / 0.4886 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003234/0.1182, allocations: 297.4 kB / 0.4889 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1182, allocations: 0 / 0.4889 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.1185, allocations: 47.86 kB / 0.489 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.1185, allocations: 0 / 0.489 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.1185, allocations: 11.98 kB / 0.489 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1186, allocations: 4 kB / 0.489 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1186, allocations: 0 / 0.489 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005614/0.1191, allocations: 408.4 kB / 0.4894 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.235e-05/0.1192, allocations: 100.9 kB / 0.4895 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.1193, allocations: 7.938 kB / 0.4895 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.1195, allocations: 35.95 kB / 0.4895 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/0.1196, allocations: 19.92 kB / 0.4895 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.1196, allocations: 4 kB / 0.4895 GB, free: 11.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004068/0.12, allocations: 224.4 kB / 0.4897 GB, free: 10.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.12, allocations: 0 / 0.4897 GB, free: 10.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002983/0.1203, allocations: 35.94 kB / 0.4898 GB, free: 10.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (M.y,C.x_scaled[1],P.x_scaled[1],PI.xfb,PI.xBias,PI.u,PI.csfil) * Number of discrete variables: 2 (PI.HIsat,PI.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.0009078/0.1213, allocations: 0.9519 MB / 0.4907 GB, free: 9.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004713/0.1217, allocations: 197.7 kB / 0.4909 GB, free: 9.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1218, allocations: 4.062 kB / 0.4909 GB, free: 9.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.1219, allocations: 91.89 kB / 0.491 GB, free: 9.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.1223, allocations: 30.61 kB / 0.491 GB, free: 9.508 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003966/0.1263, allocations: 2.747 MB / 0.4937 GB, free: 6.645 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.1266, allocations: 0.7558 MB / 0.4944 GB, free: 5.863 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001249/0.1268, allocations: 37.88 kB / 0.4945 GB, free: 5.828 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.1269, allocations: 79.41 kB / 0.4945 GB, free: 5.75 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1269, allocations: 0 / 0.4945 GB, free: 5.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.1499, allocations: 4.676 MB / 0.4991 GB, free: 1.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.736/7.886, allocations: 19.92 kB / 0.4991 GB, free: 1.148 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 AES_AES_Coursework_Typical_control_structures_FF_compensation.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe 2>&1)