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: translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009226/0.0009227, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001037/0.001037, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2514/0.2514, allocations: 22.34 MB / 313.3 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004583/0.0004586, allocations: 12 kB / 381.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3712, allocations: 55.97 MB / 437.8 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002108/0.3734, allocations: 1.982 MB / 439.8 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.3745, allocations: 0.7226 MB / 440.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.3748, allocations: 13.72 kB / 440.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.215e-05/0.3748, allocations: 25.77 kB / 440.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.3751, allocations: 70.05 kB / 440.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.3755, allocations: 138.1 kB / 440.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.3758, allocations: 208.6 kB / 441 MB, free: 37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.376, allocations: 100.4 kB / 441.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.258e-05/0.3761, allocations: 76.98 kB / 441.1 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.3762, allocations: 89.3 kB / 441.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.3763, allocations: 13.48 kB / 441.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.683e-05/0.3763, allocations: 7.75 kB / 441.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.256e-05/0.3763, allocations: 35.09 kB / 441.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.685e-05/0.3764, allocations: 67.64 kB / 441.3 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.3766, allocations: 206.9 kB / 441.5 MB, free: 36.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3766, allocations: 0 / 441.5 MB, free: 36.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3766, allocations: 0 / 441.5 MB, free: 36.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.3766, allocations: 0 / 441.5 MB, free: 36.74 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.000696/0.3773, allocations: 0.5551 MB / 442.1 MB, free: 36.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.3773, allocations: 9.656 kB / 442.1 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.524e-05/0.3774, allocations: 31.25 kB / 442.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.3778, allocations: 286.7 kB / 442.4 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.3779, allocations: 17.06 kB / 442.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/0.3779, allocations: 27.19 kB / 442.5 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003975/0.3783, allocations: 251.7 kB / 442.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3783, allocations: 6.219 kB / 442.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.3784, allocations: 11.95 kB / 442.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.3784, allocations: 9.906 kB / 442.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.3787, allocations: 163.2 kB / 442.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.3799, allocations: 1.051 MB / 443.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003955/0.3803, allocations: 215.6 kB / 444.2 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.3803, allocations: 0 / 444.2 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.3804, allocations: 41.12 kB / 444.2 MB, free: 34.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.052e-06/0.3804, allocations: 0 / 444.2 MB, free: 34.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005058/0.3809, allocations: 256.9 kB / 444.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.3809, allocations: 81.05 kB / 444.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002051/0.3812, allocations: 281.1 kB / 444.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.3812, allocations: 29.7 kB / 444.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.3813, allocations: 180.3 kB / 445 MB, free: 34.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.3813, allocations: 62.73 kB / 445.1 MB, free: 34.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-06/0.3813, allocations: 10.66 kB / 445.1 MB, free: 34.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.59e-05/0.3814, allocations: 342.1 kB / 445.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.3815, allocations: 63.02 kB / 445.5 MB, free: 33.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.3817, allocations: 132.2 kB / 445.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.3819, allocations: 72.81 kB / 445.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3819, allocations: 2.75 kB / 445.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003838/0.3823, allocations: 257.6 kB / 445.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.3824, allocations: 0.5282 MB / 446.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3824, allocations: 4 kB / 446.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.3824, allocations: 3.031 kB / 446.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.3826, allocations: 46.81 kB / 446.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.527e-06/0.3826, allocations: 10.73 kB / 446.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.3828, allocations: 28.41 kB / 446.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.3828, allocations: 5.688 kB / 446.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.861e-06/0.3828, allocations: 2.594 kB / 446.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000314/0.3831, allocations: 169.6 kB / 446.7 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.3832, allocations: 2.969 kB / 446.7 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.598e-06/0.3832, allocations: 3.344 kB / 446.7 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.3834, allocations: 41.36 kB / 446.8 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.3834, allocations: 6.156 kB / 446.8 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.3836, allocations: 13.75 kB / 446.8 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.3836, allocations: 10.03 kB / 446.8 MB, free: 32.93 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real F.y:VARIABLE(flow=false start = F.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002877/0.3839, allocations: 232.9 kB / 447 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.741e-05/0.384, allocations: 30.84 kB / 447 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.869e-05/0.3841, allocations: 38.52 kB / 447.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3841, allocations: 0 / 447.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3841, allocations: 3.531 kB / 447.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3841, allocations: 0 / 447.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00055/0.3847, allocations: 340.2 kB / 447.4 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3847, allocations: 0 / 447.4 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002526/0.385, allocations: 33.67 kB / 447.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.385, allocations: 2.938 kB / 447.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.385, allocations: 7.938 kB / 447.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.385, allocations: 3.422 kB / 447.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.385, allocations: 2.781 kB / 447.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007314/0.3858, allocations: 388.8 kB / 447.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.3859, allocations: 124.3 kB / 448 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.228e-05/0.386, allocations: 10.97 kB / 448 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.3862, allocations: 12.72 kB / 448 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.083e-05/0.3862, allocations: 16.86 kB / 448 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.3863, allocations: 2.625 kB / 448 MB, free: 32.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002034/0.3865, allocations: 193.7 kB / 448.2 MB, free: 31.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3865, allocations: 0 / 448.2 MB, free: 31.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005981/0.3871, allocations: 83.84 kB / 448.3 MB, free: 31.89 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001446/0.3873, allocations: 101.6 kB / 448.4 MB, free: 31.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006679/0.3879, allocations: 260.2 kB / 448.6 MB, free: 31.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.3879, allocations: 0 / 448.6 MB, free: 31.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.3881, allocations: 88.12 kB / 448.7 MB, free: 31.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.3887, allocations: 59.67 kB / 448.8 MB, free: 31.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.3899, allocations: 0.6047 MB / 449.4 MB, free: 31.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.3901, allocations: 0.7724 MB / 450.2 MB, free: 30.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001616/0.3903, allocations: 30.39 kB / 450.2 MB, free: 30.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.193e-05/0.3904, allocations: 26.34 kB / 450.2 MB, free: 30.56 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3904, allocations: 0 / 450.2 MB, free: 30.56 MB / 350.1 MB Notification: Performance of Templates: time 0.00712/0.3975, allocations: 2.383 MB / 452.6 MB, free: 30.37 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.makefile Environment - environmentSimulation: (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 & ./AES_AES.Coursework.ElecSys_generator_models.SlidingPressure -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1) Environment - environmentSimulation: