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.001144/0.001144, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00113/0.00113, allocations: 192.6 kB / 16.14 MB, free: 6.711 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.187/1.187, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1766/0.1766, allocations: 22.34 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.89 kB / 380.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2069, allocations: 54.94 MB / 435.1 MB, free: 39.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002151/0.2091, allocations: 1.958 MB / 437.1 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000626/0.2097, allocations: 0.5794 MB / 437.7 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.992e-05/0.2098, allocations: 0 / 437.7 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.2101, allocations: 45.5 kB / 437.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.2102, allocations: 44.69 kB / 437.8 MB, free: 37.66 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.0001654/0.2104, allocations: 103.8 kB / 437.9 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.2106, allocations: 300.3 kB / 438.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.47e-05/0.2107, allocations: 49.14 kB / 438.2 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.283e-05/0.2108, allocations: 105.8 kB / 438.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.2109, allocations: 122.1 kB / 438.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.211, allocations: 15.09 kB / 438.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.738e-05/0.211, allocations: 15.5 kB / 438.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.097e-05/0.2111, allocations: 59.16 kB / 438.5 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.785e-05/0.2111, allocations: 82.97 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.2113, allocations: 179.8 kB / 438.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2113, allocations: 2.906 kB / 438.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.82e-07/0.2113, allocations: 0 / 438.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.2113, allocations: 0 / 438.8 MB, free: 37.21 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.0009853/0.2123, allocations: 0.5969 MB / 439.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.83e-05/0.2123, allocations: 16.12 kB / 439.4 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.2123, allocations: 47.59 kB / 439.4 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.071e-05/0.2124, allocations: 34.16 kB / 439.5 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.2128, allocations: 307.7 kB / 439.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.2128, allocations: 16.94 kB / 439.8 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.2129, allocations: 16.25 kB / 439.8 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.2131, allocations: 204.2 kB / 440 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.2132, allocations: 0 / 440 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.2132, allocations: 9.922 kB / 440 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2132, allocations: 2.875 kB / 440 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000267/0.2135, allocations: 152.1 kB / 440.2 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007398/0.2142, allocations: 0.7367 MB / 440.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003903/0.2146, allocations: 223.8 kB / 441.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.2147, allocations: 79.81 kB / 441.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.2148, allocations: 6.812 kB / 441.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.143e-05/0.2148, allocations: 38.56 kB / 441.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.363e-06/0.2148, allocations: 0 / 441.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.000431/0.2152, allocations: 265.5 kB / 441.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.573e-05/0.2153, allocations: 54.38 kB / 441.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003865/0.2156, allocations: 292.1 kB / 441.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.2157, allocations: 33.7 kB / 441.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.078e-05/0.2157, allocations: 145.9 kB / 442 MB, free: 35.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.541e-05/0.2158, allocations: 71.25 kB / 442.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.2158, allocations: 56.91 kB / 442.1 MB, free: 34.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.2159, allocations: 333.1 kB / 442.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.216, allocations: 73.7 kB / 442.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.2161, allocations: 126.1 kB / 442.7 MB, free: 34.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.2173, allocations: 455.3 kB / 443.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2173, allocations: 0 / 443.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003516/0.2176, allocations: 279.1 kB / 443.4 MB, free: 34.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.2177, allocations: 5.719 kB / 443.4 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2177, allocations: 7.062 kB / 443.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.2177, allocations: 2.906 kB / 443.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.2179, allocations: 67.78 kB / 443.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.218, allocations: 7.406 kB / 443.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.2182, allocations: 49.64 kB / 443.5 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.2182, allocations: 8.656 kB / 443.5 MB, free: 34.17 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.0001165/0.2183, allocations: 160 kB / 443.7 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.2184, allocations: 20.44 kB / 443.7 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003389/0.2187, allocations: 236.2 kB / 443.9 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2187, allocations: 0 / 443.9 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2187, allocations: 3.328 kB / 443.9 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2188, allocations: 2.875 kB / 443.9 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002084/0.219, allocations: 292.5 kB / 444.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.219, allocations: 7 kB / 444.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002464/0.2192, allocations: 53.11 kB / 444.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.2192, allocations: 0 / 444.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.2193, allocations: 6.625 kB / 444.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2193, allocations: 0 / 444.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2193, allocations: 3.234 kB / 444.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000418/0.2197, allocations: 406.1 kB / 444.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.688e-05/0.2197, allocations: 111 kB / 444.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.2198, allocations: 7.312 kB / 444.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.22, allocations: 27.09 kB / 444.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.2201, allocations: 18.06 kB / 444.9 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.2201, allocations: 2.75 kB / 444.9 MB, free: 33.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003104/0.2204, allocations: 223.8 kB / 445.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2204, allocations: 0 / 445.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002464/0.2207, allocations: 41.03 kB / 445.1 MB, free: 33.16 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.0005383/0.2212, allocations: 0.9429 MB / 446.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000285/0.2215, allocations: 190.7 kB / 446.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2215, allocations: 0 / 446.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.2216, allocations: 94.75 kB / 446.3 MB, free: 32.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.2219, allocations: 36.7 kB / 446.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.2247, allocations: 2.797 MB / 449.2 MB, free: 30.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.2249, allocations: 0.7626 MB / 449.9 MB, free: 29.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.225, allocations: 43.11 kB / 450 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.888e-05/0.2251, allocations: 73.73 kB / 450 MB, free: 29.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2251, allocations: 0 / 450 MB, free: 29.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.237, allocations: 4.312 MB / 454.4 MB, free: 29.29 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.2372, allocations: 196.7 kB / 454.5 MB, free: 29.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.612/1.849, allocations: 0 / 454.5 MB, free: 29.03 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)