Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",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.001382/0.001382, allocations: 108 kB / 15.61 MB, free: 148 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.001813/0.001814, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.337/1.337, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1945/0.1945, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 67.88 kB / 380.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.242, allocations: 54.93 MB / 435.9 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002542/0.2446, allocations: 1.97 MB / 437.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009842/0.2456, allocations: 0.7054 MB / 438.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.2457, allocations: 9.094 kB / 438.6 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00035/0.2461, allocations: 82.88 kB / 438.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.2463, allocations: 107.8 kB / 438.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.2467, allocations: 182.9 kB / 438.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.247, allocations: 496.1 kB / 439.4 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.2472, allocations: 64.44 kB / 439.5 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.2473, allocations: 199 kB / 439.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.2476, allocations: 207.4 kB / 439.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.596e-05/0.2476, allocations: 20.84 kB / 439.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.822e-05/0.2477, allocations: 23 kB / 439.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.204e-05/0.2478, allocations: 101.4 kB / 440 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.865e-05/0.2479, allocations: 123.3 kB / 440.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.2481, allocations: 267.2 kB / 440.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2481, allocations: 0 / 440.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2481, allocations: 6.656 kB / 440.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.2481, allocations: 0 / 440.4 MB, free: 37.05 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.00171/0.2498, allocations: 0.7884 MB / 441.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.2498, allocations: 8.938 kB / 441.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.2499, allocations: 47.64 kB / 441.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.234e-05/0.2499, allocations: 33.22 kB / 441.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008912/0.2508, allocations: 447.1 kB / 441.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.2509, allocations: 14.38 kB / 441.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.344e-05/0.2509, allocations: 15.28 kB / 441.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.2512, allocations: 182.5 kB / 441.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2512, allocations: 0 / 441.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.2512, allocations: 4 kB / 441.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.2513, allocations: 6.969 kB / 441.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003019/0.2516, allocations: 197 kB / 442.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000848/0.2524, allocations: 0.6471 MB / 442.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007127/0.2531, allocations: 335.2 kB / 443.1 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/0.2533, allocations: 107 kB / 443.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.2533, allocations: 2.906 kB / 443.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.309e-05/0.2533, allocations: 41.47 kB / 443.3 MB, free: 35.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.2534, allocations: 0 / 443.3 MB, free: 35.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001007/0.2544, allocations: 0.4983 MB / 443.7 MB, free: 35.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.989e-05/0.2544, allocations: 57.5 kB / 443.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008619/0.2553, allocations: 450.9 kB / 444.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.2553, allocations: 28.98 kB / 444.3 MB, free: 34.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.088e-05/0.2554, allocations: 161.4 kB / 444.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.757e-05/0.2554, allocations: 80.48 kB / 444.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.094e-05/0.2555, allocations: 42.19 kB / 444.6 MB, free: 34.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.256e-05/0.2555, allocations: 341.9 kB / 444.9 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.2557, allocations: 90.52 kB / 445 MB, free: 34.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.2558, allocations: 103.1 kB / 445.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.2572, allocations: 0.5213 MB / 445.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2572, allocations: 0 / 445.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004821/0.2577, allocations: 344.2 kB / 445.9 MB, free: 33.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.2577, allocations: 4.25 kB / 445.9 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2577, allocations: 2.312 kB / 445.9 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/0.2579, allocations: 55.39 kB / 446 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.258, allocations: 35.77 kB / 446 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009412/0.259, allocations: 1.611 MB / 447.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003981/0.2594, allocations: 69.91 kB / 447.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.2594, allocations: 2.875 kB / 447.7 MB, free: 32.44 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 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[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P.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: 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 (23): * Single equations (assignments): 22 * 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.0001488/0.2596, allocations: 169.1 kB / 447.9 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-05/0.2596, allocations: 32.16 kB / 447.9 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.038e-05/0.2597, allocations: 43.09 kB / 447.9 MB, free: 32.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2597, allocations: 11.92 kB / 448 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2597, allocations: 3.938 kB / 448 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2597, allocations: 3.938 kB / 448 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.26, allocations: 347.4 kB / 448.3 MB, free: 31.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.26, allocations: 2.719 kB / 448.3 MB, free: 31.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.2602, allocations: 26.34 kB / 448.3 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001437/0.2604, allocations: 53.84 kB / 448.4 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.2604, allocations: 10.06 kB / 448.4 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008581/0.2613, allocations: 1.61 MB / 450 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2613, allocations: 0 / 450 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006013/0.2619, allocations: 0.5089 MB / 450.5 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.974e-05/0.262, allocations: 118.1 kB / 450.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.885e-05/0.262, allocations: 9.859 kB / 450.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.2624, allocations: 60.14 kB / 450.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/0.2625, allocations: 20.91 kB / 450.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.2625, allocations: 2.438 kB / 450.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007642/0.2633, allocations: 360.3 kB / 451.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2633, allocations: 2.594 kB / 451.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.2636, allocations: 51.62 kB / 451.1 MB, free: 29.9 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],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 (17): * Single equations (assignments): 16 * 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.0007857/0.2644, allocations: 1.069 MB / 452.2 MB, free: 29.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005451/0.265, allocations: 372.9 kB / 452.6 MB, free: 28.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.265, allocations: 4.062 kB / 452.6 MB, free: 28.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002771/0.2652, allocations: 240.4 kB / 452.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.2657, allocations: 57.08 kB / 452.9 MB, free: 28.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004989/0.2707, allocations: 3.42 MB / 456.3 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00019/0.2709, allocations: 0.7939 MB / 457.1 MB, free: 26.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001391/0.271, allocations: 62.09 kB / 457.1 MB, free: 26.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.2711, allocations: 89.28 kB / 457.2 MB, free: 26.03 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2712, allocations: 1.469 kB / 457.2 MB, free: 26.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/0.2956, allocations: 6.123 MB / 463.3 MB, free: 25.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.107/9.402, allocations: 16.02 kB / 463.4 MB, free: 25.39 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)