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.0007786/0.0007785, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007895/0.0007895, allocations: 168.7 kB / 15.95 MB, free: 204 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.382/1.382, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2638/0.2638, allocations: 22.35 MB / 313.4 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002864/0.0002864, allocations: 8 kB / 380 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3428, allocations: 55.97 MB / 436 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001535/0.3444, allocations: 1.179 MB / 437.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005841/0.345, allocations: 400 kB / 437.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.299e-05/0.3451, allocations: 0 / 437.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.751e-05/0.3451, allocations: 3.234 kB / 437.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.3453, allocations: 18.27 kB / 437.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.951e-05/0.3453, allocations: 7.375 kB / 437.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.584e-05/0.3454, allocations: 66.72 kB / 437.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.755e-05/0.3455, allocations: 9.5 kB / 437.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.409e-05/0.3456, allocations: 37.34 kB / 437.7 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.636e-05/0.3457, allocations: 37.66 kB / 437.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.3457, allocations: 3.469 kB / 437.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.506e-05/0.3457, allocations: 3.375 kB / 437.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.3458, allocations: 10.27 kB / 437.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.388e-05/0.3458, allocations: 35.45 kB / 437.8 MB, free: 37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.242e-05/0.3459, allocations: 27.16 kB / 437.8 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3459, allocations: 0 / 437.8 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3459, allocations: 0 / 437.8 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3459, allocations: 0 / 437.8 MB, free: 37 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.0004704/0.3464, allocations: 380.5 kB / 438.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3464, allocations: 8.688 kB / 438.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.368e-05/0.3465, allocations: 33.98 kB / 438.2 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.585e-05/0.3465, allocations: 10.06 kB / 438.3 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.3467, allocations: 180.3 kB / 438.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.3467, allocations: 7 kB / 438.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.3467, allocations: 6.844 kB / 438.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.3468, allocations: 73.8 kB / 438.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3469, allocations: 7.938 kB / 438.5 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.3469, allocations: 0 / 438.5 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3469, allocations: 0 / 438.5 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.432e-05/0.3469, allocations: 32.72 kB / 438.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000454/0.3474, allocations: 322.8 kB / 438.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.3477, allocations: 86.56 kB / 439 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.241e-05/0.3477, allocations: 34.41 kB / 439 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.3477, allocations: 0 / 439 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.3478, allocations: 34.56 kB / 439 MB, free: 35.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 8.82e-07/0.3478, allocations: 0 / 439 MB, free: 35.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006393/0.3484, allocations: 386.6 kB / 439.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.266e-05/0.3484, allocations: 51.41 kB / 439.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.012e-05/0.3485, allocations: 142.3 kB / 439.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.3486, allocations: 29.7 kB / 439.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.3486, allocations: 95.14 kB / 439.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.165e-05/0.3486, allocations: 34.73 kB / 439.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-06/0.3486, allocations: 6.906 kB / 439.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.565e-05/0.3487, allocations: 322.2 kB / 440.1 MB, free: 34.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.596e-05/0.3488, allocations: 16.78 kB / 440.1 MB, free: 34.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.343e-05/0.3488, allocations: 47.28 kB / 440.1 MB, free: 34.87 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0002732/0.3491, allocations: 87.59 kB / 440.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.3491, allocations: 2.5 kB / 440.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002055/0.3493, allocations: 138.4 kB / 440.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.3493, allocations: 7.531 kB / 440.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3494, allocations: 3.953 kB / 440.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001368/0.3495, allocations: 40.7 kB / 440.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.27e-05/0.3496, allocations: 21.75 kB / 440.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009669/0.3506, allocations: 1.404 MB / 441.8 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.96e-05/0.3506, allocations: 4 kB / 441.8 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.3507, allocations: 2.906 kB / 441.8 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.271e-05/0.3508, allocations: 131.7 kB / 442 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.3508, allocations: 10.72 kB / 442 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.104e-05/0.3508, allocations: 15.25 kB / 442 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3508, allocations: 0 / 442 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-06/0.3508, allocations: 0 / 442 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.3508, allocations: 3.281 kB / 442 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003536/0.3512, allocations: 387.4 kB / 442.4 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3512, allocations: 0 / 442.4 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.339e-05/0.3513, allocations: 20.91 kB / 442.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.674e-05/0.3514, allocations: 40.45 kB / 442.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.3514, allocations: 3.094 kB / 442.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000769/0.3522, allocations: 1.419 MB / 443.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3522, allocations: 0 / 443.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002322/0.3524, allocations: 244.5 kB / 444.1 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.228e-05/0.3525, allocations: 84.11 kB / 444.2 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.3525, allocations: 0 / 444.2 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.164e-05/0.3526, allocations: 10.42 kB / 444.2 MB, free: 31.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.748e-05/0.3526, allocations: 11.11 kB / 444.2 MB, free: 31.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.3526, allocations: 6.578 kB / 444.2 MB, free: 31.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.157e-05/0.3527, allocations: 97.42 kB / 444.3 MB, free: 31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3527, allocations: 0 / 444.3 MB, free: 31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.353, allocations: 31.34 kB / 444.3 MB, free: 31 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.0004644/0.3535, allocations: 0.772 MB / 445.1 MB, free: 30.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002939/0.3538, allocations: 185.7 kB / 445.3 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3538, allocations: 0 / 445.3 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.3539, allocations: 141.8 kB / 445.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.3542, allocations: 13.95 kB / 445.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.3555, allocations: 0.9146 MB / 446.3 MB, free: 29.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001776/0.3557, allocations: 0.6976 MB / 447 MB, free: 28.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.171e-05/0.3558, allocations: 10.67 kB / 447.1 MB, free: 28.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.995e-05/0.3558, allocations: 22.47 kB / 447.1 MB, free: 28.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3558, allocations: 0 / 447.1 MB, free: 28.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01569/0.3715, allocations: 2.247 MB / 449.3 MB, free: 28.47 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/0.3718, allocations: 234.7 kB / 449.6 MB, free: 28.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/2.111, allocations: 0 / 449.6 MB, free: 28.24 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: