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.00152/0.00152, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002096/0.002096, allocations: 190.3 kB / 16.53 MB, free: 6.391 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1778/0.1778, allocations: 22.34 MB / 312.7 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.91 kB / 380.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2475, allocations: 54.95 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002882/0.2505, allocations: 2.371 MB / 438.2 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.2516, allocations: 0.7867 MB / 439 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.2517, allocations: 10.06 kB / 439 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.2519, allocations: 48.86 kB / 439.1 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.252, allocations: 45.72 kB / 439.1 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.2524, allocations: 184.5 kB / 439.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002401/0.2527, allocations: 324 kB / 439.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.2529, allocations: 134.4 kB / 439.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.237e-05/0.253, allocations: 110.1 kB / 439.9 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.2531, allocations: 124.8 kB / 440 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.197e-05/0.2532, allocations: 23.12 kB / 440 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.309e-05/0.2532, allocations: 26.31 kB / 440 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.249e-05/0.2533, allocations: 61.88 kB / 440.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.493e-05/0.2533, allocations: 133.5 kB / 440.2 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.2536, allocations: 290.2 kB / 440.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2536, allocations: 0 / 440.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2536, allocations: 0 / 440.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.2536, allocations: 3.938 kB / 440.5 MB, free: 36.64 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.0006882/0.2543, allocations: 0.5982 MB / 441.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2543, allocations: 9.156 kB / 441.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.328e-05/0.2544, allocations: 59.23 kB / 441.2 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.2545, allocations: 45.95 kB / 441.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.2547, allocations: 298.4 kB / 441.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.2548, allocations: 23.06 kB / 441.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.2548, allocations: 18.38 kB / 441.6 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003565/0.2552, allocations: 264.3 kB / 441.8 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.2552, allocations: 0 / 441.8 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.2552, allocations: 10.81 kB / 441.8 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.2552, allocations: 13.94 kB / 441.8 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000297/0.2555, allocations: 155.6 kB / 442 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.2566, allocations: 1.037 MB / 443 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.2569, allocations: 191.2 kB / 443.2 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.2571, allocations: 89.48 kB / 443.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.2571, allocations: 0 / 443.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.2571, allocations: 37.28 kB / 443.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.2571, allocations: 4 kB / 443.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005079/0.2577, allocations: 248.4 kB / 443.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.2577, allocations: 79.7 kB / 443.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.2579, allocations: 275.9 kB / 443.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.2579, allocations: 29.7 kB / 444 MB, free: 34.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.366e-05/0.258, allocations: 182 kB / 444.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.037e-05/0.258, allocations: 61.44 kB / 444.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.809e-05/0.2581, allocations: 49.12 kB / 444.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.156e-05/0.2582, allocations: 335.2 kB / 444.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.2583, allocations: 77.42 kB / 444.7 MB, free: 33.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.2584, allocations: 116.4 kB / 444.8 MB, free: 33.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007581/0.2592, allocations: 332 kB / 445.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2592, allocations: 0 / 445.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000362/0.2596, allocations: 248 kB / 445.3 MB, free: 33.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.2596, allocations: 2.812 kB / 445.3 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2596, allocations: 2.844 kB / 445.3 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.2596, allocations: 2.781 kB / 445.3 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.2598, allocations: 47.38 kB / 445.4 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.2598, allocations: 2.969 kB / 445.4 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.26, allocations: 23.89 kB / 445.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.26, allocations: 5.781 kB / 445.4 MB, free: 33.2 MB / 350.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.000239/0.2602, allocations: 166.8 kB / 445.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001035/0.2603, allocations: 101.3 kB / 445.7 MB, free: 33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005855/0.2609, allocations: 300.6 kB / 446 MB, free: 32.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.282e-06/0.261, allocations: 4 kB / 446 MB, free: 32.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0002756/0.2612, allocations: 218.3 kB / 446.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.392e-06/0.2612, allocations: 5.906 kB / 446.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-06/0.2613, allocations: 0 / 446.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-06/0.2613, allocations: 3.062 kB / 446.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.2614, allocations: 46.23 kB / 446.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.2614, allocations: 6.797 kB / 446.3 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.2616, allocations: 17.5 kB / 446.3 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.2616, allocations: 18.8 kB / 446.3 MB, free: 32.7 MB / 350.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 8.199e-05/0.2617, allocations: 215.1 kB / 446.5 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.44e-05/0.2617, allocations: 27.59 kB / 446.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.417e-05/0.2618, allocations: 31.34 kB / 446.6 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.2618, allocations: 3.562 kB / 446.6 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2618, allocations: 0 / 446.6 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2618, allocations: 3.938 kB / 446.6 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003604/0.2622, allocations: 349.6 kB / 446.9 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2622, allocations: 0 / 446.9 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.2624, allocations: 32.94 kB / 446.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2624, allocations: 3.156 kB / 446.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.2624, allocations: 4 kB / 446.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2624, allocations: 0 / 446.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2624, allocations: 0 / 446.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004791/0.2629, allocations: 382.6 kB / 447.3 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-05/0.263, allocations: 119.8 kB / 447.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.263, allocations: 4 kB / 447.4 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.2632, allocations: 9.344 kB / 447.4 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.2632, allocations: 13.06 kB / 447.5 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.2632, allocations: 6.938 kB / 447.5 MB, free: 31.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001259/0.2633, allocations: 196.9 kB / 447.7 MB, free: 31.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.2633, allocations: 4 kB / 447.7 MB, free: 31.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003698/0.2637, allocations: 88.22 kB / 447.7 MB, free: 31.68 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 (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.0006045/0.2643, allocations: 0.9018 MB / 448.6 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004742/0.2648, allocations: 277.3 kB / 448.9 MB, free: 30.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2648, allocations: 0 / 448.9 MB, free: 30.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.265, allocations: 80.67 kB / 449 MB, free: 30.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004976/0.2655, allocations: 83.34 kB / 449.1 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.268, allocations: 2.669 MB / 451.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/0.2681, allocations: 0.7682 MB / 452.5 MB, free: 28.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001337/0.2683, allocations: 30.33 kB / 452.5 MB, free: 28.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.2684, allocations: 85.48 kB / 452.6 MB, free: 28.16 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2684, allocations: 0 / 452.6 MB, free: 28.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.2908, allocations: 5.503 MB / 458.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.098/9.389, allocations: 5.219 kB / 458.1 MB, free: 27.54 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/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)