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.001016/0.001016, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00102/0.00102, allocations: 192.7 kB / 16.25 MB, free: 6.621 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.237/1.237, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1837/0.1837, allocations: 22.36 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 63.91 kB / 378.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2517, allocations: 54.95 MB / 433.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002675/0.2544, allocations: 1.718 MB / 435 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007357/0.2551, allocations: 469.3 kB / 435.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.2553, allocations: 0 / 435.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.448e-05/0.2554, allocations: 7.547 kB / 435.5 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002307/0.2556, allocations: 29.45 kB / 435.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000102/0.2557, allocations: 22.66 kB / 435.5 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001782/0.2559, allocations: 117.3 kB / 435.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.256, allocations: 35.44 kB / 435.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.2562, allocations: 54.56 kB / 435.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.2563, allocations: 55.78 kB / 435.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.734e-05/0.2563, allocations: 9.75 kB / 435.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.174e-05/0.2564, allocations: 8.875 kB / 435.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.585e-05/0.2564, allocations: 22.12 kB / 435.8 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.707e-05/0.2564, allocations: 50.58 kB / 435.9 MB, free: 37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001277/0.2566, allocations: 106 kB / 436 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2566, allocations: 0 / 436 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2566, allocations: 0 / 436 MB, free: 36.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.2566, allocations: 0 / 436 MB, free: 36.95 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.0005703/0.2572, allocations: 427.6 kB / 436.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.2572, allocations: 10.81 kB / 436.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.54e-05/0.2573, allocations: 45.31 kB / 436.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.205e-05/0.2574, allocations: 21.38 kB / 436.5 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.2576, allocations: 209.2 kB / 436.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.2576, allocations: 13.28 kB / 436.7 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.799e-05/0.2576, allocations: 9.094 kB / 436.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001483/0.2578, allocations: 89.31 kB / 436.8 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.2578, allocations: 0 / 436.8 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.2578, allocations: 4 kB / 436.8 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2578, allocations: 6.781 kB / 436.8 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.107e-05/0.2579, allocations: 41.77 kB / 436.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005278/0.2584, allocations: 390.3 kB / 437.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.2587, allocations: 171 kB / 437.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.082e-05/0.2588, allocations: 46.7 kB / 437.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.2588, allocations: 0 / 437.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.465e-05/0.2588, allocations: 37.25 kB / 437.5 MB, free: 35.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 9.22e-07/0.2588, allocations: 0 / 437.5 MB, free: 35.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006251/0.2594, allocations: 449.8 kB / 437.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.007e-05/0.2595, allocations: 58.28 kB / 438 MB, free: 35.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.2596, allocations: 158.4 kB / 438.1 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.2596, allocations: 29.7 kB / 438.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.2596, allocations: 110 kB / 438.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.2597, allocations: 38.03 kB / 438.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.2597, allocations: 35.88 kB / 438.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.602e-05/0.2598, allocations: 328.5 kB / 438.6 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.488e-05/0.2598, allocations: 29.64 kB / 438.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.457e-05/0.2599, allocations: 63.05 kB / 438.7 MB, free: 34.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.2603, allocations: 178.2 kB / 438.9 MB, free: 34.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.2603, allocations: 0 / 438.9 MB, free: 34.45 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.0005237/0.2608, allocations: 351 kB / 439.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.2608, allocations: 5.219 kB / 439.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.2608, allocations: 3.938 kB / 439.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.261, allocations: 42.5 kB / 439.3 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-05/0.2611, allocations: 31.91 kB / 439.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.2629, allocations: 4.634 MB / 444 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.445e-05/0.263, allocations: 10.5 kB / 444 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.263, allocations: 6.625 kB / 444 MB, free: 29.36 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.993e-05/0.2631, allocations: 128.9 kB / 444.1 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.2631, allocations: 9.312 kB / 444.1 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.2631, allocations: 15.34 kB / 444.1 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2631, allocations: 0 / 444.1 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.2631, allocations: 4 kB / 444.1 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2632, allocations: 7.125 kB / 444.1 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004048/0.2636, allocations: 457.1 kB / 444.6 MB, free: 28.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2636, allocations: 3.938 kB / 444.6 MB, free: 28.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.475e-05/0.2637, allocations: 24.05 kB / 444.6 MB, free: 28.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/0.2638, allocations: 40.25 kB / 444.7 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.2638, allocations: 2.812 kB / 444.7 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007044/0.2645, allocations: 1.624 MB / 446.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2645, allocations: 4 kB / 446.3 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002364/0.2648, allocations: 281.2 kB / 446.6 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.107e-05/0.2648, allocations: 83.98 kB / 446.6 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.2648, allocations: 6.969 kB / 446.6 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.649e-05/0.2649, allocations: 0 / 446.6 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.239e-05/0.265, allocations: 20.48 kB / 446.7 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.265, allocations: 3.031 kB / 446.7 MB, free: 26.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.995e-05/0.265, allocations: 126.1 kB / 446.8 MB, free: 26.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2651, allocations: 0 / 446.8 MB, free: 26.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003518/0.2654, allocations: 34.44 kB / 446.8 MB, free: 26.77 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.0003848/0.2658, allocations: 0.8175 MB / 447.6 MB, free: 26.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002949/0.2661, allocations: 316.8 kB / 448 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2661, allocations: 4 kB / 448 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.2662, allocations: 158.5 kB / 448.1 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.2665, allocations: 26 kB / 448.1 MB, free: 25.62 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.001912/0.2684, allocations: 2.477 MB / 450.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001204/0.2686, allocations: 0.7195 MB / 451.3 MB, free: 22.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.478e-05/0.2686, allocations: 10.12 kB / 451.3 MB, free: 22.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.362e-05/0.2687, allocations: 36.28 kB / 451.4 MB, free: 22.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2687, allocations: 0 / 451.4 MB, free: 22.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01732/0.286, allocations: 3.248 MB / 454.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/0.2862, allocations: 261.4 kB / 454.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.05, allocations: 7.672 kB / 454.9 MB, free: 22.16 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)