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.0007943/0.0007943, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008938/0.0008938, allocations: 172.7 kB / 15.95 MB, free: 208 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.399/1.399, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2339/0.2339, allocations: 22.35 MB / 313.4 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004406/0.0004406, allocations: 8 kB / 382 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3059, allocations: 55.98 MB / 438 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.001612/0.3076, allocations: 1.56 MB / 439.6 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007955/0.3084, allocations: 0.5612 MB / 440.1 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/0.3085, allocations: 0 / 440.1 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00029/0.3088, allocations: 46.64 kB / 440.2 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.3089, allocations: 42.98 kB / 440.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.3091, allocations: 85.5 kB / 440.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002504/0.3094, allocations: 256.2 kB / 440.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.3095, allocations: 39.5 kB / 440.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.3097, allocations: 124.8 kB / 440.7 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.3098, allocations: 116.1 kB / 440.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.3099, allocations: 5.594 kB / 440.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.36e-05/0.3099, allocations: 8.312 kB / 440.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.247e-05/0.3099, allocations: 57 kB / 440.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.334e-05/0.31, allocations: 45.7 kB / 441 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.3101, allocations: 145.8 kB / 441.1 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3101, allocations: 0 / 441.1 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3101, allocations: 0 / 441.1 MB, free: 37.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3101, allocations: 0 / 441.1 MB, free: 37.41 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.001008/0.3112, allocations: 0.5571 MB / 441.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.3112, allocations: 15.48 kB / 441.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.3113, allocations: 52.86 kB / 441.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.3113, allocations: 23.97 kB / 441.7 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004456/0.3118, allocations: 304.5 kB / 442 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.3118, allocations: 11.62 kB / 442.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.3118, allocations: 26.78 kB / 442.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003001/0.3121, allocations: 196.4 kB / 442.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.3121, allocations: 3.953 kB / 442.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.3122, allocations: 7.031 kB / 442.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.3122, allocations: 3.969 kB / 442.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002869/0.3125, allocations: 156.8 kB / 442.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008459/0.3133, allocations: 0.7377 MB / 443.2 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004435/0.3138, allocations: 214.3 kB / 443.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.3139, allocations: 88.06 kB / 443.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.314, allocations: 3.344 kB / 443.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.314, allocations: 45.69 kB / 443.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.353e-06/0.314, allocations: 3.938 kB / 443.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005066/0.3145, allocations: 257.9 kB / 443.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.491e-05/0.3146, allocations: 54.34 kB / 443.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003967/0.315, allocations: 291.2 kB / 444.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.315, allocations: 32.52 kB / 444.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.008e-05/0.3151, allocations: 144.2 kB / 444.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.295e-05/0.3151, allocations: 74.95 kB / 444.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-05/0.3151, allocations: 7.688 kB / 444.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.907e-05/0.3152, allocations: 340.8 kB / 444.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.3153, allocations: 68.53 kB / 444.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.3155, allocations: 132.1 kB / 444.9 MB, free: 34.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.3157, allocations: 88.83 kB / 445 MB, free: 34.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3157, allocations: 0 / 445 MB, free: 34.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004023/0.3161, allocations: 281.2 kB / 445.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3161, allocations: 7.484 kB / 445.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3161, allocations: 2.75 kB / 445.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3161, allocations: 6.688 kB / 445.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.3164, allocations: 60.7 kB / 445.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.3164, allocations: 6.938 kB / 445.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.3166, allocations: 50 kB / 445.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.3167, allocations: 14.12 kB / 445.4 MB, free: 34.56 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.0001527/0.3168, allocations: 145.2 kB / 445.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/0.3169, allocations: 23.66 kB / 445.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000397/0.3173, allocations: 239 kB / 445.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3173, allocations: 2.75 kB / 445.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3173, allocations: 2.938 kB / 445.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.3173, allocations: 0 / 445.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000258/0.3176, allocations: 297.4 kB / 446.1 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3176, allocations: 0 / 446.1 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.3178, allocations: 57.92 kB / 446.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.3178, allocations: 0 / 446.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.3179, allocations: 2.906 kB / 446.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3179, allocations: 7.953 kB / 446.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3179, allocations: 0 / 446.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004591/0.3183, allocations: 405.2 kB / 446.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.169e-05/0.3184, allocations: 102.5 kB / 446.7 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.3184, allocations: 10.97 kB / 446.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.3187, allocations: 34.8 kB / 446.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.059e-05/0.3187, allocations: 19.28 kB / 446.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.3187, allocations: 2.844 kB / 446.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003149/0.3191, allocations: 225.8 kB / 446.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3191, allocations: 0 / 446.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002685/0.3193, allocations: 38.03 kB / 447 MB, free: 33.56 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.000631/0.32, allocations: 0.9409 MB / 447.9 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003235/0.3203, allocations: 189.5 kB / 448.1 MB, free: 32.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3203, allocations: 0 / 448.1 MB, free: 32.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.3205, allocations: 99.02 kB / 448.2 MB, free: 32.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.3208, allocations: 32.67 kB / 448.2 MB, free: 32.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.3234, allocations: 1.677 MB / 449.9 MB, free: 31.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.3236, allocations: 0.757 MB / 450.7 MB, free: 31.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.3237, allocations: 37.33 kB / 450.7 MB, free: 31.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.3239, allocations: 75.52 kB / 450.8 MB, free: 31.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3239, allocations: 0 / 450.8 MB, free: 31.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01375/0.3376, allocations: 4.221 MB / 455 MB, free: 30.79 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/0.3378, allocations: 182.9 kB / 455.2 MB, free: 30.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.128, allocations: 0 / 455.2 MB, free: 30.55 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: