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.0009312/0.000931, allocations: 99.86 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.00101/0.00101, allocations: 177.3 kB / 15.94 MB, free: 228 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.424/1.424, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2208/0.2208, allocations: 22.34 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002663/0.0002667, allocations: 8 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2946, allocations: 55.97 MB / 437.9 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002532/0.2972, allocations: 1.98 MB / 439.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.2983, allocations: 0.7252 MB / 440.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.2985, allocations: 13.53 kB / 440.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.221e-05/0.2986, allocations: 22.45 kB / 440.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003592/0.2989, allocations: 74.11 kB / 440.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.2993, allocations: 148.2 kB / 440.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003819/0.2997, allocations: 207 kB / 441 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.2999, allocations: 95.78 kB / 441.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.967e-05/0.3, allocations: 76.23 kB / 441.2 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.3002, allocations: 90.73 kB / 441.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.3002, allocations: 5.781 kB / 441.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.885e-05/0.3003, allocations: 8.094 kB / 441.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.759e-05/0.3003, allocations: 36.27 kB / 441.4 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.329e-05/0.3004, allocations: 68.92 kB / 441.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.3006, allocations: 209.3 kB / 441.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3006, allocations: 0 / 441.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.3006, allocations: 0 / 441.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.3006, allocations: 2.938 kB / 441.6 MB, free: 36.82 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.0007152/0.3013, allocations: 0.5516 MB / 442.2 MB, free: 36.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3014, allocations: 13.16 kB / 442.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.688e-05/0.3014, allocations: 52 kB / 442.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.898e-05/0.3015, allocations: 34.59 kB / 442.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.3019, allocations: 292.4 kB / 442.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.3019, allocations: 12.94 kB / 442.6 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.3019, allocations: 31.12 kB / 442.6 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004102/0.3024, allocations: 259.8 kB / 442.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3024, allocations: 6.922 kB / 442.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.3024, allocations: 4 kB / 442.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.3024, allocations: 5.969 kB / 442.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.3027, allocations: 172.5 kB / 443 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.304, allocations: 1.04 MB / 444.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004301/0.3045, allocations: 212.7 kB / 444.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.3045, allocations: 3.031 kB / 444.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.3045, allocations: 33.28 kB / 444.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.233e-06/0.3046, allocations: 0 / 444.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005309/0.3051, allocations: 260.4 kB / 444.6 MB, free: 34.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.3051, allocations: 81.02 kB / 444.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.3054, allocations: 275 kB / 444.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.3054, allocations: 32.23 kB / 445 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.3055, allocations: 187.2 kB / 445.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.3056, allocations: 64.17 kB / 445.2 MB, free: 34.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.378e-06/0.3056, allocations: 0 / 445.2 MB, free: 34.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3057, allocations: 349.8 kB / 445.5 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.3059, allocations: 62.41 kB / 445.6 MB, free: 33.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.306, allocations: 126.2 kB / 445.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.3062, allocations: 79.06 kB / 445.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.3063, allocations: 3.531 kB / 445.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004884/0.3067, allocations: 252.7 kB / 446.1 MB, free: 33.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/0.3069, allocations: 0.5296 MB / 446.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3069, allocations: 3.031 kB / 446.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.3069, allocations: 6.812 kB / 446.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.3071, allocations: 48.44 kB / 446.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.3071, allocations: 6.484 kB / 446.7 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.3073, allocations: 26.95 kB / 446.7 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.3073, allocations: 5.938 kB / 446.7 MB, free: 33.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.484e-06/0.3073, allocations: 2.844 kB / 446.7 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002823/0.3076, allocations: 178.2 kB / 446.9 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-06/0.3076, allocations: 0 / 446.9 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.098e-06/0.3076, allocations: 2.875 kB / 446.9 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3078, allocations: 39.92 kB / 446.9 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.515e-06/0.3078, allocations: 0 / 446.9 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.3079, allocations: 25.27 kB / 446.9 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.3079, allocations: 6.406 kB / 446.9 MB, free: 32.97 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.000233/0.3081, allocations: 230.6 kB / 447.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.507e-05/0.3082, allocations: 34.42 kB / 447.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.626e-05/0.3083, allocations: 34.23 kB / 447.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3083, allocations: 3 kB / 447.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.3083, allocations: 0 / 447.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3083, allocations: 4 kB / 447.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.3087, allocations: 335.3 kB / 447.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3087, allocations: 0 / 447.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.3089, allocations: 38.62 kB / 447.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3089, allocations: 4 kB / 447.6 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.3089, allocations: 3.031 kB / 447.6 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.309, allocations: 3.938 kB / 447.6 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.309, allocations: 0 / 447.6 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005192/0.3095, allocations: 396 kB / 448 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.837e-05/0.3096, allocations: 128 kB / 448.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.3096, allocations: 0 / 448.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.3098, allocations: 10.94 kB / 448.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.3098, allocations: 12.75 kB / 448.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.3098, allocations: 7.094 kB / 448.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001401/0.31, allocations: 197 kB / 448.3 MB, free: 31.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.31, allocations: 0 / 448.3 MB, free: 31.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.3104, allocations: 83.19 kB / 448.4 MB, free: 31.93 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.0007002/0.3111, allocations: 0.925 MB / 449.3 MB, free: 31.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004849/0.3116, allocations: 262.7 kB / 449.6 MB, free: 31.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3116, allocations: 0 / 449.6 MB, free: 31.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.3117, allocations: 80.28 kB / 449.7 MB, free: 31.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003882/0.3121, allocations: 63.12 kB / 449.7 MB, free: 31.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.3144, allocations: 2.345 MB / 452.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.3147, allocations: 0.7746 MB / 452.9 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.3148, allocations: 28.2 kB / 452.9 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.3149, allocations: 92.19 kB / 453 MB, free: 28.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.315, allocations: 3.938 kB / 453 MB, free: 28.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01493/0.3299, allocations: 5.046 MB / 458 MB, free: 28.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/0.3301, allocations: 176.5 kB / 458.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.792/2.122, allocations: 3.938 kB / 458.2 MB, free: 27.98 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: