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.0008647/0.0008647, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005958/0.005958, allocations: 172.4 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 4.596/4.596, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003231/0.0003231, allocations: 8 kB / 380.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2698, allocations: 55.98 MB / 436.6 MB, free: 38.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.001522/0.2714, allocations: 1.381 MB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005357/0.2719, allocations: 454 kB / 438.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.225e-05/0.272, allocations: 3.531 kB / 438.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/0.2721, allocations: 7.266 kB / 438.4 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.2722, allocations: 27.34 kB / 438.5 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.73e-05/0.2723, allocations: 22.95 kB / 438.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.2724, allocations: 120.5 kB / 438.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.2726, allocations: 32.58 kB / 438.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.528e-05/0.2727, allocations: 43.64 kB / 438.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.72e-05/0.2728, allocations: 48.92 kB / 438.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.759e-05/0.2728, allocations: 3.781 kB / 438.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.638e-05/0.2728, allocations: 5.594 kB / 438.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.182e-05/0.2728, allocations: 22.03 kB / 438.8 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.882e-05/0.2729, allocations: 73.23 kB / 438.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.273, allocations: 100.9 kB / 438.9 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.273, allocations: 4 kB / 438.9 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.273, allocations: 0 / 438.9 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.273, allocations: 0 / 438.9 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004425/0.2735, allocations: 406.2 kB / 439.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.2735, allocations: 13.34 kB / 439.4 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.613e-05/0.2736, allocations: 52.53 kB / 439.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.2736, allocations: 17.56 kB / 439.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.2738, allocations: 211 kB / 439.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.2738, allocations: 7.062 kB / 439.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.2738, allocations: 13.95 kB / 439.6 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.274, allocations: 82.61 kB / 439.7 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.274, allocations: 0 / 439.7 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.274, allocations: 3.094 kB / 439.7 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.274, allocations: 0 / 439.7 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.883e-05/0.2741, allocations: 51.3 kB / 439.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00048/0.2746, allocations: 389.4 kB / 440.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.2748, allocations: 170.5 kB / 440.3 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.535e-05/0.2749, allocations: 55.62 kB / 440.4 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.2749, allocations: 3.375 kB / 440.4 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.275, allocations: 33.56 kB / 440.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.275, allocations: 0 / 440.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006465/0.2756, allocations: 449 kB / 440.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.2756, allocations: 58.12 kB / 440.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.2758, allocations: 156.1 kB / 441.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.458e-06/0.2758, allocations: 25.7 kB / 441.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.2758, allocations: 116 kB / 441.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.2759, allocations: 39.98 kB / 441.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/0.2759, allocations: 22.91 kB / 441.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.457e-05/0.2759, allocations: 328.2 kB / 441.6 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.811e-05/0.276, allocations: 31.92 kB / 441.6 MB, free: 34.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.807e-05/0.2761, allocations: 56.47 kB / 441.7 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/0.2764, allocations: 182.2 kB / 441.8 MB, free: 34.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.2765, allocations: 0 / 441.8 MB, free: 34.51 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.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd 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.0004391/0.2769, allocations: 347.5 kB / 442.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.2769, allocations: 9.656 kB / 442.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.2769, allocations: 3.938 kB / 442.2 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001526/0.2771, allocations: 50.28 kB / 442.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.911e-05/0.2772, allocations: 27.12 kB / 442.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.2789, allocations: 4.241 MB / 446.5 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.227e-05/0.2789, allocations: 6.875 kB / 446.5 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.279, allocations: 2.781 kB / 446.5 MB, free: 29.83 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 8.88e-05/0.279, allocations: 131.3 kB / 446.7 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.2791, allocations: 17.41 kB / 446.7 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.612e-05/0.2791, allocations: 15.69 kB / 446.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2791, allocations: 2.344 kB / 446.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.2791, allocations: 3.234 kB / 446.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2791, allocations: 0 / 446.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004225/0.2796, allocations: 454.5 kB / 447.1 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.2796, allocations: 3.031 kB / 447.1 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.354e-05/0.2797, allocations: 22.08 kB / 447.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001109/0.2798, allocations: 39.44 kB / 447.2 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.2798, allocations: 10.22 kB / 447.2 MB, free: 29.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007175/0.2805, allocations: 1.453 MB / 448.7 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2806, allocations: 0 / 448.7 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002696/0.2808, allocations: 284.1 kB / 448.9 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.229e-05/0.2809, allocations: 86.64 kB / 449 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.2809, allocations: 7.938 kB / 449 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.322e-05/0.281, allocations: 10.17 kB / 449 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.087e-05/0.281, allocations: 6.344 kB / 449 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.281, allocations: 9.562 kB / 449.1 MB, free: 27.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.177e-05/0.2811, allocations: 120.1 kB / 449.2 MB, free: 27.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2811, allocations: 2.875 kB / 449.2 MB, free: 27.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.2815, allocations: 28.22 kB / 449.2 MB, free: 27.4 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004094/0.2819, allocations: 0.8214 MB / 450 MB, free: 26.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003197/0.2822, allocations: 320.7 kB / 450.3 MB, free: 26.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2822, allocations: 0 / 450.3 MB, free: 26.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.2824, allocations: 159.2 kB / 450.5 MB, free: 26.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.2827, allocations: 22.86 kB / 450.5 MB, free: 26.25 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.001981/0.2847, allocations: 2.547 MB / 453.1 MB, free: 24.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000142/0.2848, allocations: 0.7164 MB / 453.8 MB, free: 23.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.272e-05/0.2849, allocations: 7.875 kB / 453.8 MB, free: 23.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.637e-05/0.2849, allocations: 37.92 kB / 453.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2849, allocations: 0 / 453.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0845/0.3694, allocations: 3.022 MB / 456.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003374/0.3699, allocations: 264.1 kB / 457.1 MB, free: 22.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.073/2.443, allocations: 0 / 457.1 MB, free: 22.87 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/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)