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 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 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.0977/0.0977, allocations: 21.61 MB / 36.56 MB, free: 1.062 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009297/0.0009297, allocations: 190.5 kB / 42.83 MB, free: 3.777 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.229/1.229, allocations: 223.2 MB / 272.1 MB, free: 1.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008801/0.0008801, allocations: 92.36 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003359/0.0003359, allocations: 12 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07902/0.07937, allocations: 55.83 MB / 452.9 MB, free: 6.637 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2666/0.346, allocations: 81.79 MB / 0.5221 GB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001815/0.3463, allocations: 79.16 kB / 0.5222 GB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01686/0.3631, allocations: 6.432 MB / 0.5285 GB, free: 11.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3632, allocations: 3.875 kB / 0.5285 GB, free: 11.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.951e-05/0.3632, allocations: 9.094 kB / 0.5285 GB, free: 11.52 MB / 362.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.00122/0.3644, allocations: 0.7406 MB / 0.5292 GB, free: 10.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.3644, allocations: 9.094 kB / 0.5292 GB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.554e-05/0.3645, allocations: 54.81 kB / 0.5293 GB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007219/0.3653, allocations: 423.3 kB / 0.5297 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.3653, allocations: 27.34 kB / 0.5297 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.3653, allocations: 29.62 kB / 0.5297 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.3657, allocations: 297.5 kB / 0.53 GB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3658, allocations: 3.953 kB / 0.53 GB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.3658, allocations: 15.44 kB / 0.53 GB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.3658, allocations: 7.469 kB / 0.53 GB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003235/0.3661, allocations: 226.3 kB / 0.5303 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.3673, allocations: 1.035 MB / 0.5313 GB, free: 9.762 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006432/0.368, allocations: 375.7 kB / 0.5316 GB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.368, allocations: 3.719 kB / 0.5316 GB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.299e-05/0.368, allocations: 41.61 kB / 0.5317 GB, free: 9.637 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.362e-06/0.368, allocations: 3.75 kB / 0.5317 GB, free: 9.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.001542/0.3696, allocations: 1.097 MB / 0.5327 GB, free: 9.094 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.159e-05/0.3696, allocations: 59.22 kB / 0.5328 GB, free: 9.027 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005909/0.3702, allocations: 396.8 kB / 0.5332 GB, free: 8.852 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.3702, allocations: 36.36 kB / 0.5332 GB, free: 8.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.3703, allocations: 205.4 kB / 0.5334 GB, free: 8.691 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.506e-05/0.3704, allocations: 139.2 kB / 0.5335 GB, free: 8.586 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.448e-05/0.3704, allocations: 11.16 kB / 0.5336 GB, free: 8.586 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.691e-05/0.3705, allocations: 351 kB / 0.5339 GB, free: 8.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.3707, allocations: 117.8 kB / 0.534 GB, free: 8.238 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.3708, allocations: 163.7 kB / 0.5342 GB, free: 8.164 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.371, allocations: 130.7 kB / 0.5343 GB, free: 8.156 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.3711, allocations: 4 kB / 0.5343 GB, free: 8.152 MB / 362.7 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pcmd = Ge2.Pm [ 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.Pcmd = Ge1.Pm [ 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.0008061/0.3719, allocations: 0.7972 MB / 0.5351 GB, free: 7.605 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.3719, allocations: 3.562 kB / 0.5351 GB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.3719, allocations: 0 / 0.5351 GB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002316/0.3721, allocations: 101.2 kB / 0.5352 GB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000328/0.3725, allocations: 84.78 kB / 0.5352 GB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/0.3752, allocations: 7.322 MB / 0.5424 GB, free: 16.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003514/0.3755, allocations: 41.45 kB / 0.5424 GB, free: 16.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.3755, allocations: 11.12 kB / 0.5424 GB, free: 16.3 MB / 378.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.0001664/0.3757, allocations: 169.7 kB / 0.5426 GB, free: 16.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.5e-05/0.3758, allocations: 38.81 kB / 0.5426 GB, free: 16.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.573e-05/0.3759, allocations: 47.31 kB / 0.5427 GB, free: 16.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3759, allocations: 7.797 kB / 0.5427 GB, free: 16.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.3759, allocations: 0 / 0.5427 GB, free: 16.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.3759, allocations: 0 / 0.5427 GB, free: 16.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.3769, allocations: 0.8781 MB / 0.5436 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3769, allocations: 3.75 kB / 0.5436 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.3772, allocations: 61.38 kB / 0.5436 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.3774, allocations: 76.75 kB / 0.5437 GB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.3774, allocations: 11.17 kB / 0.5437 GB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001317/0.3788, allocations: 1.737 MB / 0.5454 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3788, allocations: 0 / 0.5454 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007028/0.3795, allocations: 0.6163 MB / 0.546 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.983e-05/0.3796, allocations: 119.8 kB / 0.5461 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.017e-05/0.3797, allocations: 11.47 kB / 0.5461 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/0.38, allocations: 35.2 kB / 0.5462 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.3801, allocations: 35.52 kB / 0.5462 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.3801, allocations: 7.688 kB / 0.5462 GB, free: 13.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005288/0.3806, allocations: 328.3 kB / 0.5465 GB, free: 13.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3806, allocations: 0 / 0.5465 GB, free: 13.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004558/0.3811, allocations: 83.56 kB / 0.5466 GB, free: 13.64 MB / 378.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.0001133/0.3812, allocations: 113.9 kB / 0.5467 GB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000666/0.3819, allocations: 0.6445 MB / 0.5473 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3819, allocations: 0 / 0.5473 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003003/0.3822, allocations: 280.2 kB / 0.5476 GB, free: 12.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.3825, allocations: 51.64 kB / 0.5476 GB, free: 12.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.3839, allocations: 1.21 MB / 0.5488 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.3842, allocations: 0.8416 MB / 0.5497 GB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001549/0.3844, allocations: 50.08 kB / 0.5497 GB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.773e-05/0.3845, allocations: 29.88 kB / 0.5497 GB, free: 11.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3845, allocations: 0 / 0.5497 GB, free: 11.34 MB / 378.7 MB Notification: Performance of Templates: time 0.006509/0.391, allocations: 3.871 MB / 0.5535 GB, free: 9.453 MB / 378.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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)