Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_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.001008/0.001008, allocations: 99.78 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.00148/0.00148, allocations: 177.3 kB / 15.94 MB, free: 228 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.544/1.544, allocations: 223.2 MB / 239.9 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2548/0.2548, allocations: 22.34 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003258, allocations: 8 kB / 379.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4332/0.4336, allocations: 55.99 MB / 435.9 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.001951/0.4356, allocations: 1.322 MB / 437.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006634/0.4363, allocations: 439.8 kB / 437.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.943e-05/0.4364, allocations: 0 / 437.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.255e-05/0.4365, allocations: 11.2 kB / 437.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.4367, allocations: 33.11 kB / 437.7 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.263e-05/0.4367, allocations: 21.61 kB / 437.7 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.4369, allocations: 78.95 kB / 437.8 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.437, allocations: 29.56 kB / 437.8 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.349e-05/0.4371, allocations: 45.91 kB / 437.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.4373, allocations: 50.45 kB / 437.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.4373, allocations: 6.031 kB / 437.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.932e-05/0.4373, allocations: 2.906 kB / 437.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.4373, allocations: 18.33 kB / 437.9 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.118e-05/0.4374, allocations: 42.67 kB / 438 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.4375, allocations: 71.95 kB / 438 MB, free: 36.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.4375, allocations: 0 / 438 MB, free: 36.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.4375, allocations: 0 / 438 MB, free: 36.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.4375, allocations: 0 / 438 MB, free: 36.78 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005432/0.4381, allocations: 414.8 kB / 438.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.4381, allocations: 13.55 kB / 438.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.782e-05/0.4382, allocations: 41.38 kB / 438.5 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.599e-05/0.4382, allocations: 9.625 kB / 438.5 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.4385, allocations: 204.8 kB / 438.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.4385, allocations: 9.688 kB / 438.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.4385, allocations: 14.25 kB / 438.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.4387, allocations: 87.69 kB / 438.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.4387, allocations: 4 kB / 438.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.4387, allocations: 4 kB / 438.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.4387, allocations: 2.844 kB / 438.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.639e-05/0.4388, allocations: 40.98 kB / 438.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000553/0.4394, allocations: 399.2 kB / 439.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002784/0.4397, allocations: 175 kB / 439.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.4397, allocations: 0 / 439.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.4397, allocations: 37.38 kB / 439.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 9.02e-07/0.4397, allocations: 0 / 439.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007507/0.4405, allocations: 444.5 kB / 439.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.4405, allocations: 53.97 kB / 440 MB, free: 35.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.4406, allocations: 161.7 kB / 440.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.4407, allocations: 25.7 kB / 440.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.296e-05/0.4407, allocations: 112.5 kB / 440.3 MB, free: 34.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.991e-05/0.4408, allocations: 44.28 kB / 440.3 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-06/0.4408, allocations: 4 kB / 440.3 MB, free: 34.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.526e-05/0.4409, allocations: 328.5 kB / 440.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.624e-05/0.4409, allocations: 29.03 kB / 440.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.591e-05/0.441, allocations: 61.56 kB / 440.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.275e-05/0.4411, allocations: 41.41 kB / 440.8 MB, free: 34.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.4411, allocations: 0 / 440.8 MB, free: 34.39 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004793/0.4415, allocations: 346 kB / 441.1 MB, free: 34.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.4416, allocations: 9.203 kB / 441.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.4416, allocations: 2.5 kB / 441.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001891/0.4418, allocations: 56.62 kB / 441.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.457e-05/0.4419, allocations: 24.53 kB / 441.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001905/0.4438, allocations: 4.227 MB / 445.4 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.018e-05/0.4439, allocations: 8.062 kB / 445.4 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.4439, allocations: 9.25 kB / 445.4 MB, free: 29.72 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 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 (14): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.444, allocations: 131.2 kB / 445.6 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.284e-05/0.4441, allocations: 13.72 kB / 445.6 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.4441, allocations: 16.12 kB / 445.6 MB, free: 29.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.4441, allocations: 0 / 445.6 MB, free: 29.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.4441, allocations: 4 kB / 445.6 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4441, allocations: 7.234 kB / 445.6 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.4446, allocations: 450.3 kB / 446 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.4446, allocations: 0 / 446 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.688e-05/0.4447, allocations: 22.66 kB / 446.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000112/0.4448, allocations: 37.73 kB / 446.1 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.4449, allocations: 7.719 kB / 446.1 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008643/0.4457, allocations: 1.461 MB / 447.6 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4457, allocations: 0 / 447.6 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.4461, allocations: 319.2 kB / 447.9 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/0.4461, allocations: 83.73 kB / 448 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.4461, allocations: 10.23 kB / 448 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.4462, allocations: 0 / 448 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.009e-05/0.4463, allocations: 13.14 kB / 448 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.4463, allocations: 2.75 kB / 448 MB, free: 27.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.187e-05/0.4464, allocations: 121.2 kB / 448.1 MB, free: 27.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4464, allocations: 0 / 448.1 MB, free: 27.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003677/0.4468, allocations: 31.59 kB / 448.1 MB, free: 27.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.y) * 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 (9): * Single equations (assignments): 8 * 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.0005392/0.4473, allocations: 0.9839 MB / 449.1 MB, free: 26.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000381/0.4477, allocations: 315.3 kB / 449.4 MB, free: 26.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4477, allocations: 0 / 449.4 MB, free: 26.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.4479, allocations: 155.6 kB / 449.6 MB, free: 25.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.4481, allocations: 17.44 kB / 449.6 MB, free: 25.95 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.4499, allocations: 1.64 MB / 451.2 MB, free: 24.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001978/0.4501, allocations: 0.7193 MB / 451.9 MB, free: 23.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.776e-05/0.4502, allocations: 10.16 kB / 452 MB, free: 23.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.463e-05/0.4503, allocations: 33.44 kB / 452 MB, free: 23.95 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4503, allocations: 3 kB / 452 MB, free: 23.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.467, allocations: 2.98 MB / 455 MB, free: 23.73 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.4673, allocations: 233.6 kB / 455.2 MB, free: 23.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.484/2.952, allocations: 0 / 455.2 MB, free: 23.49 MB / 350.1 MB (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1) Environment - environmentSimulation: