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.001172/0.001172, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001027/0.001027, allocations: 193.1 kB / 16.91 MB, free: 6.195 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.208/1.208, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08641/0.08641, allocations: 22.32 MB / 313.1 MB, free: 9.129 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 62.56 kB / 380.9 MB, free: 41.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.08216, allocations: 54.96 MB / 435.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.00353/0.08572, allocations: 2.41 MB / 438.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.08712, allocations: 0.7714 MB / 439.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000271/0.08741, allocations: 11.94 kB / 439.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.08762, allocations: 35.66 kB / 439.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.0878, allocations: 35.67 kB / 439.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.08827, allocations: 166.5 kB / 439.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003801/0.08866, allocations: 315.8 kB / 439.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.0889, allocations: 132.2 kB / 439.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.08903, allocations: 111.5 kB / 439.8 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.08919, allocations: 127.2 kB / 440 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.121e-05/0.08924, allocations: 24 kB / 440 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.486e-05/0.08928, allocations: 24 kB / 440 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.95e-05/0.08933, allocations: 59.77 kB / 440.1 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.08944, allocations: 135.1 kB / 440.2 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.08969, allocations: 227.9 kB / 440.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.0897, allocations: 0 / 440.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08971, allocations: 0 / 440.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.158e-06/0.08972, allocations: 4 kB / 440.4 MB, free: 8.941 MB / 318.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.0008048/0.09053, allocations: 0.596 MB / 441 MB, free: 8.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.09057, allocations: 12.03 kB / 441 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.23e-05/0.09065, allocations: 36.47 kB / 441.1 MB, free: 8.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.091, allocations: 307.4 kB / 441.4 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.09102, allocations: 16.81 kB / 441.4 MB, free: 7.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.09107, allocations: 28.28 kB / 441.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004284/0.09151, allocations: 257.3 kB / 441.7 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.09153, allocations: 4 kB / 441.7 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.09156, allocations: 12 kB / 441.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.09158, allocations: 8 kB / 441.7 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003106/0.09189, allocations: 153.6 kB / 441.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.09318, allocations: 1.038 MB / 442.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003761/0.09357, allocations: 194.8 kB / 443.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.09373, allocations: 80.83 kB / 443.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.09376, allocations: 0 / 443.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.09379, allocations: 42.56 kB / 443.2 MB, free: 5.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.074e-06/0.09379, allocations: 0 / 443.2 MB, free: 5.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005214/0.09432, allocations: 255.4 kB / 443.4 MB, free: 5.727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.09437, allocations: 85.05 kB / 443.5 MB, free: 5.625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.09461, allocations: 272.6 kB / 443.8 MB, free: 5.344 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.09463, allocations: 29.7 kB / 443.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.09475, allocations: 180.1 kB / 444 MB, free: 5.129 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.441e-05/0.0948, allocations: 67.09 kB / 444.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.222e-05/0.09489, allocations: 45.7 kB / 444.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.09501, allocations: 342.8 kB / 444.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.09516, allocations: 64.83 kB / 444.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.09534, allocations: 125.8 kB / 444.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008107/0.09616, allocations: 325.6 kB / 444.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.09617, allocations: 0 / 444.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004102/0.09658, allocations: 248.4 kB / 445.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.09661, allocations: 7.984 kB / 445.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.09662, allocations: 4 kB / 445.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.09664, allocations: 0 / 445.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.09683, allocations: 47.86 kB / 445.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.09684, allocations: 0 / 445.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.09698, allocations: 35.67 kB / 445.3 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.097, allocations: 4.156 kB / 445.3 MB, free: 3.777 MB / 318.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.0002749/0.09728, allocations: 168.1 kB / 445.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000125/0.09741, allocations: 97.98 kB / 445.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000656/0.09807, allocations: 303.8 kB / 445.8 MB, free: 3.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.09809, allocations: 0 / 445.8 MB, free: 3.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003166/0.09841, allocations: 218.6 kB / 446.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.665e-06/0.09842, allocations: 4 kB / 446.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.09843, allocations: 7.984 kB / 446.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-06/0.09844, allocations: 4 kB / 446.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.09859, allocations: 39.92 kB / 446.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.0986, allocations: 0 / 446.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.09872, allocations: 24 kB / 446.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.09874, allocations: 12 kB / 446.1 MB, free: 2.871 MB / 318.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.0001365/0.09889, allocations: 203.1 kB / 446.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.947e-05/0.09894, allocations: 27.66 kB / 446.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.471e-05/0.09901, allocations: 34.31 kB / 446.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.09902, allocations: 3.984 kB / 446.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.09903, allocations: 4 kB / 446.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.09904, allocations: 4 kB / 446.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004468/0.09949, allocations: 341.3 kB / 446.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.0995, allocations: 0 / 446.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001869/0.09969, allocations: 31.97 kB / 446.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.09971, allocations: 0 / 446.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.09973, allocations: 8 kB / 446.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.09974, allocations: 0 / 446.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.09974, allocations: 3.938 kB / 446.8 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005677/0.1003, allocations: 378.9 kB / 447.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.109e-05/0.1004, allocations: 120.8 kB / 447.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.1005, allocations: 4 kB / 447.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.1006, allocations: 8 kB / 447.3 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.1006, allocations: 15.92 kB / 447.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.1007, allocations: 0 / 447.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001693/0.1008, allocations: 199.1 kB / 447.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1008, allocations: 0 / 447.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.1012, allocations: 87.67 kB / 447.6 MB, free: 1.344 MB / 318.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.0001171/0.1013, allocations: 103.2 kB / 447.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005095/0.1019, allocations: 264.4 kB / 448 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1019, allocations: 8.062 kB / 448 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.102, allocations: 75.91 kB / 448 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004864/0.1025, allocations: 80.52 kB / 448.1 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009242/0.1035, allocations: 0.6456 MB / 448.8 MB, free: 140 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.1038, allocations: 0.7675 MB / 449.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.15e-05/0.1039, allocations: 23.44 kB / 449.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1039, allocations: 4 kB / 449.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of Templates: time 0.00482/0.1087, allocations: 3.22 MB / 452.8 MB, free: 12.11 MB / 334.1 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.makefile (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)