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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/AES main/package.mo): time 0.0728/0.0728, allocations: 17.69 MB / 33.63 MB, free: 1.777 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001261/0.00126, allocations: 180.8 kB / 38.91 MB, free: 24 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.4 MB / 249.5 MB, free: 2.426 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008755/0.0008751, allocations: 99.25 kB / 302.2 MB, free: 4.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005367/0.000537, allocations: 12 kB / 366.9 MB, free: 3.629 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3164, allocations: 51.99 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1117/0.4282, allocations: 81.05 MB / 500 MB, free: 7.219 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.4285, allocations: 79.91 kB / 0.4883 GB, free: 7.141 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01459/0.4431, allocations: 5.306 MB / 0.4935 GB, free: 1.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.923e-06/0.4431, allocations: 4 kB / 0.4935 GB, free: 1.816 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.913e-05/0.4432, allocations: 4 kB / 0.4935 GB, free: 1.812 MB / 362.7 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.001089/0.4443, allocations: 0.5653 MB / 0.4941 GB, free: 1.199 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.4443, allocations: 12.03 kB / 0.4941 GB, free: 1.188 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.4444, allocations: 36.5 kB / 0.4941 GB, free: 1.152 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.445, allocations: 327.6 kB / 0.4944 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.4451, allocations: 16.81 kB / 0.4945 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.4451, allocations: 24.38 kB / 0.4945 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.4456, allocations: 270 kB / 0.4947 GB, free: 468 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.4456, allocations: 0 / 0.4947 GB, free: 468 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.4457, allocations: 4 kB / 0.4947 GB, free: 464 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.4457, allocations: 8 kB / 0.4947 GB, free: 456 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003801/0.4461, allocations: 173.6 kB / 0.4949 GB, free: 284 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2815/0.7276, allocations: 1.032 MB / 0.4959 GB, free: 80.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005526/0.7282, allocations: 208.8 kB / 0.4961 GB, free: 80.9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002178/0.7284, allocations: 93.19 kB / 0.4962 GB, free: 80.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.73e-05/0.7285, allocations: 3.625 kB / 0.4962 GB, free: 80.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.7285, allocations: 35.5 kB / 0.4962 GB, free: 80.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 3.487e-06/0.7285, allocations: 0 / 0.4962 GB, free: 80.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.000763/0.7293, allocations: 265.8 kB / 0.4965 GB, free: 80.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.7294, allocations: 78.42 kB / 0.4966 GB, free: 80.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003759/0.7298, allocations: 276.3 kB / 0.4968 GB, free: 80.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.7298, allocations: 30.23 kB / 0.4969 GB, free: 80.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.7299, allocations: 183.8 kB / 0.497 GB, free: 80.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.353e-05/0.73, allocations: 66.59 kB / 0.4971 GB, free: 80.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-06/0.73, allocations: 1.219 kB / 0.4971 GB, free: 80.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.7301, allocations: 351.1 kB / 0.4974 GB, free: 80.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.7303, allocations: 67.97 kB / 0.4975 GB, free: 80.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.7305, allocations: 123 kB / 0.4976 GB, free: 80.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.7316, allocations: 352.5 kB / 0.498 GB, free: 80.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.7316, allocations: 0 / 0.498 GB, free: 80.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004973/0.7321, allocations: 261.8 kB / 0.4982 GB, free: 79.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.782e-05/0.7322, allocations: 133.9 kB / 0.4983 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.7322, allocations: 2.656 kB / 0.4983 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.7322, allocations: 2.031 kB / 0.4983 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.7325, allocations: 46.11 kB / 0.4984 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.7325, allocations: 11.91 kB / 0.4984 GB, free: 79.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.7327, allocations: 27.89 kB / 0.4984 GB, free: 79.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.306e-05/0.7327, allocations: 10 kB / 0.4984 GB, free: 79.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.7327, allocations: 3.531 kB / 0.4984 GB, free: 79.82 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003313/0.733, allocations: 169 kB / 0.4986 GB, free: 79.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/0.7331, allocations: 1.375 kB / 0.4986 GB, free: 79.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.043e-06/0.7331, allocations: 3.734 kB / 0.4986 GB, free: 79.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.7332, allocations: 40.34 kB / 0.4986 GB, free: 79.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.7333, allocations: 2.75 kB / 0.4986 GB, free: 79.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.7334, allocations: 26.42 kB / 0.4987 GB, free: 79.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.7334, allocations: 10.44 kB / 0.4987 GB, free: 79.81 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: T.y:VARIABLE(start = T.y_start fixed = true ) "Connector of Real output signal" type: Real F.y:VARIABLE(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.0002974/0.7337, allocations: 222.5 kB / 0.4989 GB, free: 79.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.515e-05/0.7338, allocations: 28 kB / 0.4989 GB, free: 79.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.549e-05/0.7338, allocations: 33.61 kB / 0.4989 GB, free: 79.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.7339, allocations: 1.375 kB / 0.4989 GB, free: 79.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.7339, allocations: 3.938 kB / 0.499 GB, free: 79.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.7339, allocations: 6.453 kB / 0.499 GB, free: 79.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005657/0.7345, allocations: 347.2 kB / 0.4993 GB, free: 79.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.7345, allocations: 0 / 0.4993 GB, free: 79.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002614/0.7347, allocations: 42.91 kB / 0.4993 GB, free: 79.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.7348, allocations: 1.062 kB / 0.4993 GB, free: 79.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.7348, allocations: 5.094 kB / 0.4993 GB, free: 79.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.7348, allocations: 0.75 kB / 0.4993 GB, free: 79.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.7348, allocations: 5.641 kB / 0.4993 GB, free: 79.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000649/0.7355, allocations: 392.8 kB / 0.4997 GB, free: 79.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.7356, allocations: 117 kB / 0.4998 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.7356, allocations: 5.891 kB / 0.4998 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.7358, allocations: 16.36 kB / 0.4999 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/0.7358, allocations: 10.67 kB / 0.4999 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.7358, allocations: 5.375 kB / 0.4999 GB, free: 79.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002039/0.7361, allocations: 196.1 kB / 0.5001 GB, free: 79.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7361, allocations: 0 / 0.5001 GB, free: 79.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004448/0.7365, allocations: 86.58 kB / 0.5001 GB, free: 79.03 MB / 362.7 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.0001263/0.7366, allocations: 112 kB / 0.5002 GB, free: 78.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005653/0.7372, allocations: 265.6 kB / 0.5005 GB, free: 78.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.7372, allocations: 0.625 kB / 0.5005 GB, free: 78.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.7374, allocations: 93.83 kB / 0.5006 GB, free: 78.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.738, allocations: 74.38 kB / 0.5007 GB, free: 78.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.7391, allocations: 0.6145 MB / 0.5013 GB, free: 78.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.7394, allocations: 0.7684 MB / 0.502 GB, free: 77.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.7395, allocations: 29.84 kB / 0.502 GB, free: 77.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.288e-05/0.7396, allocations: 20.44 kB / 0.5021 GB, free: 77.7 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.7396, allocations: 0 / 0.5021 GB, free: 77.7 MB / 362.7 MB Notification: Performance of Templates: time 0.007275/0.7469, allocations: 2.45 MB / 0.5044 GB, free: 77.51 MB / 362.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)