Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.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_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",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.001134/0.001134, 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.001164/0.001164, allocations: 197.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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1917/0.1917, allocations: 22.34 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 67.88 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2527, allocations: 54.93 MB / 435.9 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.00254/0.2553, allocations: 2.006 MB / 437.9 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009002/0.2562, allocations: 0.6791 MB / 438.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.833e-05/0.2563, allocations: 5.281 kB / 438.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.2566, allocations: 80.83 kB / 438.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.2568, allocations: 93.89 kB / 438.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002512/0.2571, allocations: 162.8 kB / 438.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003049/0.2574, allocations: 450.1 kB / 439.3 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.2575, allocations: 78.95 kB / 439.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.2577, allocations: 179.2 kB / 439.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.2579, allocations: 207.3 kB / 439.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.841e-05/0.258, allocations: 25.25 kB / 439.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.01e-05/0.258, allocations: 27.78 kB / 439.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.2581, allocations: 100.1 kB / 439.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.205e-05/0.2582, allocations: 134.5 kB / 440.1 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000189/0.2584, allocations: 285.1 kB / 440.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2584, allocations: 0 / 440.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2584, allocations: 0 / 440.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.2584, allocations: 0 / 440.3 MB, free: 37.16 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001639/0.2601, allocations: 0.7704 MB / 441.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.2601, allocations: 12.56 kB / 441.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.295e-05/0.2602, allocations: 51.56 kB / 441.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/0.2602, allocations: 37.66 kB / 441.2 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008136/0.261, allocations: 421.2 kB / 441.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.2611, allocations: 14.42 kB / 441.6 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.533e-05/0.2611, allocations: 15.5 kB / 441.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.2614, allocations: 204.9 kB / 441.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.2614, allocations: 2.594 kB / 441.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.2615, allocations: 8 kB / 441.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2615, allocations: 3.781 kB / 441.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003203/0.2618, allocations: 202.1 kB / 442.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009583/0.2628, allocations: 0.7013 MB / 442.8 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/0.2634, allocations: 310.7 kB / 443.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.2636, allocations: 122.4 kB / 443.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.2636, allocations: 6.344 kB / 443.2 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.342e-05/0.2636, allocations: 41.09 kB / 443.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.2636, allocations: 4 kB / 443.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005897/0.2642, allocations: 361.8 kB / 443.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.275e-05/0.2643, allocations: 58.34 kB / 443.7 MB, free: 35.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008012/0.2651, allocations: 420.1 kB / 444.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.2651, allocations: 32.61 kB / 444.1 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.2652, allocations: 160.9 kB / 444.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.752e-05/0.2652, allocations: 88.64 kB / 444.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.795e-05/0.2653, allocations: 46.06 kB / 444.4 MB, free: 34.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.2654, allocations: 341.5 kB / 444.7 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.2655, allocations: 94.92 kB / 444.8 MB, free: 34.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.2657, allocations: 102.9 kB / 444.9 MB, free: 34.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002198/0.2679, allocations: 0.6636 MB / 445.6 MB, free: 34.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2679, allocations: 0 / 445.6 MB, free: 34.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004345/0.2683, allocations: 335.5 kB / 445.9 MB, free: 34.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.2684, allocations: 6.188 kB / 445.9 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2684, allocations: 3.938 kB / 445.9 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.2684, allocations: 0 / 445.9 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.2686, allocations: 51.25 kB / 446 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2687, allocations: 11.7 kB / 446 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.269, allocations: 57.55 kB / 446 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.2691, allocations: 10.5 kB / 446 MB, free: 34.12 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real CA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] CA2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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: 1 * 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 (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.2693, allocations: 173.9 kB / 446.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.729e-05/0.2693, allocations: 34.06 kB / 446.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005107/0.2698, allocations: 333.2 kB / 446.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2698, allocations: 2.656 kB / 446.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2699, allocations: 2.938 kB / 446.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2699, allocations: 3.469 kB / 446.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000321/0.2702, allocations: 370.3 kB / 446.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2702, allocations: 7.938 kB / 446.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002918/0.2705, allocations: 43.41 kB / 447 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.2705, allocations: 2.906 kB / 447 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.2705, allocations: 10.64 kB / 447 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.2705, allocations: 0 / 447 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2706, allocations: 0 / 447 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005945/0.2712, allocations: 0.5217 MB / 447.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.2712, allocations: 114.5 kB / 447.6 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.707e-05/0.2713, allocations: 10.38 kB / 447.6 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004046/0.2717, allocations: 53.38 kB / 447.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.2718, allocations: 18.44 kB / 447.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.2718, allocations: 5.375 kB / 447.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000675/0.2725, allocations: 329.9 kB / 448 MB, free: 32.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2725, allocations: 0 / 448 MB, free: 32.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.2728, allocations: 59.09 kB / 448.1 MB, free: 32.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y,CA2.x_scaled[1],CA1.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 (26): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000785/0.2735, allocations: 1.067 MB / 449.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004351/0.274, allocations: 289.8 kB / 449.5 MB, free: 32.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.274, allocations: 0 / 449.5 MB, free: 32.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.2742, allocations: 124.3 kB / 449.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.2746, allocations: 64.39 kB / 449.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004732/0.2794, allocations: 3.386 MB / 453 MB, free: 30.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.2796, allocations: 0.7998 MB / 453.8 MB, free: 29.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.2798, allocations: 67.09 kB / 453.9 MB, free: 29.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.2799, allocations: 102.8 kB / 454 MB, free: 29.33 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2799, allocations: 3.219 kB / 454 MB, free: 29.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.3043, allocations: 6.026 MB / 460 MB, free: 28.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.346/7.65, allocations: 11.59 kB / 460 MB, free: 28.71 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe 2>&1)