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.1362/0.1362, allocations: 21.42 MB / 36.67 MB, free: 1.117 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.0009348/0.0009348, allocations: 172.5 kB / 42.84 MB, free: 3.867 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.371/1.371, allocations: 205 MB / 253.9 MB, free: 15.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.0007607/0.0007607, allocations: 94.91 kB / 307.2 MB, free: 11.7 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 10.72 kB / 370.4 MB, free: 60.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08441, allocations: 52.51 MB / 422.9 MB, free: 16.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002397/0.08685, allocations: 1.662 MB / 424.6 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005954/0.08747, allocations: 492.3 kB / 425.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.794e-05/0.08754, allocations: 4 kB / 425.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.3e-05/0.08759, allocations: 7.922 kB / 425.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001733/0.08779, allocations: 23.84 kB / 425.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.624e-05/0.08785, allocations: 15.98 kB / 425.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.92e-05/0.08795, allocations: 99.58 kB / 425.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.08806, allocations: 24.19 kB / 425.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.08817, allocations: 47.8 kB / 425.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.76e-05/0.08826, allocations: 43.77 kB / 425.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.224e-05/0.08829, allocations: 4 kB / 425.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.625e-05/0.08831, allocations: 8 kB / 425.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.449e-05/0.08834, allocations: 19.86 kB / 425.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/0.08839, allocations: 39.78 kB / 425.4 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.168e-05/0.08849, allocations: 83.67 kB / 425.5 MB, free: 14.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.0885, allocations: 4 kB / 425.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.0885, allocations: 0 / 425.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.08851, allocations: 0 / 425.5 MB, free: 14.09 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.0004781/0.089, allocations: 407.1 kB / 425.9 MB, free: 13.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.08904, allocations: 12.03 kB / 425.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.754e-05/0.08908, allocations: 8.844 kB / 425.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.0892, allocations: 192.1 kB / 426.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.08922, allocations: 8.375 kB / 426.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.08925, allocations: 8.375 kB / 426.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.08937, allocations: 79.47 kB / 426.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.034e-06/0.08939, allocations: 4 kB / 426.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.0894, allocations: 8 kB / 426.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.08941, allocations: 0 / 426.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.785e-05/0.0895, allocations: 39.98 kB / 426.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.08995, allocations: 368.4 kB / 426.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.09019, allocations: 94.48 kB / 426.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.468e-05/0.09026, allocations: 44.88 kB / 426.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.09028, allocations: 0 / 426.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.257e-05/0.0903, allocations: 34.56 kB / 426.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 9.32e-07/0.0903, allocations: 3.938 kB / 426.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006063/0.09091, allocations: 419 kB / 427.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.908e-05/0.09094, allocations: 51.41 kB / 427.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.987e-05/0.09104, allocations: 143.9 kB / 427.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.09106, allocations: 33.7 kB / 427.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.843e-05/0.0911, allocations: 100 kB / 427.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.09113, allocations: 39.36 kB / 427.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-05/0.09117, allocations: 29.7 kB / 427.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.307e-05/0.09122, allocations: 330.8 kB / 427.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.153e-05/0.09127, allocations: 20 kB / 427.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.096e-05/0.09132, allocations: 66.36 kB / 428 MB, free: 11.33 MB / 298.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.000374/0.0917, allocations: 236.4 kB / 428.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.09171, allocations: 0 / 428.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002017/0.09192, allocations: 158.6 kB / 428.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.09194, allocations: 8 kB / 428.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.09196, allocations: 8 kB / 428.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001351/0.0921, allocations: 36.83 kB / 428.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.685e-05/0.09219, allocations: 23.98 kB / 428.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008492/0.09305, allocations: 1.447 MB / 429.9 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.628e-05/0.09313, allocations: 0.6875 kB / 429.9 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.09315, allocations: 4 kB / 429.9 MB, free: 9.25 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 8.815e-05/0.09324, allocations: 133.9 kB / 430 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.09328, allocations: 15.75 kB / 430 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.403e-05/0.09331, allocations: 16.72 kB / 430 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.09331, allocations: 3.938 kB / 430.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.09332, allocations: 0 / 430.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.09333, allocations: 0 / 430.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003607/0.09369, allocations: 436.9 kB / 430.5 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.09371, allocations: 0 / 430.5 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.768e-05/0.09379, allocations: 16 kB / 430.5 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.0939, allocations: 40.75 kB / 430.5 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.09392, allocations: 11.94 kB / 430.5 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006631/0.09459, allocations: 1.455 MB / 432 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.09461, allocations: 0 / 432 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002132/0.09483, allocations: 274.1 kB / 432.3 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.368e-05/0.09486, allocations: 85.02 kB / 432.4 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.09488, allocations: 7.938 kB / 432.4 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.713e-05/0.09497, allocations: 4 kB / 432.4 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.985e-05/0.095, allocations: 11.98 kB / 432.4 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.09501, allocations: 4 kB / 432.4 MB, free: 6.496 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.41e-05/0.09507, allocations: 119.2 kB / 432.5 MB, free: 6.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.09507, allocations: 0 / 432.5 MB, free: 6.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.09537, allocations: 28 kB / 432.5 MB, free: 6.352 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 6.821e-05/0.09544, allocations: 99.19 kB / 432.6 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002357/0.09568, allocations: 194.7 kB / 432.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.09569, allocations: 0 / 432.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.09581, allocations: 154.6 kB / 433 MB, free: 5.879 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.09603, allocations: 14.5 kB / 433 MB, free: 5.867 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006555/0.0967, allocations: 0.4884 MB / 433.5 MB, free: 5.352 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.09681, allocations: 0.7048 MB / 434.2 MB, free: 4.621 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.743e-05/0.09685, allocations: 8.875 kB / 434.2 MB, free: 4.609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.63e-05/0.09689, allocations: 15.72 kB / 434.2 MB, free: 4.594 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.09689, allocations: 0 / 434.2 MB, free: 4.594 MB / 298.7 MB Notification: Performance of Templates: time 0.002834/0.09973, allocations: 1.234 MB / 435.4 MB, free: 3.359 MB / 298.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)