Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.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.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",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.001105/0.001105, allocations: 108 kB / 15.6 MB, free: 132 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.001328/0.001328, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2138/0.2138, allocations: 22.35 MB / 312.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.00125, allocations: 59.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2674, allocations: 54.94 MB / 435.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003025/0.2705, allocations: 2.376 MB / 438.2 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.2717, allocations: 0.7876 MB / 439 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.2718, allocations: 9.594 kB / 439 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.272, allocations: 48.92 kB / 439.1 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.2721, allocations: 51.88 kB / 439.1 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003801/0.2725, allocations: 184.2 kB / 439.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.2728, allocations: 320 kB / 439.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.273, allocations: 135.6 kB / 439.8 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.467e-05/0.2731, allocations: 110.4 kB / 439.9 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.2732, allocations: 114.3 kB / 440 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.004e-05/0.2733, allocations: 27.31 kB / 440 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.222e-05/0.2733, allocations: 25.59 kB / 440 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.187e-05/0.2734, allocations: 59.38 kB / 440.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.114e-05/0.2735, allocations: 139.5 kB / 440.2 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.2737, allocations: 291.9 kB / 440.5 MB, free: 36.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2737, allocations: 6.844 kB / 440.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2737, allocations: 0 / 440.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2737, allocations: 0 / 440.5 MB, free: 36.57 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0006709/0.2744, allocations: 0.6006 MB / 441.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.2744, allocations: 15.19 kB / 441.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/0.2745, allocations: 51.16 kB / 441.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.719e-05/0.2745, allocations: 39.09 kB / 441.2 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.2748, allocations: 299.3 kB / 441.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.2749, allocations: 21.44 kB / 441.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.563e-05/0.2749, allocations: 22 kB / 441.6 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003615/0.2753, allocations: 260.5 kB / 441.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2753, allocations: 6.719 kB / 441.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.2753, allocations: 8 kB / 441.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.2753, allocations: 5.625 kB / 441.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000301/0.2756, allocations: 158.3 kB / 442 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.2767, allocations: 1.05 MB / 443 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003577/0.2771, allocations: 187 kB / 443.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.2773, allocations: 85.19 kB / 443.3 MB, free: 34.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.2773, allocations: 4 kB / 443.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.2773, allocations: 38.44 kB / 443.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.2773, allocations: 0 / 443.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005085/0.2778, allocations: 252.3 kB / 443.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.2779, allocations: 80.3 kB / 443.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.2781, allocations: 280.2 kB / 443.9 MB, free: 34.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.2781, allocations: 25.7 kB / 444 MB, free: 34.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.266e-05/0.2782, allocations: 186.7 kB / 444.2 MB, free: 33.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.2782, allocations: 60.19 kB / 444.2 MB, free: 33.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.288e-05/0.2783, allocations: 46.59 kB / 444.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.808e-05/0.2784, allocations: 335.2 kB / 444.6 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.2785, allocations: 70.95 kB / 444.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.2787, allocations: 123 kB / 444.8 MB, free: 33.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007957/0.2795, allocations: 328.3 kB / 445.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2795, allocations: 4 kB / 445.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003828/0.2799, allocations: 247.7 kB / 445.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.2799, allocations: 5.906 kB / 445.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.2799, allocations: 0 / 445.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.2799, allocations: 2.938 kB / 445.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.2801, allocations: 45.52 kB / 445.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.2802, allocations: 6.938 kB / 445.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.2803, allocations: 23.62 kB / 445.4 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.2803, allocations: 6.125 kB / 445.4 MB, free: 33.13 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002743/0.2806, allocations: 166.3 kB / 445.6 MB, free: 33.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001077/0.2807, allocations: 101.8 kB / 445.7 MB, free: 32.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006029/0.2813, allocations: 298.1 kB / 446 MB, free: 32.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.405e-06/0.2813, allocations: 0 / 446 MB, free: 32.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0002897/0.2816, allocations: 228.2 kB / 446.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.174e-06/0.2816, allocations: 5.75 kB / 446.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/0.2816, allocations: 3.375 kB / 446.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.356e-06/0.2817, allocations: 7.062 kB / 446.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.2818, allocations: 35.97 kB / 446.3 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.2818, allocations: 6.719 kB / 446.3 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.2819, allocations: 17.44 kB / 446.3 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.282, allocations: 9.562 kB / 446.3 MB, free: 32.64 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 (PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.372e-05/0.282, allocations: 207.1 kB / 446.5 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.619e-05/0.2821, allocations: 27.59 kB / 446.5 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.084e-05/0.2822, allocations: 38.89 kB / 446.6 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2822, allocations: 0 / 446.6 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2822, allocations: 0 / 446.6 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.2822, allocations: 7.281 kB / 446.6 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003677/0.2826, allocations: 344.3 kB / 446.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2826, allocations: 0 / 446.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001899/0.2828, allocations: 30.47 kB / 446.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2828, allocations: 0 / 446.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.2828, allocations: 4 kB / 446.9 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2828, allocations: 2.938 kB / 446.9 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2828, allocations: 7.328 kB / 446.9 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.2833, allocations: 383.3 kB / 447.3 MB, free: 31.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.61e-05/0.2834, allocations: 116.7 kB / 447.4 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.2835, allocations: 10.39 kB / 447.4 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.2836, allocations: 9.281 kB / 447.5 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.378e-05/0.2837, allocations: 14.33 kB / 447.5 MB, free: 31.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.2837, allocations: 8.984 kB / 447.5 MB, free: 31.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001349/0.2838, allocations: 190.8 kB / 447.7 MB, free: 31.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2838, allocations: 0 / 447.7 MB, free: 31.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003963/0.2842, allocations: 84.22 kB / 447.7 MB, free: 31.62 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (F.y,S.y,T.y,PIp.I.y) * 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): 17 * 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.0006133/0.2848, allocations: 0.9111 MB / 448.7 MB, free: 30.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004714/0.2853, allocations: 269.9 kB / 448.9 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2853, allocations: 4.562 kB / 448.9 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.2855, allocations: 83.8 kB / 449 MB, free: 30.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/0.286, allocations: 78.91 kB / 449.1 MB, free: 30.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.2885, allocations: 2.669 MB / 451.7 MB, free: 28.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.2887, allocations: 0.7693 MB / 452.5 MB, free: 28.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.2888, allocations: 29.36 kB / 452.5 MB, free: 28.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.2889, allocations: 86.47 kB / 452.6 MB, free: 28.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2889, allocations: 0 / 452.6 MB, free: 28.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.3105, allocations: 5.498 MB / 458.1 MB, free: 27.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.356/7.667, allocations: 2.719 kB / 458.1 MB, free: 27.48 MB / 350.1 MB (rm -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_generator_models.SlidingPressure_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)