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/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009126/0.0009126, allocations: 99.86 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.0009711/0.000971, allocations: 177.3 kB / 15.94 MB, free: 220 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.562/1.562, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3066/0.3066, allocations: 22.34 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00033/0.0003302, allocations: 8 kB / 379.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4733/0.4737, allocations: 55.98 MB / 435.9 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.001985/0.4757, allocations: 1.267 MB / 437.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006874/0.4764, allocations: 427 kB / 437.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.339e-05/0.4765, allocations: 0 / 437.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.416e-05/0.4765, allocations: 7.219 kB / 437.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.4767, allocations: 36.91 kB / 437.6 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.736e-05/0.4768, allocations: 11.47 kB / 437.6 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.4769, allocations: 69.97 kB / 437.7 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.4771, allocations: 15.86 kB / 437.7 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.4772, allocations: 46.08 kB / 437.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.4773, allocations: 38.02 kB / 437.8 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.4773, allocations: 9.656 kB / 437.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.988e-05/0.4774, allocations: 2.875 kB / 437.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.334e-05/0.4774, allocations: 18.17 kB / 437.8 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.4774, allocations: 42.27 kB / 437.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.841e-05/0.4775, allocations: 66.8 kB / 437.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.4775, allocations: 0 / 437.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.818e-06/0.4776, allocations: 2.875 kB / 437.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.4776, allocations: 0 / 437.9 MB, free: 37.08 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005439/0.4781, allocations: 392.9 kB / 438.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.4782, allocations: 8.625 kB / 438.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.99e-05/0.4783, allocations: 37.38 kB / 438.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.519e-05/0.4783, allocations: 16.89 kB / 438.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.4785, allocations: 189.5 kB / 438.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.4785, allocations: 6.906 kB / 438.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.699e-05/0.4785, allocations: 6.125 kB / 438.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.4787, allocations: 87.09 kB / 438.7 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.4787, allocations: 7.953 kB / 438.7 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.4787, allocations: 0 / 438.7 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.4787, allocations: 2.969 kB / 438.7 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.153e-05/0.4788, allocations: 41.23 kB / 438.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005592/0.4794, allocations: 371.7 kB / 439.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.4797, allocations: 93.08 kB / 439.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.4797, allocations: 3.938 kB / 439.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.4797, allocations: 33.72 kB / 439.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.4797, allocations: 0 / 439.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000817/0.4806, allocations: 415.2 kB / 439.6 MB, free: 35.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.4806, allocations: 59.61 kB / 439.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.4807, allocations: 143 kB / 439.8 MB, free: 35.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.4808, allocations: 25.7 kB / 439.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.452e-05/0.4808, allocations: 107.9 kB / 439.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.4809, allocations: 42.08 kB / 440 MB, free: 35.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.4809, allocations: 2.906 kB / 440 MB, free: 35.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.531e-05/0.481, allocations: 326 kB / 440.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.379e-05/0.481, allocations: 30.52 kB / 440.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.343e-05/0.4811, allocations: 53.11 kB / 440.4 MB, free: 34.88 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.4815, allocations: 111.6 kB / 440.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.4815, allocations: 0 / 440.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002212/0.4817, allocations: 155.4 kB / 440.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.4817, allocations: 7.188 kB / 440.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.4818, allocations: 0 / 440.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001648/0.4819, allocations: 40.72 kB / 440.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.562e-05/0.482, allocations: 26.97 kB / 440.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.4832, allocations: 1.449 MB / 442.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.584e-05/0.4833, allocations: 6.906 kB / 442.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-06/0.4833, allocations: 2.5 kB / 442.2 MB, free: 33.29 MB / 350.1 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 0.000117/0.4834, allocations: 126.7 kB / 442.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.952e-05/0.4835, allocations: 9.719 kB / 442.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.952e-05/0.4835, allocations: 12.72 kB / 442.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.4835, allocations: 2.75 kB / 442.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.4835, allocations: 3.281 kB / 442.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4835, allocations: 0 / 442.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/0.484, allocations: 434.2 kB / 442.7 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.484, allocations: 2.938 kB / 442.7 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.323e-05/0.4841, allocations: 25.72 kB / 442.8 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.4842, allocations: 35.92 kB / 442.8 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.4842, allocations: 3.953 kB / 442.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008899/0.4851, allocations: 1.454 MB / 444.3 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4851, allocations: 3.688 kB / 444.3 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.4854, allocations: 291.1 kB / 444.6 MB, free: 31.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.454e-05/0.4855, allocations: 91.23 kB / 444.6 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.4855, allocations: 8.078 kB / 444.6 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.442e-05/0.4856, allocations: 2.875 kB / 444.7 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.4856, allocations: 14.2 kB / 444.7 MB, free: 30.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.4856, allocations: 13.44 kB / 444.7 MB, free: 30.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.99e-05/0.4857, allocations: 112 kB / 444.8 MB, free: 30.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4857, allocations: 0 / 444.8 MB, free: 30.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003345/0.4861, allocations: 26.25 kB / 444.8 MB, free: 30.84 MB / 350.1 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.0005497/0.4866, allocations: 0.9633 MB / 445.8 MB, free: 29.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003251/0.487, allocations: 190.7 kB / 446 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.487, allocations: 0 / 446 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.4871, allocations: 159.2 kB / 446.1 MB, free: 29.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.4873, allocations: 17.78 kB / 446.1 MB, free: 29.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.4889, allocations: 1.335 MB / 447.5 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.4892, allocations: 0.7097 MB / 448.2 MB, free: 27.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.349e-05/0.4892, allocations: 10.05 kB / 448.2 MB, free: 27.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.893e-05/0.4893, allocations: 29.38 kB / 448.2 MB, free: 27.92 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4893, allocations: 0 / 448.2 MB, free: 27.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.508, allocations: 2.575 MB / 450.8 MB, free: 27.71 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002024/0.5083, allocations: 222.1 kB / 451 MB, free: 27.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.366/2.874, allocations: 0 / 451 MB, free: 27.48 MB / 350.1 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) Environment - environmentSimulation: