Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") [/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.1547/0.1547, allocations: 21.44 MB / 36.4 MB, free: 1.23 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.001503/0.001503, allocations: 178.4 kB / 42.62 MB, free: 3.977 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.524/1.524, allocations: 205.4 MB / 254.1 MB, free: 15.22 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.001031/0.001031, allocations: 85.48 kB / 307.8 MB, free: 11.1 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003522, allocations: 12.22 kB / 373.2 MB, free: 59.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1209, allocations: 52.95 MB / 426.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002576/0.1235, allocations: 2.072 MB / 428.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.125, allocations: 0.8004 MB / 429 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003717/0.1254, allocations: 4 kB / 429 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004809/0.1259, allocations: 59.61 kB / 429.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000458/0.1264, allocations: 139.5 kB / 429.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.1269, allocations: 151.7 kB / 429.4 MB, free: 9.941 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005902/0.1275, allocations: 316 kB / 429.7 MB, free: 9.633 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.1277, allocations: 110.9 kB / 429.8 MB, free: 9.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000388/0.1281, allocations: 199.2 kB / 430 MB, free: 9.324 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.1285, allocations: 199.1 kB / 430.2 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.009e-05/0.1286, allocations: 16 kB / 430.2 MB, free: 9.113 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.878e-05/0.1287, allocations: 16 kB / 430.2 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.587e-05/0.1288, allocations: 79.72 kB / 430.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.376e-05/0.1289, allocations: 81.44 kB / 430.4 MB, free: 8.934 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.1291, allocations: 279.3 kB / 430.7 MB, free: 8.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.1291, allocations: 4 kB / 430.7 MB, free: 8.656 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1291, allocations: 0 / 430.7 MB, free: 8.656 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.1292, allocations: 0 / 430.7 MB, free: 8.656 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001819/0.131, allocations: 0.7714 MB / 431.4 MB, free: 7.832 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.131, allocations: 8.031 kB / 431.4 MB, free: 7.824 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001615/0.1312, allocations: 51.38 kB / 431.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008223/0.132, allocations: 422.6 kB / 431.9 MB, free: 7.324 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.1321, allocations: 20.66 kB / 431.9 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.757e-05/0.1321, allocations: 35.91 kB / 432 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004424/0.1326, allocations: 297.7 kB / 432.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.1326, allocations: 3.984 kB / 432.3 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.1327, allocations: 12 kB / 432.3 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1327, allocations: 8 kB / 432.3 MB, free: 6.941 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003567/0.133, allocations: 214.1 kB / 432.5 MB, free: 6.734 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.1345, allocations: 1.049 MB / 433.5 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007242/0.1353, allocations: 382.8 kB / 433.9 MB, free: 5.242 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1353, allocations: 4 kB / 433.9 MB, free: 5.238 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.1353, allocations: 46.5 kB / 434 MB, free: 5.184 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.653e-06/0.1353, allocations: 4 kB / 434 MB, free: 5.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.001923/0.1373, allocations: 1.099 MB / 435.1 MB, free: 4.008 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/0.1373, allocations: 59.34 kB / 435.1 MB, free: 3.938 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006903/0.138, allocations: 433.5 kB / 435.5 MB, free: 3.508 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.138, allocations: 33.7 kB / 435.6 MB, free: 3.469 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.1382, allocations: 204.5 kB / 435.8 MB, free: 3.266 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.928e-05/0.1383, allocations: 141.9 kB / 435.9 MB, free: 3.125 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.1383, allocations: 4 kB / 435.9 MB, free: 3.121 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.254e-05/0.1384, allocations: 354.8 kB / 436.3 MB, free: 2.766 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.1385, allocations: 112.8 kB / 436.4 MB, free: 2.656 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1387, allocations: 161.8 kB / 436.5 MB, free: 2.473 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002069/0.1389, allocations: 140.9 kB / 436.7 MB, free: 2.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1389, allocations: 4 kB / 436.7 MB, free: 2.336 MB / 298.7 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=52) (initialization): time 0.001004/0.14, allocations: 0.7968 MB / 437.5 MB, free: 1.441 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.14, allocations: 4 kB / 437.5 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.14, allocations: 4 kB / 437.5 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003048/0.1403, allocations: 98.67 kB / 437.6 MB, free: 1.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003377/0.1407, allocations: 83.83 kB / 437.7 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004747/0.1454, allocations: 7.309 MB / 445 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004204/0.1459, allocations: 43.95 kB / 445 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.283e-05/0.1459, allocations: 15.94 kB / 445 MB, free: 9.352 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" 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: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002518/0.1462, allocations: 165.7 kB / 445.2 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.1463, allocations: 39.53 kB / 445.2 MB, free: 9.141 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.1464, allocations: 48.06 kB / 445.3 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.1464, allocations: 4 kB / 445.3 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1464, allocations: 0 / 445.3 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.1464, allocations: 7.984 kB / 445.3 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.1479, allocations: 0.8703 MB / 446.2 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.148, allocations: 0 / 446.2 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003038/0.1483, allocations: 63.91 kB / 446.2 MB, free: 8.086 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003476/0.1486, allocations: 84.67 kB / 446.3 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.1487, allocations: 8 kB / 446.3 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001759/0.1504, allocations: 1.725 MB / 448 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1505, allocations: 0 / 448 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009573/0.1514, allocations: 0.6194 MB / 448.6 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.1516, allocations: 112.6 kB / 448.8 MB, free: 5.363 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.741e-05/0.1517, allocations: 12 kB / 448.8 MB, free: 5.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004008/0.1521, allocations: 35.95 kB / 448.8 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.765e-05/0.1522, allocations: 39.84 kB / 448.8 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.1522, allocations: 12.19 kB / 448.9 MB, free: 5.266 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007994/0.153, allocations: 327.1 kB / 449.2 MB, free: 4.949 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.153, allocations: 3.938 kB / 449.2 MB, free: 4.945 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005809/0.1536, allocations: 80 kB / 449.3 MB, free: 4.867 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (g1.x_scaled[1],g2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.wg) * 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 (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001659/0.1538, allocations: 114.9 kB / 449.4 MB, free: 4.746 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009688/0.1548, allocations: 0.6393 MB / 450 MB, free: 4.066 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1548, allocations: 0 / 450 MB, free: 4.066 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000398/0.1552, allocations: 290.3 kB / 450.3 MB, free: 3.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.1556, allocations: 49.36 kB / 450.3 MB, free: 3.719 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.1575, allocations: 1.204 MB / 451.5 MB, free: 2.488 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005281/0.158, allocations: 0.8424 MB / 452.4 MB, free: 1.617 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002179/0.1582, allocations: 51.25 kB / 452.4 MB, free: 1.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.1583, allocations: 27.44 kB / 452.5 MB, free: 1.543 MB / 314.7 MB Notification: Performance of SimCode: time 3.91e-07/0.1584, allocations: 0 / 452.5 MB, free: 1.543 MB / 314.7 MB Notification: Performance of Templates: time 0.00937/0.1677, allocations: 3.855 MB / 456.3 MB, free: 13.68 MB / 330.7 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile (rm -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.sim & ./AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)