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.001141/0.001141, allocations: 108 kB / 15.61 MB, free: 152 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.001228/0.001228, allocations: 192.7 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1982/0.1982, allocations: 22.34 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 55.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2493, allocations: 54.95 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.0027/0.252, allocations: 1.957 MB / 437.8 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.253, allocations: 0.7147 MB / 438.5 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.2531, allocations: 2.906 kB / 438.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.2535, allocations: 84.19 kB / 438.6 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002248/0.2537, allocations: 101.9 kB / 438.7 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.2541, allocations: 187.4 kB / 438.9 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003547/0.2544, allocations: 492 kB / 439.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.2546, allocations: 69.11 kB / 439.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.2548, allocations: 203.4 kB / 439.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.255, allocations: 204.3 kB / 439.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.979e-05/0.2551, allocations: 24.31 kB / 439.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.253e-05/0.2552, allocations: 23.12 kB / 439.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.2553, allocations: 100.5 kB / 440 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.931e-05/0.2554, allocations: 121 kB / 440.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.2556, allocations: 265.5 kB / 440.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2556, allocations: 0 / 440.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2556, allocations: 3.938 kB / 440.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.2556, allocations: 3.422 kB / 440.4 MB, free: 37.01 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.001797/0.2574, allocations: 0.7812 MB / 441.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.2575, allocations: 11.22 kB / 441.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.2575, allocations: 47.62 kB / 441.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.674e-05/0.2576, allocations: 44.41 kB / 441.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008996/0.2585, allocations: 444.3 kB / 441.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.2585, allocations: 11.16 kB / 441.7 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.2586, allocations: 15.12 kB / 441.7 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.2588, allocations: 184.7 kB / 441.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2589, allocations: 0 / 441.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.2589, allocations: 4 kB / 441.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.2589, allocations: 11.56 kB / 441.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.2592, allocations: 190 kB / 442.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008722/0.2601, allocations: 0.641 MB / 442.8 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00071/0.2608, allocations: 341.2 kB / 443.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.261, allocations: 104.5 kB / 443.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.261, allocations: 3.031 kB / 443.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.371e-05/0.261, allocations: 34.5 kB / 443.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.261, allocations: 0 / 443.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001014/0.262, allocations: 0.5014 MB / 443.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.2621, allocations: 54.25 kB / 443.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008492/0.2629, allocations: 456.4 kB / 444.2 MB, free: 34.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.263, allocations: 29.7 kB / 444.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.263, allocations: 169.2 kB / 444.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.567e-05/0.2631, allocations: 74.94 kB / 444.5 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.2632, allocations: 50.14 kB / 444.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.804e-05/0.2632, allocations: 336.3 kB / 444.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.2634, allocations: 84.08 kB / 445 MB, free: 34.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.2635, allocations: 106.8 kB / 445.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.2648, allocations: 0.5187 MB / 445.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2648, allocations: 2.781 kB / 445.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004944/0.2653, allocations: 349.8 kB / 445.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.2653, allocations: 5.75 kB / 445.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2654, allocations: 0 / 445.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001724/0.2655, allocations: 48.42 kB / 446 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.2657, allocations: 33.53 kB / 446 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.2668, allocations: 1.618 MB / 447.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004121/0.2672, allocations: 73.12 kB / 447.7 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.2672, allocations: 9.688 kB / 447.7 MB, free: 32.39 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.0001985/0.2674, allocations: 165.3 kB / 447.9 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.551e-05/0.2675, allocations: 28.03 kB / 447.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.544e-05/0.2676, allocations: 42.53 kB / 447.9 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2676, allocations: 2.781 kB / 447.9 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.2676, allocations: 6.562 kB / 447.9 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.2676, allocations: 7.125 kB / 448 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003268/0.2679, allocations: 342.2 kB / 448.3 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2679, allocations: 0 / 448.3 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.2681, allocations: 33.41 kB / 448.3 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001363/0.2683, allocations: 53 kB / 448.4 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.2683, allocations: 9.938 kB / 448.4 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00092/0.2692, allocations: 1.609 MB / 450 MB, free: 30.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2692, allocations: 2.781 kB / 450 MB, free: 30.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006604/0.2699, allocations: 0.5138 MB / 450.5 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.47e-05/0.27, allocations: 115.5 kB / 450.6 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.27, allocations: 6.781 kB / 450.6 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000407/0.2704, allocations: 63.05 kB / 450.7 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.459e-05/0.2705, allocations: 19.97 kB / 450.7 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.2705, allocations: 6.719 kB / 450.7 MB, free: 29.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000757/0.2713, allocations: 364.6 kB / 451.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2713, allocations: 0 / 451.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003013/0.2716, allocations: 46.56 kB / 451.1 MB, free: 29.86 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.0007927/0.2724, allocations: 1.072 MB / 452.2 MB, free: 29.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005688/0.273, allocations: 367.2 kB / 452.5 MB, free: 28.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.273, allocations: 0 / 452.5 MB, free: 28.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002788/0.2733, allocations: 247.3 kB / 452.8 MB, free: 28.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004289/0.2737, allocations: 51.03 kB / 452.8 MB, free: 28.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/0.2788, allocations: 3.427 MB / 456.3 MB, free: 26.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.279, allocations: 0.7963 MB / 457.1 MB, free: 26.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.2792, allocations: 57.17 kB / 457.1 MB, free: 26.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2793, allocations: 93.5 kB / 457.2 MB, free: 25.98 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2793, allocations: 1.344 kB / 457.2 MB, free: 25.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.3059, allocations: 6.115 MB / 463.3 MB, free: 25.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.983/9.289, allocations: 18.5 kB / 463.3 MB, free: 25.35 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)