Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.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.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") [/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.1507/0.1507, allocations: 21.61 MB / 37.4 MB, free: 0.7656 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.001102/0.001102, allocations: 188.4 kB / 43.63 MB, free: 3.578 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.244/1.244, allocations: 205.1 MB / 254.8 MB, free: 14.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.0008603/0.0008603, allocations: 105.1 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 57.48 kB / 370.3 MB, free: 60.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08032/0.08136, allocations: 51.97 MB / 422.2 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002393/0.0838, allocations: 1.654 MB / 423.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005608/0.08438, allocations: 496.3 kB / 424.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.587e-05/0.08445, allocations: 4 kB / 424.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.378e-05/0.0845, allocations: 3.938 kB / 424.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001685/0.08469, allocations: 27.83 kB / 424.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.26e-05/0.08475, allocations: 15.97 kB / 424.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.445e-05/0.08484, allocations: 103.6 kB / 424.5 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.08495, allocations: 20.2 kB / 424.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.324e-05/0.08505, allocations: 39.8 kB / 424.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.587e-05/0.08514, allocations: 55.75 kB / 424.7 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.08516, allocations: 4 kB / 424.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.541e-05/0.08518, allocations: 4 kB / 424.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.905e-05/0.0852, allocations: 19.92 kB / 424.7 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.661e-05/0.08525, allocations: 39.73 kB / 424.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.363e-05/0.08534, allocations: 83.69 kB / 424.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.08535, allocations: 0 / 424.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.08536, allocations: 0 / 424.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.08537, allocations: 4 kB / 424.8 MB, free: 13.98 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004771/0.08585, allocations: 403.1 kB / 425.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.08589, allocations: 8.031 kB / 425.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.858e-05/0.08594, allocations: 16.84 kB / 425.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.08607, allocations: 192.1 kB / 425.4 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.08609, allocations: 4.375 kB / 425.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.08612, allocations: 12.31 kB / 425.4 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001117/0.08623, allocations: 83.94 kB / 425.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.08625, allocations: 0 / 425.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.08627, allocations: 0 / 425.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.08628, allocations: 7.938 kB / 425.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.938e-05/0.08635, allocations: 35.98 kB / 425.5 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004768/0.08683, allocations: 376.4 kB / 425.9 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.08707, allocations: 94.48 kB / 426 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.122e-05/0.08713, allocations: 44.88 kB / 426.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.08715, allocations: 4 kB / 426.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.157e-05/0.08716, allocations: 30.56 kB / 426.1 MB, free: 12.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.08717, allocations: 0 / 426.1 MB, free: 12.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006368/0.08781, allocations: 419 kB / 426.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.991e-05/0.08784, allocations: 55.41 kB / 426.5 MB, free: 12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.725e-05/0.08794, allocations: 149.8 kB / 426.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.386e-06/0.08795, allocations: 25.7 kB / 426.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.547e-05/0.08799, allocations: 96.05 kB / 426.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.08802, allocations: 47.34 kB / 426.9 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.08806, allocations: 33.7 kB / 426.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.879e-05/0.08811, allocations: 318.8 kB / 427.2 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.018e-05/0.08815, allocations: 24 kB / 427.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.076e-05/0.08821, allocations: 67.12 kB / 427.3 MB, free: 11.21 MB / 298.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003581/0.08857, allocations: 250.5 kB / 427.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.08858, allocations: 0 / 427.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001941/0.08878, allocations: 154.2 kB / 427.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.0888, allocations: 6.344 kB / 427.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.08881, allocations: 0 / 427.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.08895, allocations: 32.83 kB / 427.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.697e-05/0.08905, allocations: 28.05 kB / 427.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008462/0.0899, allocations: 1.452 MB / 429.2 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.56e-05/0.08998, allocations: 4 kB / 429.2 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.09, allocations: 7.938 kB / 429.2 MB, free: 9.121 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: G.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: G.Pm = G.Pcmd. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 7.858e-05/0.09008, allocations: 130.3 kB / 429.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.09011, allocations: 15.84 kB / 429.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.158e-05/0.09014, allocations: 8.719 kB / 429.4 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.09015, allocations: 8.062 kB / 429.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.09015, allocations: 0 / 429.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.09016, allocations: 0 / 429.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00035/0.09052, allocations: 428.9 kB / 429.8 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.09053, allocations: 96 / 429.8 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.733e-05/0.09061, allocations: 23.98 kB / 429.8 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/0.09072, allocations: 40.88 kB / 429.9 MB, free: 8.398 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.09074, allocations: 7.875 kB / 429.9 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006482/0.0914, allocations: 1.455 MB / 431.3 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.09141, allocations: 0 / 431.3 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.09323, allocations: 2.902 MB / 434.2 MB, free: 3.609 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.268e-05/0.09326, allocations: 81.02 kB / 434.3 MB, free: 3.512 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.09328, allocations: 4 kB / 434.3 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.617e-05/0.09337, allocations: 4 kB / 434.3 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.09341, allocations: 7.984 kB / 434.3 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.09342, allocations: 4 kB / 434.3 MB, free: 3.492 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.536e-05/0.09348, allocations: 115.2 kB / 434.4 MB, free: 3.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.09349, allocations: 0 / 434.4 MB, free: 3.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004257/0.09392, allocations: 51.94 kB / 434.5 MB, free: 3.328 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 8.18e-05/0.094, allocations: 99.25 kB / 434.6 MB, free: 3.219 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002458/0.09426, allocations: 195.2 kB / 434.8 MB, free: 3.016 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.09427, allocations: 4 kB / 434.8 MB, free: 3.012 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.09439, allocations: 154.6 kB / 434.9 MB, free: 2.848 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.09463, allocations: 16.47 kB / 434.9 MB, free: 2.832 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00083/0.09546, allocations: 0.7594 MB / 435.7 MB, free: 2.016 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001457/0.09562, allocations: 0.7046 MB / 436.4 MB, free: 1.285 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.215e-05/0.09567, allocations: 8.875 kB / 436.4 MB, free: 1.277 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/0.0957, allocations: 15.44 kB / 436.4 MB, free: 1.262 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.09571, allocations: 0 / 436.4 MB, free: 1.262 MB / 298.7 MB Notification: Performance of Templates: time 0.003586/0.0993, allocations: 1.628 MB / 438.1 MB, free: 15.63 MB / 314.7 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)