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.001658/0.001658, allocations: 108 kB / 15.61 MB, free: 152 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.001887/0.001887, allocations: 197 kB / 16.53 MB, free: 6.664 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.49/1.49, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2329/0.2329, allocations: 22.35 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001345, allocations: 63.89 kB / 380.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2785, allocations: 54.93 MB / 435.9 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.003179/0.2817, allocations: 1.905 MB / 437.8 MB, free: 38.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009549/0.2827, allocations: 0.5841 MB / 438.4 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.2828, allocations: 0 / 438.4 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003155/0.2832, allocations: 59.14 kB / 438.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.2833, allocations: 49.48 kB / 438.5 MB, free: 37.89 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.000229/0.2836, allocations: 114.5 kB / 438.6 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002972/0.2839, allocations: 307.5 kB / 438.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.284, allocations: 50.59 kB / 438.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.2842, allocations: 121 kB / 439.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.2844, allocations: 131.5 kB / 439.2 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.278e-05/0.2844, allocations: 23.09 kB / 439.2 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.54e-05/0.2845, allocations: 19.97 kB / 439.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.733e-05/0.2846, allocations: 62.11 kB / 439.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.909e-05/0.2846, allocations: 99.28 kB / 439.4 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002094/0.2849, allocations: 188.9 kB / 439.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.2849, allocations: 3.469 kB / 439.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2849, allocations: 0 / 439.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.2849, allocations: 0 / 439.6 MB, free: 37.39 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.001325/0.2862, allocations: 0.5916 MB / 440.2 MB, free: 36.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.2863, allocations: 11.03 kB / 440.2 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.03e-05/0.2863, allocations: 54.77 kB / 440.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.634e-05/0.2864, allocations: 28.12 kB / 440.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005204/0.2869, allocations: 305.4 kB / 440.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.87e-05/0.287, allocations: 16.06 kB / 440.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.323e-05/0.287, allocations: 18.81 kB / 440.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.2873, allocations: 204.7 kB / 440.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2874, allocations: 0 / 440.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.2874, allocations: 7.422 kB / 440.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.2874, allocations: 5.312 kB / 440.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003024/0.2877, allocations: 148.3 kB / 440.9 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009484/0.2887, allocations: 0.7357 MB / 441.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004339/0.2891, allocations: 229 kB / 441.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.2893, allocations: 83.53 kB / 442 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.2893, allocations: 6.469 kB / 442 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.2893, allocations: 34.56 kB / 442 MB, free: 35.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.2893, allocations: 4 kB / 442 MB, free: 35.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004958/0.2898, allocations: 267 kB / 442.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.2899, allocations: 57.53 kB / 442.3 MB, free: 35.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004301/0.2903, allocations: 287.3 kB / 442.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2903, allocations: 36.64 kB / 442.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.333e-05/0.2904, allocations: 144 kB / 442.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/0.2904, allocations: 75.95 kB / 442.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.375e-05/0.2905, allocations: 56.08 kB / 442.9 MB, free: 35.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.471e-05/0.2906, allocations: 336.1 kB / 443.3 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.2907, allocations: 66.41 kB / 443.3 MB, free: 34.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.2909, allocations: 132.1 kB / 443.4 MB, free: 34.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.2921, allocations: 454.9 kB / 443.9 MB, free: 34.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2921, allocations: 0 / 443.9 MB, free: 34.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000405/0.2926, allocations: 280.7 kB / 444.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.2926, allocations: 7.25 kB / 444.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2926, allocations: 192 / 444.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.2926, allocations: 6.812 kB / 444.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002616/0.2929, allocations: 67.3 kB / 444.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.2929, allocations: 10.81 kB / 444.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.2932, allocations: 45.5 kB / 444.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.2932, allocations: 9 kB / 444.3 MB, free: 34.35 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.0001645/0.2934, allocations: 155.7 kB / 444.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.797e-05/0.2934, allocations: 25.39 kB / 444.5 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004148/0.2938, allocations: 228 kB / 444.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2939, allocations: 2.656 kB / 444.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.2939, allocations: 5.953 kB / 444.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.2939, allocations: 0 / 444.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000292/0.2942, allocations: 295.5 kB / 445 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2942, allocations: 0 / 445 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.2944, allocations: 50.33 kB / 445.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.2945, allocations: 2.719 kB / 445.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.2945, allocations: 10.25 kB / 445.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.2945, allocations: 0 / 445.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2945, allocations: 0 / 445.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005171/0.295, allocations: 404.5 kB / 445.5 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.2951, allocations: 105.7 kB / 445.6 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.2951, allocations: 10.81 kB / 445.6 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.2954, allocations: 31.36 kB / 445.6 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.915e-05/0.2955, allocations: 20.42 kB / 445.6 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.2955, allocations: 7.031 kB / 445.6 MB, free: 33.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003581/0.2958, allocations: 222.9 kB / 445.9 MB, free: 33.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2958, allocations: 2.625 kB / 445.9 MB, free: 33.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002747/0.2961, allocations: 37 kB / 445.9 MB, free: 33.34 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.0007097/0.2968, allocations: 0.9364 MB / 446.8 MB, free: 32.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004071/0.2973, allocations: 218.1 kB / 447 MB, free: 32.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2973, allocations: 0 / 447 MB, free: 32.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.2974, allocations: 91.06 kB / 447.1 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.2978, allocations: 31.77 kB / 447.2 MB, free: 32.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/0.3012, allocations: 2.741 MB / 449.9 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.3014, allocations: 0.7624 MB / 450.7 MB, free: 29.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.3015, allocations: 37.09 kB / 450.7 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.3017, allocations: 75.12 kB / 450.8 MB, free: 29.9 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3017, allocations: 0 / 450.8 MB, free: 29.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.324, allocations: 4.597 MB / 455.4 MB, free: 29.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/7.674, allocations: 17.33 kB / 455.4 MB, free: 29.38 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe 2>&1)