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.001159/0.001159, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001118/0.001118, allocations: 193.4 kB / 16.14 MB, free: 6.719 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.171/1.171, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1748/0.1748, allocations: 22.35 MB / 312.3 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 59.91 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.2011, allocations: 54.94 MB / 435.2 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.001767/0.2029, allocations: 1.256 MB / 436.4 MB, free: 38.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.2039, allocations: 1.351 MB / 437.8 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.941e-05/0.204, allocations: 2.906 kB / 437.8 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002574/0.2043, allocations: 69.73 kB / 437.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.2044, allocations: 92.33 kB / 437.9 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001964/0.2047, allocations: 157.8 kB / 438.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002654/0.2049, allocations: 454.9 kB / 438.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.205, allocations: 58.86 kB / 438.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.2052, allocations: 171.8 kB / 438.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.2054, allocations: 221.3 kB / 439 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.2054, allocations: 12.28 kB / 439 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.531e-05/0.2055, allocations: 15.31 kB / 439 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.981e-05/0.2055, allocations: 100.1 kB / 439.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.537e-05/0.2056, allocations: 121.3 kB / 439.2 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.2058, allocations: 283.1 kB / 439.5 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2058, allocations: 0 / 439.5 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.2058, allocations: 4 kB / 439.5 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.2058, allocations: 3.938 kB / 439.5 MB, free: 36.99 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.001647/0.2075, allocations: 0.8099 MB / 440.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.2075, allocations: 12.38 kB / 440.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.381e-05/0.2075, allocations: 51.67 kB / 440.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.823e-05/0.2076, allocations: 30.91 kB / 440.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008406/0.2084, allocations: 465.3 kB / 440.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.2085, allocations: 10.88 kB / 440.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.961e-05/0.2085, allocations: 17.19 kB / 440.9 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002556/0.2088, allocations: 206.8 kB / 441.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.2088, allocations: 0 / 441.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.2088, allocations: 4 kB / 441.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.2088, allocations: 3.156 kB / 441.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.2091, allocations: 211.3 kB / 441.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008623/0.21, allocations: 0.7101 MB / 442 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004893/0.2105, allocations: 302.6 kB / 442.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.2106, allocations: 123.8 kB / 442.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.2107, allocations: 2.875 kB / 442.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.045e-05/0.2107, allocations: 30.56 kB / 442.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.162e-06/0.2107, allocations: 0 / 442.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001093/0.2118, allocations: 0.5973 MB / 443 MB, free: 35.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.9e-05/0.2118, allocations: 57.84 kB / 443.1 MB, free: 35.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008301/0.2126, allocations: 472 kB / 443.6 MB, free: 34.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.2127, allocations: 29.7 kB / 443.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.2127, allocations: 165.5 kB / 443.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.2128, allocations: 88.91 kB / 443.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-05/0.2128, allocations: 45.73 kB / 443.9 MB, free: 34.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.533e-05/0.2129, allocations: 352.6 kB / 444.2 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.213, allocations: 111.7 kB / 444.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.2132, allocations: 134.7 kB / 444.5 MB, free: 34.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001799/0.215, allocations: 0.7003 MB / 445.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.215, allocations: 0 / 445.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005536/0.2156, allocations: 420.6 kB / 445.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.2156, allocations: 4.219 kB / 445.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.2156, allocations: 0 / 445.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.2158, allocations: 73.92 kB / 445.7 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001801/0.216, allocations: 43.09 kB / 445.7 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009325/0.2169, allocations: 1.549 MB / 447.2 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004107/0.2173, allocations: 78.14 kB / 447.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.2174, allocations: 9.344 kB / 447.3 MB, free: 32.33 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.0001411/0.2175, allocations: 182.4 kB / 447.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.131e-05/0.2176, allocations: 33 kB / 447.5 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.627e-05/0.2176, allocations: 48.91 kB / 447.6 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.2177, allocations: 6.406 kB / 447.6 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2177, allocations: 0 / 447.6 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.2177, allocations: 0 / 447.6 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.2179, allocations: 377.6 kB / 448 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.218, allocations: 192 / 448 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.2182, allocations: 40.95 kB / 448 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001542/0.2183, allocations: 61.34 kB / 448.1 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.2183, allocations: 6.938 kB / 448.1 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008299/0.2192, allocations: 1.548 MB / 449.6 MB, free: 30.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2192, allocations: 0 / 449.6 MB, free: 30.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006856/0.2199, allocations: 0.5885 MB / 450.2 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.358e-05/0.22, allocations: 117.4 kB / 450.3 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.22, allocations: 13.06 kB / 450.3 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/0.2204, allocations: 61.77 kB / 450.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.612e-05/0.2205, allocations: 23.92 kB / 450.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.2205, allocations: 2.594 kB / 450.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007161/0.2212, allocations: 377.6 kB / 450.8 MB, free: 29.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2212, allocations: 0 / 450.8 MB, free: 29.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.2215, allocations: 65.19 kB / 450.9 MB, free: 29.83 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.0007995/0.2223, allocations: 1.138 MB / 452 MB, free: 29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004896/0.2228, allocations: 404.2 kB / 452.4 MB, free: 28.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.2228, allocations: 0 / 452.4 MB, free: 28.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.2231, allocations: 264.3 kB / 452.6 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.2234, allocations: 62.17 kB / 452.7 MB, free: 28.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00481/0.2283, allocations: 3.799 MB / 456.5 MB, free: 26.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.2285, allocations: 0.8026 MB / 457.3 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.2286, allocations: 68.41 kB / 457.4 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.2287, allocations: 103.5 kB / 457.5 MB, free: 25.74 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2287, allocations: 0 / 457.5 MB, free: 25.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01656/0.2453, allocations: 6.358 MB / 463.8 MB, free: 25.23 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001438/0.2455, allocations: 252.4 kB / 464.1 MB, free: 24.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/1.97, allocations: 2.109 kB / 464.1 MB, free: 24.97 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)