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.0009267/0.0009267, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.00114/0.00114, allocations: 172.7 kB / 15.95 MB, free: 208 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.387/1.387, allocations: 223.2 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2101/0.2101, allocations: 22.35 MB / 313.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006048/0.0006051, allocations: 8 kB / 382 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3187, allocations: 55.98 MB / 438 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002702/0.3214, allocations: 1.972 MB / 440 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.323, allocations: 0.7281 MB / 440.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000319/0.3234, allocations: 16.03 kB / 440.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.3236, allocations: 32.59 kB / 440.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001598/0.3238, allocations: 37.88 kB / 440.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/0.3242, allocations: 130.6 kB / 440.9 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003185/0.3245, allocations: 283.4 kB / 441.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.3248, allocations: 90.02 kB / 441.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.3249, allocations: 82.39 kB / 441.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.325, allocations: 88.06 kB / 441.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.658e-05/0.325, allocations: 5.25 kB / 441.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.197e-05/0.325, allocations: 12.06 kB / 441.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.986e-05/0.3251, allocations: 32.06 kB / 441.5 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.3251, allocations: 71.2 kB / 441.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.3253, allocations: 208.3 kB / 441.8 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3253, allocations: 4 kB / 441.8 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3253, allocations: 3.938 kB / 441.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.3253, allocations: 0 / 441.8 MB, free: 36.96 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.0006865/0.326, allocations: 0.5503 MB / 442.3 MB, free: 36.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3261, allocations: 10.22 kB / 442.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.69e-05/0.3261, allocations: 59.38 kB / 442.4 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.015e-05/0.3262, allocations: 32.72 kB / 442.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.3265, allocations: 289.3 kB / 442.7 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.3266, allocations: 18.69 kB / 442.7 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.5e-05/0.3266, allocations: 31.72 kB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.327, allocations: 255.4 kB / 443 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.327, allocations: 3.953 kB / 443 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.3271, allocations: 14.44 kB / 443 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.3271, allocations: 5.156 kB / 443 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002987/0.3274, allocations: 163.1 kB / 443.2 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.3285, allocations: 1.045 MB / 444.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/0.3289, allocations: 207.6 kB / 444.5 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.329, allocations: 84.64 kB / 444.5 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.329, allocations: 3.031 kB / 444.5 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.3291, allocations: 33.28 kB / 444.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.3291, allocations: 4 kB / 444.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004784/0.3296, allocations: 260.5 kB / 444.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.611e-05/0.3296, allocations: 84.02 kB / 444.9 MB, free: 34.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.3298, allocations: 279.3 kB / 445.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.3298, allocations: 28.67 kB / 445.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.781e-05/0.3299, allocations: 181.3 kB / 445.4 MB, free: 34.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.33, allocations: 63.41 kB / 445.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/0.33, allocations: 3.062 kB / 445.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.291e-05/0.33, allocations: 342.9 kB / 445.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.3302, allocations: 65.05 kB / 445.9 MB, free: 33.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.3303, allocations: 125.8 kB / 446 MB, free: 33.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.3305, allocations: 83.83 kB / 446.1 MB, free: 33.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3305, allocations: 0 / 446.1 MB, free: 33.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003566/0.3309, allocations: 256 kB / 446.3 MB, free: 33.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.615e-05/0.3309, allocations: 130.4 kB / 446.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3309, allocations: 10.91 kB / 446.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.3309, allocations: 2.906 kB / 446.5 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.3311, allocations: 42.64 kB / 446.5 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.3311, allocations: 6.094 kB / 446.5 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.3313, allocations: 23.44 kB / 446.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.3313, allocations: 5.781 kB / 446.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.32e-06/0.3313, allocations: 2.969 kB / 446.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002439/0.3315, allocations: 177.5 kB / 446.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-06/0.3316, allocations: 2.594 kB / 446.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.208e-06/0.3316, allocations: 2.531 kB / 446.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.3317, allocations: 39.97 kB / 446.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.3317, allocations: 2.812 kB / 446.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.633e-05/0.3318, allocations: 21.66 kB / 446.8 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.3318, allocations: 5.812 kB / 446.8 MB, free: 33.5 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.0002103/0.3321, allocations: 240.1 kB / 447 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.57e-05/0.3321, allocations: 27.59 kB / 447 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.129e-05/0.3322, allocations: 31.73 kB / 447.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.3322, allocations: 2.844 kB / 447.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3322, allocations: 0 / 447.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.3322, allocations: 3.469 kB / 447.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003681/0.3326, allocations: 343.4 kB / 447.4 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.3326, allocations: 0 / 447.4 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.3328, allocations: 38.36 kB / 447.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.3328, allocations: 0 / 447.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.3328, allocations: 6.875 kB / 447.5 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3328, allocations: 0 / 447.5 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3328, allocations: 0 / 447.5 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004812/0.3333, allocations: 394.6 kB / 447.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.3334, allocations: 124.1 kB / 448 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.302e-05/0.3334, allocations: 0 / 448 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.3336, allocations: 16.31 kB / 448 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.3336, allocations: 6.328 kB / 448 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.3336, allocations: 13.66 kB / 448 MB, free: 32.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000129/0.3337, allocations: 189.1 kB / 448.2 MB, free: 32.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3338, allocations: 0 / 448.2 MB, free: 32.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000368/0.3341, allocations: 84.69 kB / 448.3 MB, free: 32.46 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.0006162/0.3347, allocations: 0.9272 MB / 449.2 MB, free: 31.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004429/0.3352, allocations: 265.4 kB / 449.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3352, allocations: 0 / 449.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.3354, allocations: 81.98 kB / 449.5 MB, free: 31.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.3358, allocations: 69.75 kB / 449.6 MB, free: 31.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/0.3379, allocations: 1.6 MB / 451.2 MB, free: 30.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001663/0.3381, allocations: 0.7651 MB / 452 MB, free: 29.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.3382, allocations: 35.14 kB / 452 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.3383, allocations: 84.73 kB / 452.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3383, allocations: 0 / 452.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01834/0.3567, allocations: 5.074 MB / 457.2 MB, free: 29.49 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001263/0.3569, allocations: 180.3 kB / 457.3 MB, free: 29.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/2.173, allocations: 0 / 457.3 MB, free: 29.25 MB / 350.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/linux/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) Environment - environmentSimulation: