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.001173/0.001173, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001148/0.001148, allocations: 191.2 kB / 16.25 MB, free: 6.645 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.171/1.171, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1698/0.1698, allocations: 22.37 MB / 312.5 MB, free: 12.64 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 59.91 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2038, allocations: 54.94 MB / 435.4 MB, free: 39.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002184/0.206, allocations: 1.968 MB / 437.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000673/0.2067, allocations: 0.5736 MB / 437.9 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.699e-05/0.2068, allocations: 6.719 kB / 437.9 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.207, allocations: 40.2 kB / 437.9 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.2071, allocations: 44.5 kB / 438 MB, free: 37.94 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.0001702/0.2073, allocations: 108.1 kB / 438.1 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002346/0.2076, allocations: 305.1 kB / 438.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2077, allocations: 57.77 kB / 438.4 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.964e-05/0.2078, allocations: 125 kB / 438.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.2079, allocations: 125.5 kB / 438.7 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.208, allocations: 16.75 kB / 438.7 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.438e-05/0.208, allocations: 18.81 kB / 438.7 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.094e-05/0.208, allocations: 63.78 kB / 438.8 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.68e-05/0.2081, allocations: 94.91 kB / 438.9 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.2082, allocations: 190.2 kB / 439.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2083, allocations: 2.75 kB / 439.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2083, allocations: 4 kB / 439.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2083, allocations: 0 / 439.1 MB, free: 37.45 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.0009671/0.2092, allocations: 0.5919 MB / 439.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.782e-05/0.2093, allocations: 8.5 kB / 439.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.31e-05/0.2093, allocations: 47.67 kB / 439.7 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.016e-05/0.2094, allocations: 27.81 kB / 439.7 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.2098, allocations: 308.6 kB / 440 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.2098, allocations: 20.66 kB / 440.1 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.2099, allocations: 23.33 kB / 440.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.2101, allocations: 205.9 kB / 440.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.2101, allocations: 0 / 440.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.2102, allocations: 10.81 kB / 440.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.2102, allocations: 2.781 kB / 440.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.2104, allocations: 160.1 kB / 440.5 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007301/0.2112, allocations: 0.7343 MB / 441.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003901/0.2116, allocations: 220.4 kB / 441.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.2117, allocations: 78.3 kB / 441.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.2117, allocations: 10.41 kB / 441.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.222e-05/0.2118, allocations: 41.02 kB / 441.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.192e-06/0.2118, allocations: 0 / 441.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004269/0.2122, allocations: 257.2 kB / 441.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.812e-05/0.2122, allocations: 62.41 kB / 441.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003868/0.2126, allocations: 294.5 kB / 442.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.2126, allocations: 25.7 kB / 442.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.2127, allocations: 147.5 kB / 442.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.2127, allocations: 70.2 kB / 442.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.41e-05/0.2128, allocations: 60.2 kB / 442.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.198e-05/0.2128, allocations: 331.4 kB / 442.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.213, allocations: 77.66 kB / 442.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.2131, allocations: 124.6 kB / 443 MB, free: 34.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.2142, allocations: 458.8 kB / 443.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2143, allocations: 0 / 443.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003421/0.2146, allocations: 284.1 kB / 443.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.2146, allocations: 5.344 kB / 443.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2146, allocations: 2.906 kB / 443.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.2147, allocations: 3.062 kB / 443.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.2149, allocations: 67.22 kB / 443.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.2149, allocations: 2.781 kB / 443.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.2151, allocations: 48.8 kB / 443.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.2152, allocations: 11.78 kB / 443.8 MB, free: 34.4 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.0001245/0.2153, allocations: 155 kB / 444 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.2153, allocations: 20.56 kB / 444 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003443/0.2157, allocations: 238.3 kB / 444.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2157, allocations: 6.969 kB / 444.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2157, allocations: 0 / 444.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2157, allocations: 0 / 444.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/0.2159, allocations: 302 kB / 444.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2159, allocations: 0 / 444.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/0.2162, allocations: 49.14 kB / 444.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2162, allocations: 2.781 kB / 444.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.2162, allocations: 7.938 kB / 444.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.2162, allocations: 2.875 kB / 444.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2162, allocations: 0 / 444.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.2167, allocations: 406 kB / 445 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.2167, allocations: 108.5 kB / 445.1 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.136e-05/0.2167, allocations: 3.938 kB / 445.1 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.217, allocations: 32.11 kB / 445.1 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.2171, allocations: 15.94 kB / 445.1 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.2171, allocations: 3.438 kB / 445.1 MB, free: 33.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003231/0.2174, allocations: 224.3 kB / 445.4 MB, free: 33.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2174, allocations: 3.938 kB / 445.4 MB, free: 33.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002476/0.2177, allocations: 35.03 kB / 445.4 MB, free: 33.39 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.0005409/0.2182, allocations: 0.9419 MB / 446.3 MB, free: 32.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003078/0.2185, allocations: 205.9 kB / 446.5 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2185, allocations: 0 / 446.5 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.2187, allocations: 96.41 kB / 446.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.219, allocations: 37.19 kB / 446.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.2218, allocations: 2.798 MB / 449.5 MB, free: 30.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/0.2219, allocations: 0.7588 MB / 450.2 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.222, allocations: 36.42 kB / 450.3 MB, free: 29.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.975e-05/0.2221, allocations: 83.25 kB / 450.3 MB, free: 29.88 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2221, allocations: 0 / 450.3 MB, free: 29.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01367/0.2358, allocations: 4.442 MB / 454.8 MB, free: 29.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/0.236, allocations: 201.8 kB / 455 MB, free: 29.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/1.892, allocations: 0 / 455 MB, free: 29.25 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)