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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1032/0.1032, allocations: 21.45 MB / 36.42 MB, free: 1.164 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009675/0.0009675, allocations: 181.8 kB / 42.65 MB, free: 3.988 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.4 MB / 254.1 MB, free: 15.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007208/0.0007207, allocations: 88.88 kB / 307.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003131, allocations: 8.344 kB / 373.3 MB, free: 59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1007, allocations: 52.97 MB / 426.2 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002128/0.1028, allocations: 1.986 MB / 428.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.1042, allocations: 0.7804 MB / 429 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002778/0.1045, allocations: 11.94 kB / 429 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.1047, allocations: 35.59 kB / 429 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.1048, allocations: 35.67 kB / 429.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.1053, allocations: 135.8 kB / 429.2 MB, free: 10 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00033/0.1056, allocations: 279.8 kB / 429.5 MB, free: 9.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.1058, allocations: 98.59 kB / 429.6 MB, free: 9.633 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.1059, allocations: 75.53 kB / 429.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.1061, allocations: 91.38 kB / 429.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.531e-05/0.1061, allocations: 4 kB / 429.7 MB, free: 9.465 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.557e-05/0.1061, allocations: 8 kB / 429.7 MB, free: 9.457 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.948e-05/0.1062, allocations: 35.78 kB / 429.8 MB, free: 9.422 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.414e-05/0.1062, allocations: 65.58 kB / 429.8 MB, free: 9.352 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.1064, allocations: 219.4 kB / 430.1 MB, free: 9.137 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1064, allocations: 0 / 430.1 MB, free: 9.137 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1064, allocations: 0 / 430.1 MB, free: 9.137 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.1064, allocations: 0 / 430.1 MB, free: 9.137 MB / 298.7 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.0007282/0.1072, allocations: 0.557 MB / 430.6 MB, free: 8.531 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.1072, allocations: 11.97 kB / 430.6 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.624e-05/0.1073, allocations: 35.62 kB / 430.7 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.1077, allocations: 294.2 kB / 431 MB, free: 8.156 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.1078, allocations: 20.44 kB / 431 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.1078, allocations: 24 kB / 431 MB, free: 8.113 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004437/0.1083, allocations: 257.2 kB / 431.2 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1083, allocations: 4 kB / 431.2 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.1083, allocations: 12 kB / 431.3 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1083, allocations: 4 kB / 431.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.1087, allocations: 161.6 kB / 431.4 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.11, allocations: 1.053 MB / 432.5 MB, free: 6.539 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.1104, allocations: 199.5 kB / 432.7 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.1106, allocations: 92.81 kB / 432.8 MB, free: 6.242 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.1106, allocations: 4 kB / 432.8 MB, free: 6.238 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.1107, allocations: 42.5 kB / 432.8 MB, free: 6.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.1107, allocations: 0 / 432.8 MB, free: 6.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005066/0.1112, allocations: 256 kB / 433.1 MB, free: 5.934 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.1112, allocations: 85.11 kB / 433.1 MB, free: 5.832 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.1114, allocations: 280.5 kB / 433.4 MB, free: 5.547 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1115, allocations: 29.7 kB / 433.4 MB, free: 5.512 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.448e-05/0.1115, allocations: 188 kB / 433.6 MB, free: 5.324 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.644e-05/0.1116, allocations: 63.05 kB / 433.7 MB, free: 5.262 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-06/0.1116, allocations: 0 / 433.7 MB, free: 5.262 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.908e-05/0.1117, allocations: 342.8 kB / 434 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.1118, allocations: 67.97 kB / 434.1 MB, free: 4.852 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.112, allocations: 114 kB / 434.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.1121, allocations: 88.42 kB / 434.3 MB, free: 4.633 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1121, allocations: 0 / 434.3 MB, free: 4.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003741/0.1125, allocations: 259.9 kB / 434.5 MB, free: 4.375 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.121e-05/0.1126, allocations: 129.5 kB / 434.7 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1126, allocations: 0 / 434.7 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.1126, allocations: 7.938 kB / 434.7 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.1128, allocations: 43.97 kB / 434.7 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.1128, allocations: 4 kB / 434.7 MB, free: 4.172 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.113, allocations: 27.73 kB / 434.7 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.113, allocations: 19.92 kB / 434.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.612e-06/0.113, allocations: 4 kB / 434.8 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000243/0.1132, allocations: 167.8 kB / 434.9 MB, free: 3.957 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/0.1133, allocations: 0 / 434.9 MB, free: 3.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.997e-06/0.1133, allocations: 4 kB / 434.9 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.1134, allocations: 43.88 kB / 435 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.1134, allocations: 0 / 435 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1135, allocations: 23.83 kB / 435 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.1136, allocations: 4 kB / 435 MB, free: 3.883 MB / 298.7 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.0002172/0.1138, allocations: 229.2 kB / 435.2 MB, free: 3.648 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.1138, allocations: 27.62 kB / 435.3 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.791e-05/0.1139, allocations: 34.36 kB / 435.3 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.1139, allocations: 7.953 kB / 435.3 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.1139, allocations: 0 / 435.3 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.1139, allocations: 3.984 kB / 435.3 MB, free: 3.574 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003834/0.1143, allocations: 341.4 kB / 435.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1143, allocations: 4 kB / 435.6 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.1145, allocations: 31.98 kB / 435.7 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1145, allocations: 0 / 435.7 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.1146, allocations: 15.92 kB / 435.7 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1146, allocations: 0 / 435.7 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1146, allocations: 7.891 kB / 435.7 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004934/0.1151, allocations: 392.7 kB / 436.1 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.865e-05/0.1151, allocations: 116.7 kB / 436.2 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.1152, allocations: 11.98 kB / 436.2 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1153, allocations: 8 kB / 436.2 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.1154, allocations: 15.98 kB / 436.2 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.1154, allocations: 7.953 kB / 436.2 MB, free: 2.559 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001334/0.1156, allocations: 191.1 kB / 436.4 MB, free: 2.375 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1156, allocations: 0 / 436.4 MB, free: 2.375 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003352/0.1159, allocations: 83.69 kB / 436.5 MB, free: 2.293 MB / 298.7 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 8.353e-05/0.116, allocations: 115 kB / 436.6 MB, free: 2.172 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004621/0.1165, allocations: 256.5 kB / 436.9 MB, free: 1.922 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1165, allocations: 4 kB / 436.9 MB, free: 1.918 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.1166, allocations: 80.53 kB / 437 MB, free: 1.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005106/0.1171, allocations: 79.39 kB / 437 MB, free: 1.762 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008914/0.118, allocations: 0.616 MB / 437.6 MB, free: 1.125 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.1182, allocations: 0.768 MB / 438.4 MB, free: 336 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.1184, allocations: 34.36 kB / 438.4 MB, free: 300 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.328e-05/0.1184, allocations: 19.44 kB / 438.5 MB, free: 280 kB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1184, allocations: 0 / 438.5 MB, free: 280 kB / 298.7 MB Notification: Performance of Templates: time 0.005302/0.1238, allocations: 2.38 MB / 440.8 MB, free: 13.89 MB / 314.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)