Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.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_simple_lead_lag,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag",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.001176/0.001176, allocations: 99.62 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.001331/0.001331, allocations: 177.3 kB / 15.95 MB, free: 216 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.545/1.545, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2598/0.2598, allocations: 22.35 MB / 313.3 MB, free: 13.19 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003596, allocations: 8 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3891, allocations: 55.97 MB / 437.9 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.001542/0.3907, allocations: 0.8671 MB / 438.8 MB, free: 38.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.3924, allocations: 1.326 MB / 440.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.3925, allocations: 3.938 kB / 440.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003766/0.3929, allocations: 64.34 kB / 440.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002218/0.3931, allocations: 94.72 kB / 440.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002921/0.3934, allocations: 133.3 kB / 440.4 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003035/0.3938, allocations: 262 kB / 440.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.3939, allocations: 46.03 kB / 440.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000271/0.3942, allocations: 220.2 kB / 440.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.3945, allocations: 189.6 kB / 441.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.804e-05/0.3945, allocations: 11.56 kB / 441.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.628e-05/0.3945, allocations: 11.22 kB / 441.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.3947, allocations: 91.3 kB / 441.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.032e-05/0.3948, allocations: 62.92 kB / 441.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.395, allocations: 212.2 kB / 441.5 MB, free: 36.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.395, allocations: 4 kB / 441.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.395, allocations: 0 / 441.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.395, allocations: 2.938 kB / 441.5 MB, free: 36.93 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.002049/0.3971, allocations: 0.7782 MB / 442.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.3971, allocations: 11.81 kB / 442.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.648e-05/0.3972, allocations: 48.94 kB / 442.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.372e-05/0.3973, allocations: 31.38 kB / 442.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.3983, allocations: 453.8 kB / 442.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.3983, allocations: 10.84 kB / 442.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.3984, allocations: 12.97 kB / 442.8 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.3987, allocations: 200.5 kB / 443 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.3987, allocations: 3.953 kB / 443 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.3987, allocations: 6.594 kB / 443 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3988, allocations: 2.594 kB / 443 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003442/0.3991, allocations: 224.8 kB / 443.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.4003, allocations: 0.7068 MB / 443.9 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006071/0.4009, allocations: 305.2 kB / 444.2 MB, free: 35.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.4009, allocations: 7.938 kB / 444.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.401, allocations: 38.38 kB / 444.3 MB, free: 35.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.242e-06/0.401, allocations: 0 / 444.3 MB, free: 35.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001286/0.4023, allocations: 0.5861 MB / 444.9 MB, free: 35.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.4023, allocations: 54.41 kB / 444.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009539/0.4033, allocations: 477.3 kB / 445.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.4033, allocations: 29.7 kB / 445.4 MB, free: 34.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.4034, allocations: 170.8 kB / 445.6 MB, free: 34.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.844e-05/0.4035, allocations: 84.53 kB / 445.7 MB, free: 34.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.4035, allocations: 3.938 kB / 445.7 MB, free: 34.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.506e-05/0.4036, allocations: 350.2 kB / 446 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.4038, allocations: 105.5 kB / 446.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.404, allocations: 132.4 kB / 446.2 MB, free: 34.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.4042, allocations: 135.4 kB / 446.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4042, allocations: 0 / 446.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006564/0.4048, allocations: 415.2 kB / 446.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.4049, allocations: 7.375 kB / 446.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4049, allocations: 2.969 kB / 446.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002861/0.4052, allocations: 59.28 kB / 446.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.4054, allocations: 45.08 kB / 446.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.4067, allocations: 1.556 MB / 448.4 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.4072, allocations: 78.12 kB / 448.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.4072, allocations: 6.031 kB / 448.5 MB, free: 32.52 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] H.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002667/0.4075, allocations: 189 kB / 448.7 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.307e-05/0.4075, allocations: 27.44 kB / 448.7 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.502e-05/0.4076, allocations: 49.48 kB / 448.8 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.4076, allocations: 2.812 kB / 448.8 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.4077, allocations: 0 / 448.8 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.4077, allocations: 3.328 kB / 448.8 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004272/0.4081, allocations: 373.3 kB / 449.2 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-06/0.4081, allocations: 0 / 449.2 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002265/0.4084, allocations: 37.72 kB / 449.2 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/0.4085, allocations: 59.08 kB / 449.3 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.4086, allocations: 10.81 kB / 449.3 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.4098, allocations: 1.561 MB / 450.8 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.4098, allocations: 15.81 kB / 450.8 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000851/0.4107, allocations: 0.5926 MB / 451.4 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.4108, allocations: 113.2 kB / 451.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.4108, allocations: 7.156 kB / 451.6 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000449/0.4113, allocations: 72.95 kB / 451.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.964e-05/0.4114, allocations: 21.94 kB / 451.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.4114, allocations: 5.719 kB / 451.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008853/0.4123, allocations: 379.3 kB / 452 MB, free: 30.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4123, allocations: 0 / 452 MB, free: 30.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003589/0.4127, allocations: 63.09 kB / 452.1 MB, free: 30 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],H.x_scaled[1],H.x_scaled[2],M.x_scaled[1],K.x_scaled[1],C.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00106/0.4137, allocations: 1.125 MB / 453.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006795/0.4144, allocations: 417.6 kB / 453.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4144, allocations: 0 / 453.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.4148, allocations: 263.5 kB / 453.9 MB, free: 28.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.4151, allocations: 44.28 kB / 453.9 MB, free: 28.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005143/0.4203, allocations: 2.736 MB / 456.6 MB, free: 27.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.4207, allocations: 0.8128 MB / 457.5 MB, free: 26.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.4209, allocations: 67.53 kB / 457.5 MB, free: 26.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.4211, allocations: 97.19 kB / 457.6 MB, free: 26.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.314e-06/0.4211, allocations: 0 / 457.6 MB, free: 26.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.4437, allocations: 6.339 MB / 464 MB, free: 26.36 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.4439, allocations: 212.7 kB / 464.2 MB, free: 26.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.251, allocations: 0 / 464.2 MB, free: 26.12 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1) Environment - environmentSimulation: