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 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_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_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.1022/0.1022, allocations: 21.61 MB / 36.56 MB, free: 1.078 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.00103/0.00103, allocations: 190.5 kB / 42.83 MB, free: 3.781 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.469/1.469, allocations: 223.2 MB / 272.1 MB, free: 1.793 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.0008333/0.0008334, allocations: 102.4 kB / 328.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003207, allocations: 11.94 kB / 395.1 MB, free: 48.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1145, allocations: 55.82 MB / 450.9 MB, free: 8.602 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.321/0.4356, allocations: 79.42 MB / 0.5179 GB, free: 11.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/0.4357, allocations: 75.14 kB / 0.518 GB, free: 11.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004187/0.4399, allocations: 1.599 MB / 0.5196 GB, free: 11.19 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.44, allocations: 0 / 0.5196 GB, free: 11.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.44, allocations: 0 / 0.5196 GB, free: 11.19 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004094/0.4404, allocations: 405.6 kB / 0.5199 GB, free: 10.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.4404, allocations: 7.688 kB / 0.52 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.8e-05/0.4405, allocations: 46.8 kB / 0.52 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.4406, allocations: 11.88 kB / 0.52 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.4407, allocations: 188.6 kB / 0.5202 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.4407, allocations: 7.781 kB / 0.5202 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.261e-05/0.4408, allocations: 7.531 kB / 0.5202 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.4409, allocations: 78.73 kB / 0.5203 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.4409, allocations: 0 / 0.5203 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.441, allocations: 8.578 kB / 0.5203 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.441, allocations: 7.453 kB / 0.5203 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.951e-05/0.4411, allocations: 39.78 kB / 0.5203 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.4416, allocations: 375.1 kB / 0.5207 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.4418, allocations: 91.98 kB / 0.5208 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.4419, allocations: 0 / 0.5208 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.289e-05/0.4419, allocations: 38.38 kB / 0.5208 GB, free: 10.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 9.42e-07/0.4419, allocations: 0 / 0.5208 GB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006024/0.4425, allocations: 418.5 kB / 0.5212 GB, free: 9.879 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.251e-05/0.4425, allocations: 51.41 kB / 0.5213 GB, free: 9.816 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.077e-05/0.4426, allocations: 138.2 kB / 0.5214 GB, free: 9.719 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.4426, allocations: 32.92 kB / 0.5214 GB, free: 9.688 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/0.4427, allocations: 105.8 kB / 0.5215 GB, free: 9.598 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.4427, allocations: 40.52 kB / 0.5216 GB, free: 9.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-06/0.4427, allocations: 3.438 kB / 0.5216 GB, free: 9.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.385e-05/0.4428, allocations: 320.4 kB / 0.5219 GB, free: 9.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.987e-05/0.4428, allocations: 29.03 kB / 0.5219 GB, free: 9.258 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.071e-05/0.4429, allocations: 50.86 kB / 0.522 GB, free: 9.234 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0003854/0.4433, allocations: 113.4 kB / 0.5221 GB, free: 9.223 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.4433, allocations: 3.844 kB / 0.5221 GB, free: 9.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002087/0.4435, allocations: 149 kB / 0.5222 GB, free: 9.172 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.4435, allocations: 3.938 kB / 0.5222 GB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.4435, allocations: 3.953 kB / 0.5222 GB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.4437, allocations: 33.55 kB / 0.5222 GB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.103e-05/0.4438, allocations: 26.48 kB / 0.5223 GB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008861/0.4447, allocations: 1.455 MB / 0.5237 GB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.618e-05/0.4448, allocations: 2.25 kB / 0.5237 GB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.4448, allocations: 8.062 kB / 0.5237 GB, free: 7.805 MB / 362.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 sytem: 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 (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 8.193e-05/0.4449, allocations: 127.9 kB / 0.5238 GB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.721e-05/0.4449, allocations: 7.781 kB / 0.5238 GB, free: 7.684 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.217e-05/0.4449, allocations: 15.28 kB / 0.5238 GB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.4449, allocations: 3.938 kB / 0.5238 GB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-06/0.4449, allocations: 0 / 0.5238 GB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.4449, allocations: 0 / 0.5238 GB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004692/0.4454, allocations: 441.6 kB / 0.5243 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4454, allocations: 5.938 kB / 0.5243 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.266e-05/0.4455, allocations: 19.09 kB / 0.5243 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001059/0.4456, allocations: 37.7 kB / 0.5243 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.4456, allocations: 11.23 kB / 0.5243 GB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006587/0.4463, allocations: 1.452 MB / 0.5258 GB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4463, allocations: 3.938 kB / 0.5258 GB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.4465, allocations: 287.5 kB / 0.526 GB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.692e-05/0.4466, allocations: 92.59 kB / 0.5261 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.4466, allocations: 3.875 kB / 0.5261 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.788e-05/0.4467, allocations: 6.266 kB / 0.5261 GB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.835e-05/0.4467, allocations: 11.28 kB / 0.5261 GB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.4467, allocations: 7.281 kB / 0.5262 GB, free: 5.652 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.933e-05/0.4468, allocations: 112.4 kB / 0.5263 GB, free: 5.578 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4468, allocations: 0 / 0.5263 GB, free: 5.578 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003262/0.4471, allocations: 30.31 kB / 0.5263 GB, free: 5.578 MB / 362.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 (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.0003744/0.4475, allocations: 0.9722 MB / 0.5272 GB, free: 4.707 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.4479, allocations: 188.6 kB / 0.5274 GB, free: 20.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4479, allocations: 0 / 0.5274 GB, free: 20.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.448, allocations: 151.4 kB / 0.5276 GB, free: 20.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.4482, allocations: 12.12 kB / 0.5276 GB, free: 20.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.4496, allocations: 1.338 MB / 0.5289 GB, free: 19.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.4498, allocations: 0.7104 MB / 0.5296 GB, free: 18.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.565e-05/0.4498, allocations: 7.5 kB / 0.5296 GB, free: 18.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.015e-05/0.4499, allocations: 31.88 kB / 0.5296 GB, free: 18.85 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4499, allocations: 0 / 0.5296 GB, free: 18.85 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01309/0.463, allocations: 2.581 MB / 0.5321 GB, free: 18.61 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001304/0.4631, allocations: 222 kB / 0.5323 GB, free: 18.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.072, allocations: 0 / 0.5323 GB, free: 18.38 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)