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.0008087/0.0008086, allocations: 97.78 kB / 16.02 MB, free: 76 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.0008552/0.0008552, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.304/1.304, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2106/0.2106, allocations: 22.33 MB / 314.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003287, allocations: 11.98 kB / 383.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2582, allocations: 55.97 MB / 439.2 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.001876/0.2602, allocations: 2.058 MB / 441.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009684/0.2611, allocations: 0.753 MB / 442 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2613, allocations: 10.03 kB / 442 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.2614, allocations: 32.77 kB / 442.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.2616, allocations: 41.27 kB / 442.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.2619, allocations: 160.9 kB / 442.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.2622, allocations: 302.1 kB / 442.6 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2624, allocations: 123.2 kB / 442.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.423e-05/0.2625, allocations: 84.64 kB / 442.8 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.452e-05/0.2626, allocations: 91.95 kB / 442.9 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.2626, allocations: 6.125 kB / 442.9 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.2626, allocations: 5.938 kB / 442.9 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.059e-05/0.2627, allocations: 38.09 kB / 442.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.689e-05/0.2627, allocations: 128.8 kB / 443 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.2629, allocations: 220.7 kB / 443.3 MB, free: 36.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.2629, allocations: 3.328 kB / 443.3 MB, free: 36.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2629, allocations: 0 / 443.3 MB, free: 36.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2629, allocations: 0 / 443.3 MB, free: 36.78 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.0005859/0.2635, allocations: 0.5528 MB / 443.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.2635, allocations: 17.31 kB / 443.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.402e-05/0.2636, allocations: 33.41 kB / 443.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.2639, allocations: 300.8 kB / 444.2 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.2639, allocations: 13.91 kB / 444.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.616e-05/0.2639, allocations: 21.06 kB / 444.2 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003733/0.2643, allocations: 269.6 kB / 444.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2643, allocations: 0 / 444.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.2644, allocations: 7.062 kB / 444.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.2644, allocations: 10.31 kB / 444.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003115/0.2647, allocations: 171.5 kB / 444.6 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.2658, allocations: 1.039 MB / 445.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.2662, allocations: 212.8 kB / 445.9 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.2663, allocations: 90.2 kB / 446 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.2664, allocations: 0 / 446 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.2664, allocations: 37.22 kB / 446 MB, free: 34.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.132e-06/0.2664, allocations: 0 / 446 MB, free: 34.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005201/0.2669, allocations: 264.1 kB / 446.3 MB, free: 34.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.267, allocations: 80.17 kB / 446.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.2672, allocations: 279.6 kB / 446.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.2672, allocations: 29.7 kB / 446.6 MB, free: 34.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.88e-05/0.2673, allocations: 180.2 kB / 446.8 MB, free: 34.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.2673, allocations: 62.48 kB / 446.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.2674, allocations: 27.72 kB / 446.9 MB, free: 34.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.481e-05/0.2674, allocations: 339.7 kB / 447.2 MB, free: 33.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.2676, allocations: 65.98 kB / 447.3 MB, free: 33.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.2677, allocations: 128.3 kB / 447.4 MB, free: 33.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000804/0.2685, allocations: 345.7 kB / 447.8 MB, free: 33.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2686, allocations: 0 / 447.8 MB, free: 33.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000384/0.2689, allocations: 246.2 kB / 448 MB, free: 33.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.31e-05/0.269, allocations: 136.7 kB / 448.1 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.269, allocations: 3.031 kB / 448.1 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.269, allocations: 3.094 kB / 448.1 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.2692, allocations: 46.38 kB / 448.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.2692, allocations: 14.23 kB / 448.2 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.2694, allocations: 28.72 kB / 448.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.2694, allocations: 7.875 kB / 448.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.859e-06/0.2694, allocations: 2.844 kB / 448.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002367/0.2696, allocations: 169.5 kB / 448.4 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-06/0.2697, allocations: 3 kB / 448.4 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.627e-06/0.2697, allocations: 10.88 kB / 448.4 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.2698, allocations: 41.75 kB / 448.5 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-06/0.2698, allocations: 2.906 kB / 448.5 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.2699, allocations: 17.28 kB / 448.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.2699, allocations: 5.219 kB / 448.5 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: 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 0.000191/0.2701, allocations: 232.5 kB / 448.7 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.474e-05/0.2702, allocations: 33.31 kB / 448.8 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.135e-05/0.2703, allocations: 26.89 kB / 448.8 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.2703, allocations: 3.469 kB / 448.8 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2703, allocations: 3.984 kB / 448.8 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2703, allocations: 3.234 kB / 448.8 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003622/0.2707, allocations: 340.1 kB / 449.1 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2707, allocations: 0 / 449.1 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001821/0.2709, allocations: 39.97 kB / 449.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2709, allocations: 3.938 kB / 449.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.2709, allocations: 6.969 kB / 449.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2709, allocations: 0 / 449.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2709, allocations: 0 / 449.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005024/0.2714, allocations: 401 kB / 449.6 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.2715, allocations: 119.2 kB / 449.7 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.2715, allocations: 2.812 kB / 449.7 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.2717, allocations: 12.7 kB / 449.7 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/0.2717, allocations: 12.73 kB / 449.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.2717, allocations: 2.844 kB / 449.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001245/0.2719, allocations: 194.5 kB / 449.9 MB, free: 32.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2719, allocations: 4 kB / 449.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003635/0.2722, allocations: 88.41 kB / 450 MB, free: 32.16 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 7.098e-05/0.2723, allocations: 98.16 kB / 450.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004516/0.2728, allocations: 273.5 kB / 450.4 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2728, allocations: 3.938 kB / 450.4 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.2729, allocations: 80.98 kB / 450.4 MB, free: 31.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004891/0.2734, allocations: 70.39 kB / 450.5 MB, free: 31.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007951/0.2742, allocations: 0.6772 MB / 451.2 MB, free: 31.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.2744, allocations: 0.7683 MB / 451.9 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-05/0.2745, allocations: 21.84 kB / 452 MB, free: 30.76 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2745, allocations: 0 / 452 MB, free: 30.76 MB / 350.1 MB Notification: Performance of Templates: time 0.004042/0.2785, allocations: 3.178 MB / 455.1 MB, free: 30.48 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)