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/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009422/0.0009424, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3027/0.3027, allocations: 22.34 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003583/0.0003583, allocations: 11.98 kB / 379.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4783/0.4787, allocations: 55.97 MB / 435.9 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001465/0.4802, allocations: 1.164 MB / 437.1 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005439/0.4808, allocations: 388.7 kB / 437.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.199e-05/0.4809, allocations: 2.844 kB / 437.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.664e-05/0.4809, allocations: 7.125 kB / 437.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.4811, allocations: 22.06 kB / 437.5 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.445e-05/0.4811, allocations: 14.17 kB / 437.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.309e-05/0.4812, allocations: 48.53 kB / 437.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.393e-05/0.4813, allocations: 12.75 kB / 437.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.547e-05/0.4814, allocations: 29.95 kB / 437.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.963e-05/0.4815, allocations: 38.34 kB / 437.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.4815, allocations: 5.781 kB / 437.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.573e-05/0.4816, allocations: 3 kB / 437.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.721e-05/0.4816, allocations: 10.78 kB / 437.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.478e-05/0.4816, allocations: 36.2 kB / 437.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.318e-05/0.4817, allocations: 21.34 kB / 437.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4817, allocations: 0 / 437.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4817, allocations: 0 / 437.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.4817, allocations: 4 kB / 437.7 MB, free: 36.98 MB / 350.1 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.0004406/0.4822, allocations: 376.8 kB / 438.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.4822, allocations: 8.875 kB / 438.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.164e-05/0.4823, allocations: 41.38 kB / 438.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.874e-05/0.4823, allocations: 13.03 kB / 438.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.4825, allocations: 176.7 kB / 438.3 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.4825, allocations: 6.938 kB / 438.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.4825, allocations: 10.88 kB / 438.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.4826, allocations: 61.2 kB / 438.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.4826, allocations: 3.953 kB / 438.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.4827, allocations: 4 kB / 438.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.4827, allocations: 7.938 kB / 438.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.016e-05/0.4827, allocations: 28.98 kB / 438.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004582/0.4832, allocations: 319.1 kB / 438.7 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.4834, allocations: 81.7 kB / 438.8 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.4835, allocations: 0 / 438.8 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.824e-05/0.4835, allocations: 37.5 kB / 438.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 8.12e-07/0.4835, allocations: 3.938 kB / 438.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006398/0.4841, allocations: 384.6 kB / 439.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.4842, allocations: 51.41 kB / 439.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.318e-05/0.4843, allocations: 133.9 kB / 439.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.4843, allocations: 28.67 kB / 439.4 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.918e-05/0.4843, allocations: 98.62 kB / 439.5 MB, free: 35.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/0.4844, allocations: 37.47 kB / 439.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-06/0.4844, allocations: 6.969 kB / 439.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.293e-05/0.4844, allocations: 322 kB / 439.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.657e-05/0.4845, allocations: 23.28 kB / 439.9 MB, free: 34.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.917e-05/0.4845, allocations: 47.39 kB / 439.9 MB, free: 34.86 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.4848, allocations: 97.05 kB / 440 MB, free: 34.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.4848, allocations: 0 / 440 MB, free: 34.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001875/0.485, allocations: 131.9 kB / 440.2 MB, free: 34.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.4851, allocations: 5.375 kB / 440.2 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4851, allocations: 64 / 440.2 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001443/0.4852, allocations: 37.86 kB / 440.2 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.669e-05/0.4853, allocations: 27.06 kB / 440.2 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009888/0.4863, allocations: 1.409 MB / 441.6 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.102e-05/0.4864, allocations: 7.844 kB / 441.7 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.4864, allocations: 2.875 kB / 441.7 MB, free: 33.33 MB / 350.1 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 9.79e-05/0.4865, allocations: 128.4 kB / 441.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.4865, allocations: 6.938 kB / 441.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.093e-05/0.4866, allocations: 15.88 kB / 441.8 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.4866, allocations: 0 / 441.8 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.4866, allocations: 0 / 441.8 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.4866, allocations: 3.062 kB / 441.8 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003698/0.487, allocations: 384.1 kB / 442.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.487, allocations: 4.031 kB / 442.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.573e-05/0.4871, allocations: 16.97 kB / 442.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.4872, allocations: 39.62 kB / 442.2 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.4872, allocations: 4 kB / 442.2 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000782/0.488, allocations: 1.431 MB / 443.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.488, allocations: 0 / 443.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.4882, allocations: 257.3 kB / 443.9 MB, free: 31.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.058e-05/0.4883, allocations: 83.61 kB / 444 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.4883, allocations: 4 kB / 444 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-05/0.4884, allocations: 2.688 kB / 444 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.4884, allocations: 9.625 kB / 444 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.4884, allocations: 6.656 kB / 444 MB, free: 31.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.921e-05/0.4885, allocations: 106.5 kB / 444.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4885, allocations: 0 / 444.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.4888, allocations: 24.78 kB / 444.2 MB, free: 30.98 MB / 350.1 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.000428/0.4892, allocations: 0.8507 MB / 445 MB, free: 30.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002886/0.4895, allocations: 188.4 kB / 445.2 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4895, allocations: 3.938 kB / 445.2 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.4896, allocations: 139.8 kB / 445.3 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.4898, allocations: 6.906 kB / 445.3 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.4911, allocations: 1.214 MB / 446.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001674/0.4913, allocations: 0.7031 MB / 447.3 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.672e-05/0.4914, allocations: 9.812 kB / 447.3 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.578e-05/0.4914, allocations: 18.19 kB / 447.3 MB, free: 28.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4914, allocations: 0 / 447.3 MB, free: 28.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4562/0.9477, allocations: 2.238 MB / 449.5 MB, free: 28.07 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.9479, allocations: 229.9 kB / 449.7 MB, free: 27.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.895, allocations: 0 / 449.7 MB, free: 27.84 MB / 350.1 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) Environment - environmentSimulation: