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.001181/0.001181, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1996/0.1996, allocations: 22.34 MB / 312.7 MB, free: 12.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.91 kB / 378.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.276, allocations: 54.95 MB / 433.8 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002762/0.2788, allocations: 1.669 MB / 435.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006902/0.2796, allocations: 460.9 kB / 435.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.918e-05/0.2797, allocations: 0 / 435.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.153e-05/0.2797, allocations: 15.19 kB / 435.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002076/0.2799, allocations: 34.05 kB / 435.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.034e-05/0.28, allocations: 26.27 kB / 436 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001728/0.2802, allocations: 119.6 kB / 436.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.2804, allocations: 37.17 kB / 436.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.2805, allocations: 52.7 kB / 436.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.2806, allocations: 53.03 kB / 436.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.2806, allocations: 8.844 kB / 436.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.066e-05/0.2806, allocations: 8.969 kB / 436.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/0.2807, allocations: 30.19 kB / 436.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.29e-05/0.2807, allocations: 50.08 kB / 436.3 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.2809, allocations: 109.2 kB / 436.4 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.2809, allocations: 4 kB / 436.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2809, allocations: 0 / 436.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2809, allocations: 0 / 436.4 MB, free: 37.03 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.0005779/0.2815, allocations: 419.9 kB / 436.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2815, allocations: 8.406 kB / 436.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.485e-05/0.2816, allocations: 44.67 kB / 436.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.918e-05/0.2817, allocations: 20.72 kB / 436.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.2819, allocations: 217.1 kB / 437.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.2819, allocations: 10.75 kB / 437.1 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.2819, allocations: 8.656 kB / 437.1 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.2821, allocations: 81.75 kB / 437.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2821, allocations: 0 / 437.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.2821, allocations: 0 / 437.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2821, allocations: 2.969 kB / 437.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.125e-05/0.2822, allocations: 49.34 kB / 437.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005342/0.2827, allocations: 388.5 kB / 437.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.283, allocations: 168.5 kB / 437.8 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.985e-05/0.2831, allocations: 44.91 kB / 437.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.04e-05/0.2831, allocations: 6.75 kB / 437.9 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.297e-05/0.2831, allocations: 30.56 kB / 437.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.2831, allocations: 0 / 437.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007112/0.2838, allocations: 446 kB / 438.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.2839, allocations: 57.27 kB / 438.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.284, allocations: 169.6 kB / 438.5 MB, free: 35.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.284, allocations: 25.7 kB / 438.6 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.338e-05/0.2841, allocations: 112.3 kB / 438.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.2841, allocations: 39.83 kB / 438.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.2841, allocations: 40.69 kB / 438.8 MB, free: 34.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.168e-05/0.2842, allocations: 324.8 kB / 439.1 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.328e-05/0.2843, allocations: 31.3 kB / 439.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.364e-05/0.2843, allocations: 59.88 kB / 439.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000395/0.2847, allocations: 181.9 kB / 439.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2847, allocations: 0 / 439.3 MB, free: 34.54 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.0004943/0.2852, allocations: 344 kB / 439.7 MB, free: 34.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.2853, allocations: 9.719 kB / 439.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.2853, allocations: 10.16 kB / 439.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.2855, allocations: 46.27 kB / 439.7 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.508e-05/0.2856, allocations: 27.45 kB / 439.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001734/0.2873, allocations: 4.633 MB / 444.4 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.627e-05/0.2874, allocations: 10.5 kB / 444.4 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.2874, allocations: 6.906 kB / 444.4 MB, free: 29.45 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 0.0001055/0.2875, allocations: 131.6 kB / 444.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.2876, allocations: 9 kB / 444.6 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.2876, allocations: 19.38 kB / 444.6 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2876, allocations: 0 / 444.6 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.2876, allocations: 0 / 444.6 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.2876, allocations: 3.938 kB / 444.6 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000443/0.2881, allocations: 458.7 kB / 445 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2881, allocations: 0 / 445 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.718e-05/0.2882, allocations: 24 kB / 445 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001219/0.2883, allocations: 44.23 kB / 445.1 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.2884, allocations: 7.969 kB / 445.1 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008212/0.2892, allocations: 1.622 MB / 446.7 MB, free: 27.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2892, allocations: 0 / 446.7 MB, free: 27.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.2895, allocations: 287.1 kB / 447 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.581e-05/0.2895, allocations: 87.8 kB / 447.1 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.2896, allocations: 6.047 kB / 447.1 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.225e-05/0.2897, allocations: 6.75 kB / 447.1 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.2897, allocations: 10.23 kB / 447.1 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.2897, allocations: 2.562 kB / 447.1 MB, free: 26.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.101e-05/0.2898, allocations: 125.3 kB / 447.2 MB, free: 26.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2898, allocations: 4 kB / 447.2 MB, free: 26.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003753/0.2902, allocations: 29.69 kB / 447.3 MB, free: 26.86 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.0004475/0.2906, allocations: 0.8271 MB / 448.1 MB, free: 26.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003711/0.291, allocations: 318.5 kB / 448.4 MB, free: 25.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.291, allocations: 0 / 448.4 MB, free: 25.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.2912, allocations: 159.6 kB / 448.6 MB, free: 25.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.2915, allocations: 20.12 kB / 448.6 MB, free: 25.71 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.00211/0.2936, allocations: 2.448 MB / 451 MB, free: 23.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2938, allocations: 0.7166 MB / 451.7 MB, free: 22.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.295e-05/0.2938, allocations: 3.625 kB / 451.7 MB, free: 22.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.522e-05/0.2939, allocations: 36.66 kB / 451.8 MB, free: 22.89 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2939, allocations: 0 / 451.8 MB, free: 22.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.3198, allocations: 3.327 MB / 455.1 MB, free: 22.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.68, allocations: 10.75 kB / 455.1 MB, free: 22.45 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 & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)