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.001171/0.001171, allocations: 107 kB / 16.36 MB, free: 6.285 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.001092/0.001092, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09157/0.09157, allocations: 22.33 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 65.42 kB / 382.2 MB, free: 41.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.1006, allocations: 54.96 MB / 437.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.004158/0.1048, allocations: 2.372 MB / 439.6 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.1067, allocations: 0.7831 MB / 440.3 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000421/0.1071, allocations: 11.94 kB / 440.4 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002769/0.1074, allocations: 51.47 kB / 440.4 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.1078, allocations: 47.47 kB / 440.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005714/0.1083, allocations: 179.6 kB / 440.6 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004753/0.1088, allocations: 323.8 kB / 440.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.1091, allocations: 128.2 kB / 441.1 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.1093, allocations: 111.4 kB / 441.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/0.1095, allocations: 123.3 kB / 441.3 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.778e-05/0.1095, allocations: 28 kB / 441.3 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.023e-05/0.1096, allocations: 31.94 kB / 441.4 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.382e-05/0.1096, allocations: 55.78 kB / 441.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.1098, allocations: 135.1 kB / 441.5 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003568/0.1101, allocations: 310.8 kB / 441.8 MB, free: 7.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1101, allocations: 0 / 441.8 MB, free: 7.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1101, allocations: 0 / 441.8 MB, free: 7.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.659e-06/0.1102, allocations: 0 / 441.8 MB, free: 7.734 MB / 318.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.0009301/0.1111, allocations: 0.6038 MB / 442.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1111, allocations: 8.031 kB / 442.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.29e-05/0.1112, allocations: 36.47 kB / 442.5 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004342/0.1117, allocations: 315.4 kB / 442.8 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.1117, allocations: 20.75 kB / 442.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.1118, allocations: 24.28 kB / 442.8 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004408/0.1122, allocations: 261.4 kB / 443.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1122, allocations: 4 kB / 443.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.1123, allocations: 12 kB / 443.1 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1123, allocations: 7.938 kB / 443.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.1126, allocations: 157.6 kB / 443.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.1141, allocations: 1.03 MB / 444.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.1146, allocations: 194 kB / 444.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.1147, allocations: 80.83 kB / 444.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.1148, allocations: 4 kB / 444.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.1148, allocations: 38.55 kB / 444.6 MB, free: 4.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.473e-06/0.1148, allocations: 0 / 444.6 MB, free: 4.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.000578/0.1154, allocations: 251.4 kB / 444.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.1155, allocations: 81.11 kB / 444.9 MB, free: 4.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.1157, allocations: 276.6 kB / 445.2 MB, free: 4.129 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.1158, allocations: 29.7 kB / 445.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.1159, allocations: 184 kB / 445.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.549e-05/0.116, allocations: 67.09 kB / 445.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.749e-05/0.1161, allocations: 41.7 kB / 445.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1162, allocations: 338.8 kB / 445.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.1164, allocations: 68.83 kB / 445.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1166, allocations: 121.9 kB / 446 MB, free: 3.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008976/0.1175, allocations: 338.4 kB / 446.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1175, allocations: 4 kB / 446.4 MB, free: 2.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004662/0.118, allocations: 241.2 kB / 446.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.118, allocations: 4 kB / 446.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.118, allocations: 4 kB / 446.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.118, allocations: 0 / 446.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.1182, allocations: 47.92 kB / 446.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.1183, allocations: 8.141 kB / 446.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.1184, allocations: 31.62 kB / 446.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.1184, allocations: 8 kB / 446.7 MB, free: 2.555 MB / 318.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.0002531/0.1187, allocations: 160.1 kB / 446.9 MB, free: 2.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001358/0.1188, allocations: 97.98 kB / 447 MB, free: 2.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006882/0.1195, allocations: 303.7 kB / 447.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.1196, allocations: 0 / 447.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003706/0.1199, allocations: 226.6 kB / 447.5 MB, free: 1.738 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.736e-06/0.1199, allocations: 4 kB / 447.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-06/0.12, allocations: 0 / 447.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.512e-06/0.12, allocations: 8.156 kB / 447.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.1201, allocations: 39.92 kB / 447.5 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.1201, allocations: 3.984 kB / 447.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.1203, allocations: 19.84 kB / 447.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.1203, allocations: 8 kB / 447.6 MB, free: 1.656 MB / 318.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.0001679/0.1205, allocations: 205.4 kB / 447.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.31e-05/0.1205, allocations: 23.72 kB / 447.8 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-05/0.1206, allocations: 38.31 kB / 447.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1206, allocations: 0 / 447.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.1206, allocations: 11.92 kB / 447.8 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1206, allocations: 0 / 447.8 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004856/0.1211, allocations: 345.3 kB / 448.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1211, allocations: 0 / 448.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.1213, allocations: 27.98 kB / 448.2 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1213, allocations: 0 / 448.2 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.1214, allocations: 12 kB / 448.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1214, allocations: 0 / 448.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1214, allocations: 4 kB / 448.2 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006032/0.122, allocations: 382.9 kB / 448.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.1221, allocations: 116.8 kB / 448.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/0.1222, allocations: 4 kB / 448.7 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.1223, allocations: 7.984 kB / 448.7 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.1224, allocations: 15.98 kB / 448.7 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.1224, allocations: 4 kB / 448.7 MB, free: 404 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001851/0.1226, allocations: 199 kB / 448.9 MB, free: 208 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1226, allocations: 0 / 448.9 MB, free: 208 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003928/0.123, allocations: 83.69 kB / 449 MB, free: 124 kB / 318.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.000125/0.1231, allocations: 99.25 kB / 449.1 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005456/0.1236, allocations: 264.2 kB / 449.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1237, allocations: 0 / 449.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.1238, allocations: 83.89 kB / 449.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.1243, allocations: 71.41 kB / 449.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009129/0.1252, allocations: 0.5289 MB / 450.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.1256, allocations: 0.7635 MB / 450.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.1257, allocations: 30.28 kB / 450.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.75e-05/0.1257, allocations: 23.44 kB / 450.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1257, allocations: 0 / 450.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of Templates: time 0.005823/0.1316, allocations: 2.625 MB / 453.5 MB, free: 11.61 MB / 334.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)