Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_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_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_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.09047/0.09047, 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.001053/0.001053, allocations: 188.5 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.292/1.292, allocations: 205.1 MB / 254.8 MB, free: 14.26 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.0009164/0.0009164, allocations: 113.1 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009789/0.000979, allocations: 50.58 kB / 370.3 MB, free: 60.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07643/0.07743, 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_prescribed_P): time 0.002101/0.07956, allocations: 1.533 MB / 423.8 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005112/0.08009, allocations: 472.4 kB / 424.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.047e-05/0.08014, allocations: 3.938 kB / 424.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.245e-05/0.08019, allocations: 3.984 kB / 424.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.08038, allocations: 19.86 kB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.95e-05/0.08042, allocations: 19.97 kB / 424.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.657e-05/0.0805, allocations: 63.72 kB / 424.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.791e-05/0.08056, allocations: 4 kB / 424.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.056e-05/0.08065, allocations: 31.86 kB / 424.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.439e-05/0.08073, allocations: 43.81 kB / 424.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.704e-05/0.08075, allocations: 4 kB / 424.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.296e-05/0.08077, allocations: 4 kB / 424.4 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.877e-05/0.08079, allocations: 11.92 kB / 424.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.338e-05/0.08083, allocations: 31.8 kB / 424.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.098e-05/0.0809, allocations: 48.05 kB / 424.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.08091, allocations: 0 / 424.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.08092, allocations: 0 / 424.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.606e-06/0.08093, allocations: 0 / 424.5 MB, free: 14.26 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004204/0.08135, allocations: 379.3 kB / 424.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.08139, allocations: 8.031 kB / 424.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.08143, allocations: 12.83 kB / 424.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.08155, allocations: 184.2 kB / 425.1 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.08156, allocations: 4.375 kB / 425.1 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.08159, allocations: 8.375 kB / 425.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.872e-05/0.08168, allocations: 69.48 kB / 425.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.08169, allocations: 0 / 425.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.08171, allocations: 8 kB / 425.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.08172, allocations: 3.938 kB / 425.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.12e-05/0.08177, allocations: 27.97 kB / 425.2 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003617/0.08214, allocations: 308.7 kB / 425.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.08234, allocations: 86.56 kB / 425.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.494e-05/0.0824, allocations: 36.84 kB / 425.6 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.031e-05/0.08242, allocations: 0 / 425.6 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.298e-05/0.08243, allocations: 38.55 kB / 425.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.08244, allocations: 4 kB / 425.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005286/0.08297, allocations: 386.9 kB / 426.1 MB, free: 12.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.608e-05/0.083, allocations: 51.41 kB / 426.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.047e-05/0.08308, allocations: 129.1 kB / 426.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.254e-06/0.08309, allocations: 29.7 kB / 426.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.815e-05/0.08312, allocations: 96.03 kB / 426.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.08314, allocations: 43.39 kB / 426.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.08318, allocations: 25.72 kB / 426.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.624e-05/0.08322, allocations: 322.8 kB / 426.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.349e-05/0.08326, allocations: 20 kB / 426.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.097e-05/0.08331, allocations: 51.19 kB / 426.8 MB, free: 11.7 MB / 298.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.08363, allocations: 220.9 kB / 427 MB, free: 11.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-06/0.08364, allocations: 0 / 427 MB, free: 11.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001653/0.08381, allocations: 147.8 kB / 427.2 MB, free: 11.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.08383, allocations: 8 kB / 427.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.08384, allocations: 112 / 427.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.08397, allocations: 36.77 kB / 427.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.652e-05/0.08405, allocations: 20 kB / 427.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007939/0.08486, allocations: 1.416 MB / 428.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.937e-05/0.08493, allocations: 4.031 kB / 428.6 MB, free: 9.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.08494, allocations: 4.094 kB / 428.7 MB, free: 9.688 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: 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: Pm = 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 (12): * Single equations (assignments): 11 * 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 6.656e-05/0.08501, allocations: 129.8 kB / 428.8 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.08504, allocations: 11.91 kB / 428.8 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.942e-05/0.08507, allocations: 12.31 kB / 428.8 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.08507, allocations: 0 / 428.8 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.08508, allocations: 4 kB / 428.8 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.08509, allocations: 0 / 428.8 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.08538, allocations: 388.1 kB / 429.2 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.0854, allocations: 0 / 429.2 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.048e-05/0.08547, allocations: 15.98 kB / 429.2 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.477e-05/0.08557, allocations: 36.83 kB / 429.2 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-06/0.08559, allocations: 0 / 429.2 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006052/0.0862, allocations: 1.42 MB / 430.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.08622, allocations: 4.094 kB / 430.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.08781, allocations: 2.756 MB / 433.4 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/0.08784, allocations: 92.98 kB / 433.5 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.08786, allocations: 0 / 433.5 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.88e-05/0.08794, allocations: 4.188 kB / 433.5 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.492e-05/0.08797, allocations: 12.05 kB / 433.5 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.08798, allocations: 7.938 kB / 433.5 MB, free: 4.289 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.153e-05/0.08803, allocations: 103.4 kB / 433.6 MB, free: 4.188 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08804, allocations: 0 / 433.6 MB, free: 4.188 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004084/0.08845, allocations: 36 kB / 433.7 MB, free: 4.152 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,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 (7): * Single equations (assignments): 6 * 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 7.475e-05/0.08853, allocations: 99.42 kB / 433.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002284/0.08876, allocations: 186.7 kB / 433.9 MB, free: 3.852 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.08878, allocations: 0 / 433.9 MB, free: 3.852 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.08888, allocations: 146.6 kB / 434.1 MB, free: 3.695 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.0891, allocations: 19.88 kB / 434.1 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007497/0.08986, allocations: 0.6879 MB / 434.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.08997, allocations: 0.7044 MB / 435.5 MB, free: 2.203 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.507e-05/0.09002, allocations: 4.562 kB / 435.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.661e-05/0.09005, allocations: 11.44 kB / 435.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.09005, allocations: 4 kB / 435.5 MB, free: 2.184 MB / 298.7 MB Notification: Performance of Templates: time 0.002991/0.09305, allocations: 1.389 MB / 436.9 MB, free: 0.793 MB / 298.7 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)