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.001103/0.001103, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.001485/0.001485, allocations: 168.7 kB / 15.95 MB, free: 204 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.524/1.524, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2382/0.2382, allocations: 22.34 MB / 313.4 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003761/0.0003763, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3813, allocations: 55.98 MB / 437.9 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002126/0.3835, allocations: 1.971 MB / 439.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.3846, allocations: 0.7473 MB / 440.6 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.3848, allocations: 7.938 kB / 440.6 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001547/0.3849, allocations: 28.48 kB / 440.7 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.3851, allocations: 35.86 kB / 440.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.3854, allocations: 136.7 kB / 440.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002621/0.3857, allocations: 279.5 kB / 441.1 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.3859, allocations: 96 kB / 441.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.079e-05/0.386, allocations: 73.41 kB / 441.3 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.3861, allocations: 86.28 kB / 441.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.3862, allocations: 10.25 kB / 441.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.163e-05/0.3862, allocations: 8.25 kB / 441.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.067e-05/0.3862, allocations: 39.53 kB / 441.4 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.763e-05/0.3863, allocations: 67.7 kB / 441.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.3864, allocations: 209 kB / 441.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3865, allocations: 0 / 441.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3865, allocations: 0 / 441.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3865, allocations: 0 / 441.7 MB, free: 36.98 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.0006284/0.3871, allocations: 0.5536 MB / 442.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.3872, allocations: 8.344 kB / 442.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.541e-05/0.3872, allocations: 36.67 kB / 442.3 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.3875, allocations: 293.8 kB / 442.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.3876, allocations: 20.47 kB / 442.6 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.3876, allocations: 21.28 kB / 442.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004189/0.3881, allocations: 261.9 kB / 442.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.3881, allocations: 0 / 442.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.3881, allocations: 11.42 kB / 442.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.3881, allocations: 9.531 kB / 442.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00031/0.3884, allocations: 167.9 kB / 443 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.3897, allocations: 1.05 MB / 444.1 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003741/0.3901, allocations: 198.6 kB / 444.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.3903, allocations: 90.14 kB / 444.4 MB, free: 35.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.3903, allocations: 6.812 kB / 444.4 MB, free: 35.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.3903, allocations: 33.66 kB / 444.4 MB, free: 35.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.392e-06/0.3903, allocations: 7.938 kB / 444.4 MB, free: 35.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004957/0.3908, allocations: 256.4 kB / 444.7 MB, free: 34.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.3909, allocations: 80.11 kB / 444.8 MB, free: 34.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.3911, allocations: 275.9 kB / 445 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.3911, allocations: 29.7 kB / 445.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.925e-05/0.3912, allocations: 183.4 kB / 445.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.476e-05/0.3912, allocations: 56.88 kB / 445.3 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.158e-06/0.3913, allocations: 4 kB / 445.3 MB, free: 34.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.036e-05/0.3913, allocations: 346 kB / 445.6 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.3915, allocations: 64.14 kB / 445.7 MB, free: 34.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.3916, allocations: 128.1 kB / 445.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.3918, allocations: 80.53 kB / 445.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3918, allocations: 0 / 445.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003696/0.3922, allocations: 257.9 kB / 446.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/0.3922, allocations: 126.4 kB / 446.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3923, allocations: 6.641 kB / 446.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.3923, allocations: 7.281 kB / 446.3 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.3925, allocations: 46.64 kB / 446.3 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.3925, allocations: 3.062 kB / 446.3 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.3926, allocations: 20.84 kB / 446.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.3926, allocations: 8.969 kB / 446.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.951e-06/0.3926, allocations: 5.219 kB / 446.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002366/0.3929, allocations: 170.7 kB / 446.5 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-06/0.3929, allocations: 6.062 kB / 446.5 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.406e-06/0.3929, allocations: 2.906 kB / 446.5 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.393, allocations: 39.86 kB / 446.6 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.798e-06/0.3931, allocations: 6.969 kB / 446.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.224e-05/0.3931, allocations: 17.59 kB / 446.6 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.3932, allocations: 6.094 kB / 446.6 MB, free: 33.56 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.000221/0.3934, allocations: 225.9 kB / 446.8 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.3934, allocations: 36.94 kB / 446.9 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.297e-05/0.3935, allocations: 26.77 kB / 446.9 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3935, allocations: 6.844 kB / 446.9 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3935, allocations: 0 / 446.9 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.3935, allocations: 3.984 kB / 446.9 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003919/0.3939, allocations: 348.1 kB / 447.2 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.394, allocations: 3.938 kB / 447.3 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001895/0.3941, allocations: 43.2 kB / 447.3 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3942, allocations: 0 / 447.3 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.3942, allocations: 3.469 kB / 447.3 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3942, allocations: 0 / 447.3 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3942, allocations: 0 / 447.3 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004877/0.3947, allocations: 393.1 kB / 447.7 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.084e-05/0.3948, allocations: 125 kB / 447.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.342e-05/0.3948, allocations: 6.266 kB / 447.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.3949, allocations: 9.75 kB / 447.8 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.395, allocations: 11.62 kB / 447.8 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.098e-06/0.395, allocations: 7.094 kB / 447.8 MB, free: 32.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.3951, allocations: 190 kB / 448 MB, free: 32.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3952, allocations: 0 / 448 MB, free: 32.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.3955, allocations: 89.72 kB / 448.1 MB, free: 32.52 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 9.05e-05/0.3956, allocations: 94 kB / 448.2 MB, free: 32.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004477/0.3961, allocations: 266.3 kB / 448.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3961, allocations: 0 / 448.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.3962, allocations: 88.81 kB / 448.5 MB, free: 32.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004527/0.3967, allocations: 69.94 kB / 448.6 MB, free: 32.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007984/0.3975, allocations: 0.6063 MB / 449.2 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.3977, allocations: 0.7646 MB / 450 MB, free: 31.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.3978, allocations: 27.5 kB / 450 MB, free: 31.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/0.3979, allocations: 19.19 kB / 450 MB, free: 31.19 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3979, allocations: 3.938 kB / 450 MB, free: 31.19 MB / 350.1 MB Notification: Performance of Templates: time 0.004971/0.4028, allocations: 2.392 MB / 452.4 MB, free: 30.99 MB / 350.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)