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.004613/0.004613, allocations: 100.6 kB / 15.73 MB, free: 6.453 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.001147/0.001147, allocations: 184.8 kB / 16.67 MB, free: 6.367 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2037/0.2037, allocations: 22.35 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.75 kB / 436.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.08524, allocations: 54.96 MB / 491.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002695/0.08795, allocations: 2.39 MB / 493.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.08913, allocations: 0.7831 MB / 494.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.08929, allocations: 7.938 kB / 494.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.08946, allocations: 47.47 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.08959, allocations: 51.47 kB / 494.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003844/0.08998, allocations: 190.6 kB / 495 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002891/0.09028, allocations: 315.8 kB / 495.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.09049, allocations: 132.2 kB / 495.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.795e-05/0.0906, allocations: 107.5 kB / 495.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.09073, allocations: 119.3 kB / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.601e-05/0.09077, allocations: 28 kB / 495.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.98e-05/0.09081, allocations: 24 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.764e-05/0.09086, allocations: 59.72 kB / 495.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.426e-05/0.09096, allocations: 135.1 kB / 495.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002647/0.09123, allocations: 311.6 kB / 496.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.09124, allocations: 3.938 kB / 496.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09124, allocations: 0 / 496.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.09126, allocations: 4 kB / 496.2 MB, free: 13.07 MB / 366.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.0007206/0.09198, allocations: 0.5998 MB / 496.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.09202, allocations: 12.03 kB / 496.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.794e-05/0.09208, allocations: 50.73 kB / 496.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.545e-05/0.09214, allocations: 48.45 kB / 496.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003627/0.09251, allocations: 307.4 kB / 497.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.09253, allocations: 16.81 kB / 497.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.71e-05/0.09258, allocations: 28.36 kB / 497.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003927/0.09297, allocations: 257.2 kB / 497.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.09299, allocations: 7.938 kB / 497.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.09302, allocations: 8 kB / 497.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.09303, allocations: 8 kB / 497.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000329/0.09336, allocations: 153.6 kB / 497.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.09459, allocations: 1.034 MB / 498.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003814/0.09498, allocations: 194.8 kB / 498.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.09515, allocations: 80.83 kB / 499 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.09518, allocations: 4 kB / 499 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.0952, allocations: 38.5 kB / 499 MB, free: 10.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.09521, allocations: 0 / 499 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.000518/0.09573, allocations: 251.8 kB / 499.3 MB, free: 9.785 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.09579, allocations: 81.09 kB / 499.3 MB, free: 9.688 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.09603, allocations: 280.4 kB / 499.6 MB, free: 9.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.09605, allocations: 29.7 kB / 499.6 MB, free: 9.363 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.09616, allocations: 180.1 kB / 499.8 MB, free: 9.184 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.262e-05/0.09621, allocations: 59.11 kB / 499.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.657e-05/0.09628, allocations: 45.7 kB / 499.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.0964, allocations: 342.8 kB / 0.4885 GB, free: 8.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.09656, allocations: 68.81 kB / 0.4886 GB, free: 8.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.09674, allocations: 117.9 kB / 0.4887 GB, free: 8.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008283/0.09758, allocations: 327.1 kB / 0.489 GB, free: 8.188 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.09759, allocations: 3.938 kB / 0.489 GB, free: 8.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004116/0.09801, allocations: 246.4 kB / 0.4893 GB, free: 7.938 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.09803, allocations: 8.156 kB / 0.4893 GB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.09804, allocations: 4 kB / 0.4893 GB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.09806, allocations: 0 / 0.4893 GB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.09825, allocations: 47.91 kB / 0.4893 GB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.09827, allocations: 4 kB / 0.4893 GB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.09841, allocations: 23.83 kB / 0.4893 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.09843, allocations: 4 kB / 0.4894 GB, free: 7.848 MB / 366.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.0002225/0.09866, allocations: 164.1 kB / 0.4895 GB, free: 7.684 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001301/0.09879, allocations: 110.2 kB / 0.4896 GB, free: 7.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006454/0.09945, allocations: 302.4 kB / 0.4899 GB, free: 7.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.363e-06/0.09946, allocations: 0 / 0.4899 GB, free: 7.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003186/0.09978, allocations: 225.1 kB / 0.4901 GB, free: 7.023 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.103e-06/0.0998, allocations: 4 kB / 0.4901 GB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.09981, allocations: 4 kB / 0.4901 GB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-06/0.09981, allocations: 0 / 0.4901 GB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.09998, allocations: 43.92 kB / 0.4902 GB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.09999, allocations: 11.97 kB / 0.4902 GB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.1001, allocations: 11.84 kB / 0.4902 GB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.1001, allocations: 12 kB / 0.4902 GB, free: 6.938 MB / 366.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 0.0001085/0.1002, allocations: 205.7 kB / 0.4904 GB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.1003, allocations: 27.62 kB / 0.4904 GB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.215e-05/0.1004, allocations: 38.3 kB / 0.4905 GB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1004, allocations: 4 kB / 0.4905 GB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1004, allocations: 0 / 0.4905 GB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1004, allocations: 3.984 kB / 0.4905 GB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.1008, allocations: 341.3 kB / 0.4908 GB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1008, allocations: 4 kB / 0.4908 GB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.101, allocations: 31.98 kB / 0.4908 GB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.101, allocations: 4 kB / 0.4908 GB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1011, allocations: 3.984 kB / 0.4908 GB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1011, allocations: 0 / 0.4908 GB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1011, allocations: 0 / 0.4908 GB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005514/0.1016, allocations: 386.9 kB / 0.4912 GB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.1017, allocations: 120.7 kB / 0.4913 GB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.376e-05/0.1018, allocations: 3.984 kB / 0.4913 GB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.1019, allocations: 12 kB / 0.4913 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.381e-05/0.102, allocations: 7.984 kB / 0.4913 GB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.102, allocations: 7.938 kB / 0.4913 GB, free: 5.672 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.1021, allocations: 191.1 kB / 0.4915 GB, free: 5.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1022, allocations: 0 / 0.4915 GB, free: 5.488 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003636/0.1025, allocations: 83.69 kB / 0.4916 GB, free: 5.406 MB / 366.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.0007465/0.1033, allocations: 0.9172 MB / 0.4925 GB, free: 4.461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004892/0.1038, allocations: 266.3 kB / 0.4928 GB, free: 4.203 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1038, allocations: 0 / 0.4928 GB, free: 4.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001516/0.1039, allocations: 75.91 kB / 0.4928 GB, free: 4.129 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.1044, allocations: 74.88 kB / 0.4929 GB, free: 4.059 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.1073, allocations: 2.662 MB / 0.4955 GB, free: 1.281 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.1076, allocations: 0.7675 MB / 0.4963 GB, free: 500 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.1077, allocations: 30.28 kB / 0.4963 GB, free: 472 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.1079, allocations: 87.41 kB / 0.4964 GB, free: 384 kB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1079, allocations: 0 / 0.4964 GB, free: 384 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01914/0.127, allocations: 5.526 MB / 0.5018 GB, free: 10.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.408/7.535, allocations: 14.05 kB / 0.5018 GB, free: 10.94 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_SlidingPressure_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)