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.001213/0.001213, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001287/0.001287, allocations: 196.6 kB / 16.14 MB, free: 6.645 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.207/1.207, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1729/0.1729, allocations: 22.35 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 59.91 kB / 378.2 MB, free: 13.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2242, allocations: 54.94 MB / 433.1 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.001969/0.2262, allocations: 1.726 MB / 434.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004373/0.2266, allocations: 461.5 kB / 435.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.257e-05/0.2267, allocations: 0 / 435.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.014e-05/0.2268, allocations: 14.31 kB / 435.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.2269, allocations: 25.98 kB / 435.3 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.752e-05/0.227, allocations: 21.25 kB / 435.3 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.2271, allocations: 127.2 kB / 435.5 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.847e-05/0.2272, allocations: 22.75 kB / 435.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.83e-05/0.2272, allocations: 47.56 kB / 435.5 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.961e-05/0.2273, allocations: 59.58 kB / 435.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.2273, allocations: 5.875 kB / 435.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.734e-05/0.2274, allocations: 5.844 kB / 435.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.791e-05/0.2274, allocations: 14.55 kB / 435.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/0.2274, allocations: 48.16 kB / 435.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.139e-05/0.2275, allocations: 102 kB / 435.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2275, allocations: 0 / 435.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.2275, allocations: 0 / 435.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.035e-06/0.2275, allocations: 0 / 435.8 MB, free: 36.83 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.0004266/0.228, allocations: 438.3 kB / 436.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.228, allocations: 12.38 kB / 436.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.226e-05/0.2281, allocations: 40.8 kB / 436.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.782e-05/0.2281, allocations: 17.5 kB / 436.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.2282, allocations: 212.5 kB / 436.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.2282, allocations: 11.88 kB / 436.5 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.2283, allocations: 7.031 kB / 436.5 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.2284, allocations: 85.27 kB / 436.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.2284, allocations: 0 / 436.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.2284, allocations: 6.969 kB / 436.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.2284, allocations: 0 / 436.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.882e-05/0.2285, allocations: 45.61 kB / 436.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004181/0.2289, allocations: 381.5 kB / 437 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.2291, allocations: 173.3 kB / 437.2 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.542e-05/0.2292, allocations: 46.25 kB / 437.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.2292, allocations: 3.938 kB / 437.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.608e-06/0.2292, allocations: 37.34 kB / 437.3 MB, free: 35.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.2292, allocations: 4 kB / 437.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005498/0.2298, allocations: 445.2 kB / 437.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.708e-05/0.2298, allocations: 54.44 kB / 437.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.889e-05/0.2299, allocations: 154.7 kB / 437.9 MB, free: 34.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/0.2299, allocations: 32.48 kB / 437.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.141e-05/0.23, allocations: 116.7 kB / 438 MB, free: 34.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.23, allocations: 40.78 kB / 438.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.376e-05/0.23, allocations: 32.5 kB / 438.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.2301, allocations: 331.7 kB / 438.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.602e-05/0.2301, allocations: 30.47 kB / 438.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.133e-05/0.2302, allocations: 57.2 kB / 438.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.2305, allocations: 177.2 kB / 438.7 MB, free: 34.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.2305, allocations: 0 / 438.7 MB, free: 34.33 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.0003462/0.2309, allocations: 348.4 kB / 439 MB, free: 34.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/0.2309, allocations: 8.781 kB / 439 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.2309, allocations: 3.938 kB / 439 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/0.2311, allocations: 53.09 kB / 439.1 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.994e-05/0.2312, allocations: 32.39 kB / 439.1 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.2324, allocations: 4.239 MB / 443.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.988e-05/0.2325, allocations: 64 / 443.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.2325, allocations: 13.53 kB / 443.4 MB, free: 29.64 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 7.557e-05/0.2326, allocations: 119.5 kB / 443.5 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.2326, allocations: 13.09 kB / 443.5 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.152e-05/0.2327, allocations: 19.31 kB / 443.5 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.2327, allocations: 0 / 443.5 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-06/0.2327, allocations: 0 / 443.5 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.2327, allocations: 4 kB / 443.5 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003652/0.233, allocations: 461.3 kB / 444 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2331, allocations: 3.281 kB / 444 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.402e-05/0.2332, allocations: 23.94 kB / 444 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001043/0.2333, allocations: 41.34 kB / 444.1 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.2333, allocations: 7.219 kB / 444.1 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006323/0.2339, allocations: 1.455 MB / 445.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2339, allocations: 2.312 kB / 445.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.2342, allocations: 273 kB / 445.8 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.577e-05/0.2342, allocations: 99.16 kB / 445.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.2342, allocations: 6.688 kB / 445.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.2343, allocations: 4 kB / 445.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.969e-05/0.2344, allocations: 12.55 kB / 445.9 MB, free: 27.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.2344, allocations: 3.344 kB / 445.9 MB, free: 27.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.748e-05/0.2344, allocations: 123.3 kB / 446 MB, free: 27.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2344, allocations: 0 / 446 MB, free: 27.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003448/0.2348, allocations: 29.5 kB / 446.1 MB, free: 27.22 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.0003533/0.2352, allocations: 0.8199 MB / 446.9 MB, free: 26.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002626/0.2354, allocations: 315.9 kB / 447.2 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2354, allocations: 0 / 447.2 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.2356, allocations: 163.7 kB / 447.3 MB, free: 26.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.2358, allocations: 19.11 kB / 447.4 MB, free: 26.07 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.001848/0.2377, allocations: 2.479 MB / 449.8 MB, free: 23.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.2378, allocations: 0.7144 MB / 450.6 MB, free: 23.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.246e-05/0.2379, allocations: 10.83 kB / 450.6 MB, free: 23.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.303e-05/0.2379, allocations: 39.19 kB / 450.6 MB, free: 23.22 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2379, allocations: 0 / 450.6 MB, free: 23.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01271/0.2506, allocations: 3.104 MB / 453.7 MB, free: 22.91 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/0.2508, allocations: 260.9 kB / 454 MB, free: 22.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.594/1.844, allocations: 2.75 kB / 454 MB, free: 22.62 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)