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.001122/0.001122, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2066/0.2066, allocations: 22.35 MB / 312.7 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 67.89 kB / 380.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2475, allocations: 54.93 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002106/0.2496, allocations: 1.204 MB / 437.1 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.2509, allocations: 1.346 MB / 438.4 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.072e-05/0.251, allocations: 2.906 kB / 438.4 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.2513, allocations: 81.02 kB / 438.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.2515, allocations: 100.8 kB / 438.6 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.2518, allocations: 168.8 kB / 438.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003115/0.2521, allocations: 475.5 kB / 439.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.2522, allocations: 54.48 kB / 439.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.2524, allocations: 199.6 kB / 439.5 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.2526, allocations: 214.9 kB / 439.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.321e-05/0.2527, allocations: 27.83 kB / 439.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.034e-05/0.2527, allocations: 26.09 kB / 439.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.2528, allocations: 108.8 kB / 439.8 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.749e-05/0.2529, allocations: 138.4 kB / 440 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.2531, allocations: 300.7 kB / 440.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.2531, allocations: 2.781 kB / 440.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2531, allocations: 0 / 440.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.2532, allocations: 0 / 440.3 MB, free: 37.12 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.001888/0.255, allocations: 0.8077 MB / 441.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2551, allocations: 8.062 kB / 441.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.52e-05/0.2551, allocations: 47.81 kB / 441.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.429e-05/0.2552, allocations: 32.59 kB / 441.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000987/0.2562, allocations: 462.9 kB / 441.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.2562, allocations: 19.02 kB / 441.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.2563, allocations: 15.56 kB / 441.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.2566, allocations: 199.4 kB / 441.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.2566, allocations: 0 / 441.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.2566, allocations: 11.72 kB / 441.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.2566, allocations: 3.031 kB / 441.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.257, allocations: 217.1 kB / 442.1 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009892/0.258, allocations: 0.706 MB / 442.8 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005327/0.2585, allocations: 307.9 kB / 443.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.2587, allocations: 120.8 kB / 443.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.2587, allocations: 3.094 kB / 443.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.428e-05/0.2587, allocations: 37.38 kB / 443.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.402e-06/0.2587, allocations: 0 / 443.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00119/0.2599, allocations: 0.5969 MB / 443.8 MB, free: 35.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.219e-05/0.26, allocations: 54.34 kB / 443.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009546/0.2609, allocations: 472.2 kB / 444.4 MB, free: 34.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.2609, allocations: 25.7 kB / 444.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.356e-05/0.261, allocations: 168.6 kB / 444.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.906e-05/0.2611, allocations: 85.77 kB / 444.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.739e-05/0.2612, allocations: 46.98 kB / 444.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.183e-05/0.2612, allocations: 344.6 kB / 445 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.2614, allocations: 116.2 kB / 445.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.2615, allocations: 129.7 kB / 445.3 MB, free: 34.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001845/0.2634, allocations: 0.7102 MB / 446 MB, free: 34.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2634, allocations: 0 / 446 MB, free: 34.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006069/0.264, allocations: 417.4 kB / 446.4 MB, free: 33.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.264, allocations: 7.656 kB / 446.4 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2641, allocations: 0 / 446.4 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000208/0.2643, allocations: 65.05 kB / 446.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.2645, allocations: 47.39 kB / 446.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.2655, allocations: 1.656 MB / 448.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004507/0.266, allocations: 81.09 kB / 448.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.266, allocations: 13.28 kB / 448.2 MB, free: 32.35 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[2]: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] 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001705/0.2662, allocations: 189.8 kB / 448.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.917e-05/0.2663, allocations: 31.38 kB / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.181e-05/0.2664, allocations: 48.97 kB / 448.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2664, allocations: 2.281 kB / 448.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2664, allocations: 0 / 448.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2664, allocations: 7.219 kB / 448.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003049/0.2667, allocations: 382 kB / 448.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2667, allocations: 0 / 448.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.2669, allocations: 28.78 kB / 448.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001854/0.2671, allocations: 61.33 kB / 449 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/0.2671, allocations: 10.05 kB / 449 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009586/0.2681, allocations: 1.654 MB / 450.6 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2681, allocations: 0 / 450.6 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007159/0.2688, allocations: 0.5956 MB / 451.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.09e-05/0.2689, allocations: 117 kB / 451.3 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.269, allocations: 12.34 kB / 451.4 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/0.2695, allocations: 63.34 kB / 451.4 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/0.2695, allocations: 22.33 kB / 451.4 MB, free: 29.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2696, allocations: 5.25 kB / 451.4 MB, free: 29.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008501/0.2704, allocations: 373.5 kB / 451.8 MB, free: 29.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2704, allocations: 0 / 451.8 MB, free: 29.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003283/0.2708, allocations: 59.44 kB / 451.9 MB, free: 29.75 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008971/0.2717, allocations: 1.134 MB / 453 MB, free: 28.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006219/0.2723, allocations: 430.5 kB / 453.4 MB, free: 28.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2723, allocations: 0 / 453.4 MB, free: 28.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003043/0.2726, allocations: 278.9 kB / 453.7 MB, free: 28.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.2731, allocations: 56.44 kB / 453.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005827/0.2789, allocations: 3.724 MB / 457.5 MB, free: 26.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.2792, allocations: 0.8096 MB / 458.3 MB, free: 25.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001614/0.2793, allocations: 71.27 kB / 458.4 MB, free: 25.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.2795, allocations: 97.72 kB / 458.4 MB, free: 25.72 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2795, allocations: 1.312 kB / 458.4 MB, free: 25.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03784/0.3173, allocations: 6.664 MB / 465.1 MB, free: 25.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.034/9.351, allocations: 10.97 kB / 465.1 MB, free: 25.08 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/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)