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.0065/0.0065, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001385/0.001385, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.327/1.327, allocations: 222.9 MB / 240.5 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1977/0.1977, allocations: 22.35 MB / 313 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 67.91 kB / 380.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2358, allocations: 54.94 MB / 435.7 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002899/0.2387, allocations: 2.424 MB / 438.1 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.2398, allocations: 0.7601 MB / 438.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.24, allocations: 7.469 kB / 438.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.2402, allocations: 32.8 kB / 438.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.2403, allocations: 43.78 kB / 439 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003543/0.2407, allocations: 161.1 kB / 439.1 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002564/0.241, allocations: 298.5 kB / 439.4 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.2412, allocations: 129.5 kB / 439.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.594e-05/0.2413, allocations: 97.36 kB / 439.6 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.2414, allocations: 107.9 kB / 439.8 MB, free: 37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.384e-05/0.2414, allocations: 11.69 kB / 439.8 MB, free: 37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.909e-05/0.2415, allocations: 14.22 kB / 439.8 MB, free: 37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.854e-05/0.2415, allocations: 49.81 kB / 439.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.694e-05/0.2416, allocations: 129.7 kB / 440 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.2417, allocations: 210 kB / 440.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2418, allocations: 7.359 kB / 440.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2418, allocations: 2.688 kB / 440.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.2418, allocations: 0 / 440.2 MB, free: 36.79 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.000726/0.2425, allocations: 0.5989 MB / 440.8 MB, free: 36.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.2425, allocations: 11.53 kB / 440.8 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.816e-05/0.2426, allocations: 38.38 kB / 440.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.2429, allocations: 299.6 kB / 441.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.2429, allocations: 15.03 kB / 441.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.243, allocations: 20.38 kB / 441.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004107/0.2434, allocations: 265.7 kB / 441.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2434, allocations: 0 / 441.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.2434, allocations: 10.5 kB / 441.4 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.2435, allocations: 5.281 kB / 441.4 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003124/0.2438, allocations: 163.4 kB / 441.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.245, allocations: 1.04 MB / 442.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003627/0.2453, allocations: 199.2 kB / 442.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.2455, allocations: 87.5 kB / 442.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.2455, allocations: 0 / 442.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.529e-05/0.2456, allocations: 33.56 kB / 442.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.092e-06/0.2456, allocations: 0 / 442.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005253/0.2461, allocations: 253.4 kB / 443.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.2461, allocations: 79.89 kB / 443.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.2464, allocations: 281.3 kB / 443.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.2464, allocations: 29.7 kB / 443.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.73e-05/0.2465, allocations: 180 kB / 443.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/0.2465, allocations: 63.73 kB / 443.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.495e-05/0.2466, allocations: 48.55 kB / 443.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.846e-05/0.2466, allocations: 335.9 kB / 444.2 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.2468, allocations: 71.38 kB / 444.2 MB, free: 33.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.247, allocations: 117.5 kB / 444.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008189/0.2478, allocations: 341.5 kB / 444.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2478, allocations: 0 / 444.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000373/0.2482, allocations: 242.3 kB / 444.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.2482, allocations: 7.906 kB / 444.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2482, allocations: 0 / 444.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2482, allocations: 2.844 kB / 444.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.2484, allocations: 49.2 kB / 445 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.2484, allocations: 6.969 kB / 445 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.2486, allocations: 19.61 kB / 445 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.2486, allocations: 9.656 kB / 445 MB, free: 33.4 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.0002793/0.2489, allocations: 156.9 kB / 445.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001149/0.249, allocations: 105.7 kB / 445.3 MB, free: 33.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006398/0.2496, allocations: 305.2 kB / 445.6 MB, free: 33.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.263e-06/0.2497, allocations: 0 / 445.6 MB, free: 33.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0002966/0.25, allocations: 217.9 kB / 445.8 MB, free: 32.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.423e-06/0.25, allocations: 9.312 kB / 445.8 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-06/0.25, allocations: 2.781 kB / 445.8 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.907e-06/0.25, allocations: 6.594 kB / 445.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.2501, allocations: 34.8 kB / 445.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.2502, allocations: 14.7 kB / 445.9 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.2503, allocations: 15.59 kB / 445.9 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.2503, allocations: 6.219 kB / 445.9 MB, free: 32.91 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 9.009e-05/0.2504, allocations: 203.7 kB / 446.1 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.567e-05/0.2504, allocations: 32.28 kB / 446.1 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.894e-05/0.2505, allocations: 37.88 kB / 446.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2505, allocations: 4 kB / 446.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2505, allocations: 2.938 kB / 446.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2505, allocations: 0 / 446.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.2509, allocations: 341.8 kB / 446.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2509, allocations: 3.938 kB / 446.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.2511, allocations: 30.86 kB / 446.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2511, allocations: 6.812 kB / 446.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.2512, allocations: 4 kB / 446.5 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.2512, allocations: 6.875 kB / 446.5 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2512, allocations: 0 / 446.5 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004936/0.2517, allocations: 374.5 kB / 446.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.964e-05/0.2518, allocations: 122.3 kB / 447 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.399e-05/0.2518, allocations: 4 kB / 447 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.2519, allocations: 13.38 kB / 447 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.252, allocations: 12.77 kB / 447 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.252, allocations: 10.89 kB / 447.1 MB, free: 32.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001226/0.2521, allocations: 193.8 kB / 447.2 MB, free: 31.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2521, allocations: 0 / 447.2 MB, free: 31.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000365/0.2525, allocations: 84.44 kB / 447.3 MB, free: 31.89 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 8.013e-05/0.2526, allocations: 100.4 kB / 447.4 MB, free: 31.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004438/0.253, allocations: 262.1 kB / 447.7 MB, free: 31.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.2531, allocations: 2.812 kB / 447.7 MB, free: 31.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.2532, allocations: 79.11 kB / 447.8 MB, free: 31.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004628/0.2537, allocations: 73.73 kB / 447.8 MB, free: 31.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007883/0.2545, allocations: 0.641 MB / 448.5 MB, free: 31.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.2547, allocations: 0.7744 MB / 449.3 MB, free: 30.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.897e-05/0.2547, allocations: 22.94 kB / 449.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2547, allocations: 3.938 kB / 449.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of Templates: time 0.003992/0.2587, allocations: 3.222 MB / 452.5 MB, free: 30.17 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)