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.001099/0.001099, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 192 kB / 16.53 MB, free: 6.391 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2296/0.2296, allocations: 22.34 MB / 312.7 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002444/0.002444, allocations: 55.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2826, allocations: 54.94 MB / 435.9 MB, free: 39.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002555/0.2852, allocations: 1.904 MB / 437.8 MB, free: 38.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008565/0.2861, allocations: 0.5863 MB / 438.4 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.909e-05/0.2862, allocations: 2.469 kB / 438.4 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002761/0.2864, allocations: 55.36 kB / 438.4 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.2866, allocations: 52.59 kB / 438.5 MB, free: 37.97 MB / 350.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.0002068/0.2868, allocations: 110.1 kB / 438.6 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.2871, allocations: 305.1 kB / 438.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.2872, allocations: 52.61 kB / 438.9 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.2874, allocations: 127.4 kB / 439 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.2875, allocations: 124.8 kB / 439.2 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.2876, allocations: 18.53 kB / 439.2 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.22e-05/0.2876, allocations: 21.72 kB / 439.2 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-05/0.2877, allocations: 63.53 kB / 439.3 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.479e-05/0.2878, allocations: 102.1 kB / 439.4 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.2879, allocations: 187.9 kB / 439.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.288, allocations: 0 / 439.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.288, allocations: 0 / 439.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.288, allocations: 0 / 439.6 MB, free: 37.48 MB / 350.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.001125/0.2891, allocations: 0.5977 MB / 440.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2891, allocations: 8.312 kB / 440.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.2892, allocations: 47.59 kB / 440.2 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.012e-05/0.2892, allocations: 27.81 kB / 440.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.2897, allocations: 314.8 kB / 440.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.2898, allocations: 14.03 kB / 440.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.311e-05/0.2898, allocations: 15.84 kB / 440.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.2901, allocations: 206.9 kB / 440.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.2901, allocations: 0 / 440.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.2901, allocations: 4 kB / 440.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.2901, allocations: 5.094 kB / 440.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/0.2904, allocations: 161.8 kB / 440.9 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008526/0.2913, allocations: 0.7343 MB / 441.7 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004429/0.2918, allocations: 216.6 kB / 441.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.2919, allocations: 84.81 kB / 442 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.2919, allocations: 6.562 kB / 442 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.51e-05/0.292, allocations: 41.75 kB / 442 MB, free: 35.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.292, allocations: 0 / 442 MB, free: 35.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004937/0.2925, allocations: 263.9 kB / 442.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.2925, allocations: 54.38 kB / 442.3 MB, free: 35.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.293, allocations: 294.6 kB / 442.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.293, allocations: 32.64 kB / 442.6 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.745e-05/0.2931, allocations: 140.7 kB / 442.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.067e-05/0.2931, allocations: 74.66 kB / 442.9 MB, free: 35.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.2932, allocations: 59.39 kB / 442.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.451e-05/0.2932, allocations: 337.8 kB / 443.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.2934, allocations: 67.02 kB / 443.3 MB, free: 34.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.2935, allocations: 129.6 kB / 443.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.2948, allocations: 457.2 kB / 443.9 MB, free: 34.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2948, allocations: 0 / 443.9 MB, free: 34.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003959/0.2952, allocations: 281.7 kB / 444.2 MB, free: 34.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2952, allocations: 11.78 kB / 444.2 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.2952, allocations: 2.75 kB / 444.2 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.2953, allocations: 6.922 kB / 444.2 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000269/0.2955, allocations: 59.03 kB / 444.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.2956, allocations: 7.875 kB / 444.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.2958, allocations: 47.91 kB / 444.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.2959, allocations: 12.62 kB / 444.3 MB, free: 34.44 MB / 350.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.0001413/0.296, allocations: 152.6 kB / 444.4 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.2961, allocations: 20.41 kB / 444.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003859/0.2964, allocations: 237.9 kB / 444.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2965, allocations: 2.406 kB / 444.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2965, allocations: 0 / 444.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2965, allocations: 0 / 444.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.2967, allocations: 301.9 kB / 445 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2967, allocations: 0 / 445 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000262/0.297, allocations: 49.33 kB / 445 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.297, allocations: 2.781 kB / 445 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.297, allocations: 4 kB / 445.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.297, allocations: 2.75 kB / 445.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.297, allocations: 0 / 445.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004733/0.2975, allocations: 414.5 kB / 445.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.405e-05/0.2976, allocations: 99.58 kB / 445.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.2976, allocations: 7.25 kB / 445.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002668/0.2979, allocations: 27.78 kB / 445.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.298, allocations: 15.44 kB / 445.6 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.298, allocations: 6.656 kB / 445.6 MB, free: 33.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003593/0.2983, allocations: 224.9 kB / 445.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.02e-07/0.2983, allocations: 0 / 445.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000296/0.2986, allocations: 47.17 kB / 445.9 MB, free: 33.43 MB / 350.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.0006173/0.2993, allocations: 0.9349 MB / 446.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003614/0.2996, allocations: 218.9 kB / 447 MB, free: 32.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2997, allocations: 1.5 kB / 447 MB, free: 32.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.2998, allocations: 89.06 kB / 447.1 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.3002, allocations: 32.53 kB / 447.1 MB, free: 32.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00319/0.3034, allocations: 2.738 MB / 449.9 MB, free: 30.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.3035, allocations: 0.7618 MB / 450.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.3036, allocations: 38.14 kB / 450.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.3038, allocations: 75.31 kB / 450.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3038, allocations: 0 / 450.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.3265, allocations: 4.601 MB / 455.4 MB, free: 29.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/7.863, allocations: 13.48 kB / 455.4 MB, free: 29.47 MB / 350.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)