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.0007808/0.0007808, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0007919/0.000792, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.113/1.113, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1663/0.1663, allocations: 22.34 MB / 313.3 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003418, allocations: 8 kB / 381.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4251, allocations: 55.98 MB / 437.9 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.00163/0.4268, allocations: 1.569 MB / 439.5 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008746/0.4277, allocations: 0.5647 MB / 440 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.519e-05/0.4278, allocations: 0 / 440 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003031/0.4281, allocations: 36.89 kB / 440.1 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.4282, allocations: 47.73 kB / 440.1 MB, free: 37.84 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.0002051/0.4284, allocations: 84.84 kB / 440.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.4287, allocations: 173.1 kB / 440.4 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.4288, allocations: 46.02 kB / 440.4 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.429, allocations: 121.2 kB / 440.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.4291, allocations: 108.1 kB / 440.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.995e-05/0.4292, allocations: 9.344 kB / 440.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.47e-05/0.4292, allocations: 12.72 kB / 440.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.889e-05/0.4293, allocations: 48.62 kB / 440.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.947e-05/0.4293, allocations: 54.3 kB / 440.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.4294, allocations: 136.1 kB / 440.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4295, allocations: 4 kB / 440.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4295, allocations: 0 / 440.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.4295, allocations: 2.562 kB / 440.9 MB, free: 37.51 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.001072/0.4306, allocations: 0.5612 MB / 441.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.4306, allocations: 8.781 kB / 441.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.004e-05/0.4307, allocations: 55.7 kB / 441.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.434e-05/0.4307, allocations: 23.59 kB / 441.5 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000494/0.4312, allocations: 306.5 kB / 441.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.4312, allocations: 13.38 kB / 441.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.915e-05/0.4313, allocations: 21.78 kB / 441.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.4316, allocations: 188.9 kB / 442.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.4316, allocations: 7.188 kB / 442.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.4317, allocations: 6.469 kB / 442.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4317, allocations: 5.031 kB / 442.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/0.432, allocations: 157.9 kB / 442.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009316/0.4329, allocations: 0.7363 MB / 443 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004311/0.4334, allocations: 217.2 kB / 443.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.4334, allocations: 3.094 kB / 443.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.4334, allocations: 38.91 kB / 443.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.392e-06/0.4334, allocations: 0 / 443.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005007/0.4339, allocations: 272.1 kB / 443.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.434, allocations: 51.41 kB / 443.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004416/0.4344, allocations: 293.6 kB / 443.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.4344, allocations: 29.7 kB / 443.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/0.4345, allocations: 144 kB / 444 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.328e-05/0.4346, allocations: 77.78 kB / 444.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.229e-05/0.4346, allocations: 4 kB / 444.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.422e-05/0.4347, allocations: 332.4 kB / 444.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.4348, allocations: 73.08 kB / 444.5 MB, free: 35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.435, allocations: 128.8 kB / 444.6 MB, free: 34.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000165/0.4352, allocations: 86.3 kB / 444.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4352, allocations: 7.938 kB / 444.7 MB, free: 34.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003984/0.4356, allocations: 280 kB / 445 MB, free: 34.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.4356, allocations: 5.812 kB / 445 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.4356, allocations: 2.844 kB / 445 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.4356, allocations: 7.078 kB / 445 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.4359, allocations: 59.62 kB / 445 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.4359, allocations: 5.531 kB / 445 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.4361, allocations: 55.28 kB / 445.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.4362, allocations: 9.938 kB / 445.1 MB, free: 34.71 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: PI.xfb:VARIABLE(fixed = true ) type: Real P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C.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.HIsat,PI.LOsat,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001594/0.4363, allocations: 156.6 kB / 445.3 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.4364, allocations: 26.89 kB / 445.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003826/0.4368, allocations: 242.3 kB / 445.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4368, allocations: 7.016 kB / 445.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4368, allocations: 0 / 445.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4368, allocations: 0 / 445.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002565/0.4371, allocations: 296.2 kB / 445.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4371, allocations: 0 / 445.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/0.4373, allocations: 42.12 kB / 445.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.4373, allocations: 0 / 445.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.4374, allocations: 6.938 kB / 445.9 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4374, allocations: 4 kB / 445.9 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4374, allocations: 6.859 kB / 445.9 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000471/0.4379, allocations: 398.9 kB / 446.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.271e-05/0.4379, allocations: 101.1 kB / 446.4 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.438, allocations: 7.281 kB / 446.4 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.4382, allocations: 37.25 kB / 446.4 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.4383, allocations: 12.28 kB / 446.4 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.4383, allocations: 13.77 kB / 446.4 MB, free: 33.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003708/0.4387, allocations: 214.7 kB / 446.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4387, allocations: 2.562 kB / 446.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002745/0.439, allocations: 43.06 kB / 446.7 MB, free: 33.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007064/0.4397, allocations: 0.9352 MB / 447.6 MB, free: 32.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003612/0.4401, allocations: 198.2 kB / 447.8 MB, free: 32.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4401, allocations: 0 / 447.8 MB, free: 32.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.4402, allocations: 94.33 kB / 447.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.4405, allocations: 27.08 kB / 447.9 MB, free: 32.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.4433, allocations: 2.583 MB / 450.5 MB, free: 31.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.4437, allocations: 0.7573 MB / 451.3 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.4438, allocations: 45.02 kB / 451.3 MB, free: 30.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.444, allocations: 73.19 kB / 451.4 MB, free: 30.31 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.444, allocations: 4 kB / 451.4 MB, free: 30.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02507/0.469, allocations: 4.208 MB / 455.6 MB, free: 30.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.4693, allocations: 179.5 kB / 455.8 MB, free: 29.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/2.189, allocations: 0 / 455.8 MB, free: 29.78 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/linux/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) Environment - environmentSimulation: