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 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: "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) [/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.1249/0.1249, allocations: 21.61 MB / 36.56 MB, free: 1.074 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.001142/0.001142, allocations: 178.4 kB / 42.83 MB, free: 3.793 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.521/1.521, allocations: 223.2 MB / 272.1 MB, free: 1.344 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.0008585/0.0008585, allocations: 102.4 kB / 328.7 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003551, allocations: 11.94 kB / 395.1 MB, free: 48.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.0957, allocations: 55.82 MB / 450.9 MB, free: 8.527 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3072/0.403, allocations: 79.06 MB / 0.5176 GB, free: 11.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.4032, allocations: 74.56 kB / 0.5176 GB, free: 11.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003243/0.4065, allocations: 1.286 MB / 0.5189 GB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4065, allocations: 3.906 kB / 0.5189 GB, free: 11.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.4065, allocations: 0 / 0.5189 GB, free: 11.36 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004749/0.407, allocations: 385 kB / 0.5193 GB, free: 10.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.4071, allocations: 7.688 kB / 0.5193 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.091e-05/0.4071, allocations: 39.55 kB / 0.5193 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.4072, allocations: 8.969 kB / 0.5193 GB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.4074, allocations: 178.4 kB / 0.5195 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.4074, allocations: 7.281 kB / 0.5195 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.4074, allocations: 3.906 kB / 0.5195 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.4075, allocations: 64.5 kB / 0.5196 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.4076, allocations: 7.891 kB / 0.5196 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.4076, allocations: 3.953 kB / 0.5196 GB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.4076, allocations: 4 kB / 0.5196 GB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.669e-05/0.4077, allocations: 34.2 kB / 0.5196 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004894/0.4081, allocations: 310.1 kB / 0.5199 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.4084, allocations: 86.8 kB / 0.52 GB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.4084, allocations: 7.938 kB / 0.52 GB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.4084, allocations: 38.44 kB / 0.52 GB, free: 10.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.4084, allocations: 0 / 0.52 GB, free: 10.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005758/0.409, allocations: 378.3 kB / 0.5204 GB, free: 10.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.4091, allocations: 55.22 kB / 0.5204 GB, free: 10 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.391e-05/0.4091, allocations: 127.1 kB / 0.5206 GB, free: 9.898 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.4092, allocations: 25.7 kB / 0.5206 GB, free: 9.867 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.757e-05/0.4092, allocations: 98.09 kB / 0.5207 GB, free: 9.777 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.4093, allocations: 38.27 kB / 0.5207 GB, free: 9.754 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.4093, allocations: 3.875 kB / 0.5207 GB, free: 9.754 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.825e-05/0.4093, allocations: 322.6 kB / 0.521 GB, free: 9.438 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.581e-05/0.4094, allocations: 20.59 kB / 0.5211 GB, free: 9.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.816e-05/0.4094, allocations: 54 kB / 0.5211 GB, free: 9.406 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.4097, allocations: 88.23 kB / 0.5212 GB, free: 9.406 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.4097, allocations: 0 / 0.5212 GB, free: 9.406 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001836/0.4099, allocations: 140.7 kB / 0.5213 GB, free: 9.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.4099, allocations: 9.438 kB / 0.5213 GB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.4099, allocations: 0 / 0.5213 GB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001299/0.4101, allocations: 30.45 kB / 0.5214 GB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.748e-05/0.4102, allocations: 26.38 kB / 0.5214 GB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000843/0.411, allocations: 1.409 MB / 0.5228 GB, free: 7.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.498e-05/0.4111, allocations: 8 kB / 0.5228 GB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-06/0.4111, allocations: 3.781 kB / 0.5228 GB, free: 7.992 MB / 362.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 sytem: 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 (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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.4112, allocations: 121.9 kB / 0.5229 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.4113, allocations: 14.14 kB / 0.5229 GB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.4113, allocations: 15.56 kB / 0.5229 GB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.4113, allocations: 0 / 0.5229 GB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.4113, allocations: 0.7656 kB / 0.5229 GB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4113, allocations: 5.906 kB / 0.5229 GB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003303/0.4117, allocations: 392.8 kB / 0.5233 GB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4117, allocations: 2.062 kB / 0.5233 GB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.034e-05/0.4118, allocations: 18.17 kB / 0.5233 GB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001036/0.4119, allocations: 34.34 kB / 0.5234 GB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.4119, allocations: 11.84 kB / 0.5234 GB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006619/0.4126, allocations: 1.407 MB / 0.5247 GB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4126, allocations: 0 / 0.5247 GB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.4128, allocations: 256.4 kB / 0.525 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.579e-05/0.4128, allocations: 82.52 kB / 0.5251 GB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.4128, allocations: 5.297 kB / 0.5251 GB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.539e-05/0.4129, allocations: 4.062 kB / 0.5251 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.139e-05/0.413, allocations: 14.66 kB / 0.5251 GB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-06/0.413, allocations: 3.844 kB / 0.5251 GB, free: 5.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.913e-05/0.413, allocations: 98.81 kB / 0.5252 GB, free: 5.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.413, allocations: 0 / 0.5252 GB, free: 5.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003095/0.4133, allocations: 26.88 kB / 0.5252 GB, free: 5.805 MB / 362.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 (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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003765/0.4137, allocations: 0.8682 MB / 0.5261 GB, free: 5.023 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.414, allocations: 180.6 kB / 0.5262 GB, free: 4.906 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.414, allocations: 0 / 0.5262 GB, free: 4.906 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.4141, allocations: 147.7 kB / 0.5264 GB, free: 4.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.4142, allocations: 11.02 kB / 0.5264 GB, free: 4.785 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.4157, allocations: 1.218 MB / 0.5276 GB, free: 19.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.416, allocations: 0.6989 MB / 0.5283 GB, free: 19.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.391e-05/0.416, allocations: 7.578 kB / 0.5283 GB, free: 19.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.951e-05/0.4161, allocations: 22.09 kB / 0.5283 GB, free: 19.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4161, allocations: 0 / 0.5283 GB, free: 19.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01261/0.4287, allocations: 2.22 MB / 0.5304 GB, free: 19.01 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001281/0.4288, allocations: 229.3 kB / 0.5307 GB, free: 18.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/2.02, allocations: 3.438 kB / 0.5307 GB, free: 18.77 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)