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.000907/0.0009069, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005906/0.005906, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.332/1.332, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2299/0.2299, allocations: 22.35 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003316, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2348, allocations: 55.98 MB / 438.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.001196/0.2361, allocations: 0.9032 MB / 439.6 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.2375, allocations: 1.336 MB / 440.9 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.2377, allocations: 7.031 kB / 440.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003188/0.238, allocations: 69.95 kB / 441 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.2383, allocations: 93.52 kB / 441.1 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.2386, allocations: 153 kB / 441.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.2389, allocations: 458.7 kB / 441.7 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.239, allocations: 54.73 kB / 441.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.2392, allocations: 170.4 kB / 441.9 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.2395, allocations: 197.7 kB / 442.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.867e-05/0.2395, allocations: 9.531 kB / 442.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.054e-05/0.2395, allocations: 10.47 kB / 442.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.2396, allocations: 109.5 kB / 442.2 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.211e-05/0.2397, allocations: 133.2 kB / 442.4 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.24, allocations: 286.6 kB / 442.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.24, allocations: 0 / 442.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.24, allocations: 0 / 442.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.24, allocations: 2.875 kB / 442.6 MB, free: 37.08 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.001843/0.2418, allocations: 0.7724 MB / 443.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.2419, allocations: 11.91 kB / 443.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.515e-05/0.2419, allocations: 51.53 kB / 443.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.401e-05/0.242, allocations: 32.38 kB / 443.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009793/0.243, allocations: 461 kB / 444 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.243, allocations: 10.66 kB / 444 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.2431, allocations: 19.72 kB / 444 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.2434, allocations: 206.8 kB / 444.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2434, allocations: 0 / 444.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.2434, allocations: 6.688 kB / 444.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.2434, allocations: 2.688 kB / 444.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.2438, allocations: 214.5 kB / 444.4 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.2448, allocations: 0.7127 MB / 445.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005676/0.2454, allocations: 297.2 kB / 445.4 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.2455, allocations: 123.1 kB / 445.5 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.2456, allocations: 7.031 kB / 445.5 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.474e-05/0.2456, allocations: 37.28 kB / 445.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.492e-06/0.2456, allocations: 3.938 kB / 445.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001235/0.2468, allocations: 0.5963 MB / 446.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.2469, allocations: 54.5 kB / 446.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009549/0.2478, allocations: 478.2 kB / 446.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.2479, allocations: 29.7 kB / 446.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.913e-05/0.248, allocations: 172.7 kB / 446.9 MB, free: 34.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.57e-05/0.248, allocations: 82.75 kB / 447 MB, free: 34.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.2481, allocations: 29.81 kB / 447 MB, free: 34.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.871e-05/0.2481, allocations: 345.5 kB / 447.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.2483, allocations: 110.1 kB / 447.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.2485, allocations: 136.3 kB / 447.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.2504, allocations: 0.7032 MB / 448.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.2504, allocations: 6.5 kB / 448.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006557/0.2511, allocations: 421.1 kB / 448.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.2511, allocations: 5.969 kB / 448.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2511, allocations: 0 / 448.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002163/0.2514, allocations: 60.66 kB / 448.8 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002076/0.2516, allocations: 55.66 kB / 448.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.2527, allocations: 1.553 MB / 450.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004619/0.2532, allocations: 77.77 kB / 450.4 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.2532, allocations: 5.656 kB / 450.5 MB, free: 32.45 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.0001996/0.2534, allocations: 183.8 kB / 450.6 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.684e-05/0.2535, allocations: 32.41 kB / 450.7 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.2536, allocations: 47.34 kB / 450.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2536, allocations: 0 / 450.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.2536, allocations: 6.141 kB / 450.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2536, allocations: 0 / 450.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.2539, allocations: 388.3 kB / 451.1 MB, free: 31.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2539, allocations: 0 / 451.1 MB, free: 31.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.2542, allocations: 33.27 kB / 451.1 MB, free: 31.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.2543, allocations: 59.88 kB / 451.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.2544, allocations: 6.219 kB / 451.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009608/0.2553, allocations: 1.555 MB / 452.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2554, allocations: 2.531 kB / 452.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007585/0.2561, allocations: 0.584 MB / 453.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.2562, allocations: 121.1 kB / 453.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.2562, allocations: 10.56 kB / 453.5 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.2567, allocations: 67.91 kB / 453.5 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.221e-05/0.2568, allocations: 23.19 kB / 453.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.2568, allocations: 9.25 kB / 453.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008457/0.2577, allocations: 376.8 kB / 453.9 MB, free: 29.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2577, allocations: 0 / 453.9 MB, free: 29.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.258, allocations: 62.06 kB / 454 MB, free: 29.94 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.000932/0.259, allocations: 1.135 MB / 455.1 MB, free: 29.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005902/0.2596, allocations: 404 kB / 455.5 MB, free: 28.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2596, allocations: 0 / 455.5 MB, free: 28.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.2599, allocations: 272.3 kB / 455.8 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.2603, allocations: 55.09 kB / 455.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005785/0.2661, allocations: 3.838 MB / 459.7 MB, free: 26.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.2664, allocations: 0.8048 MB / 460.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.2665, allocations: 67.22 kB / 460.5 MB, free: 25.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.2667, allocations: 100.5 kB / 460.6 MB, free: 25.85 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2667, allocations: 0 / 460.6 MB, free: 25.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/0.2843, allocations: 6.22 MB / 466.9 MB, free: 25.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.2844, allocations: 244 kB / 467.1 MB, free: 25.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.147, allocations: 4 kB / 467.1 MB, free: 25.2 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)