Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_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.0014/0.0014, 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.001246/0.001246, allocations: 195.7 kB / 16.14 MB, free: 6.691 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.208/1.208, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.211/0.211, allocations: 22.35 MB / 312.3 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 71.88 kB / 378.2 MB, free: 13.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2242, allocations: 54.93 MB / 433.1 MB, free: 38.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002137/0.2264, allocations: 1.656 MB / 434.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004653/0.2269, allocations: 454.8 kB / 435.2 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.282e-05/0.2269, allocations: 2.906 kB / 435.2 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.227, allocations: 3.938 kB / 435.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001454/0.2271, allocations: 21.2 kB / 435.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.897e-05/0.2272, allocations: 18.2 kB / 435.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.513e-05/0.2273, allocations: 98.97 kB / 435.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.766e-05/0.2274, allocations: 23.73 kB / 435.4 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.268e-05/0.2275, allocations: 51.53 kB / 435.4 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.193e-05/0.2275, allocations: 40.25 kB / 435.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.618e-05/0.2276, allocations: 3.094 kB / 435.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.597e-05/0.2276, allocations: 5.781 kB / 435.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.134e-05/0.2276, allocations: 26.22 kB / 435.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.945e-05/0.2277, allocations: 41.92 kB / 435.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.786e-05/0.2277, allocations: 88.03 kB / 435.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2278, allocations: 10.75 kB / 435.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.2278, allocations: 0 / 435.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.2278, allocations: 0 / 435.6 MB, free: 36.97 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.000483/0.2283, allocations: 402 kB / 436 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2283, allocations: 12.53 kB / 436 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.341e-05/0.2284, allocations: 37.62 kB / 436.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.187e-05/0.2284, allocations: 14.41 kB / 436.1 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.2285, allocations: 195.9 kB / 436.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.2286, allocations: 7.344 kB / 436.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/0.2286, allocations: 17.08 kB / 436.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.2287, allocations: 80.42 kB / 436.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.2287, allocations: 3.062 kB / 436.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.2287, allocations: 4 kB / 436.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.2288, allocations: 0 / 436.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.706e-05/0.2288, allocations: 44.59 kB / 436.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004642/0.2293, allocations: 372 kB / 436.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.2296, allocations: 88.38 kB / 436.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.388e-05/0.2296, allocations: 38.53 kB / 436.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.2297, allocations: 2.906 kB / 436.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.228e-05/0.2297, allocations: 34.56 kB / 436.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.2297, allocations: 0 / 436.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006345/0.2303, allocations: 421.9 kB / 437.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.379e-05/0.2304, allocations: 51.41 kB / 437.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.875e-05/0.2304, allocations: 153.5 kB / 437.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.2305, allocations: 32.36 kB / 437.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.376e-05/0.2305, allocations: 106.4 kB / 437.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/0.2305, allocations: 36.11 kB / 437.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.2306, allocations: 37.58 kB / 437.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.498e-05/0.2306, allocations: 325.5 kB / 438.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.382e-05/0.2307, allocations: 27.55 kB / 438.1 MB, free: 34.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.215e-05/0.2307, allocations: 50.72 kB / 438.2 MB, free: 34.71 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003969/0.2311, allocations: 245.2 kB / 438.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2311, allocations: 3.938 kB / 438.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002071/0.2314, allocations: 154.5 kB / 438.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.2314, allocations: 5.281 kB / 438.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2314, allocations: 0 / 438.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001432/0.2315, allocations: 36.77 kB / 438.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.643e-05/0.2316, allocations: 26.02 kB / 438.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009519/0.2326, allocations: 1.44 MB / 440.1 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.681e-05/0.2327, allocations: 7.062 kB / 440.1 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.2327, allocations: 2.156 kB / 440.1 MB, free: 33 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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: G.Pm = G.Pcmd. 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 (13): * 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: 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 prepare postOptimizeDAE: time 7.702e-05/0.2328, allocations: 134.8 kB / 440.2 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.2328, allocations: 9 kB / 440.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.046e-05/0.2328, allocations: 14.97 kB / 440.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2328, allocations: 3 kB / 440.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.2328, allocations: 0 / 440.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2328, allocations: 4 kB / 440.2 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003629/0.2332, allocations: 435.7 kB / 440.7 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2332, allocations: 3.938 kB / 440.7 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.803e-05/0.2333, allocations: 25 kB / 440.7 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001198/0.2334, allocations: 39.44 kB / 440.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.2335, allocations: 9.953 kB / 440.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007079/0.2342, allocations: 1.445 MB / 442.2 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2342, allocations: 0 / 442.2 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.2344, allocations: 272.5 kB / 442.4 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.998e-05/0.2345, allocations: 91.11 kB / 442.5 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.2345, allocations: 6.344 kB / 442.5 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.985e-05/0.2346, allocations: 4 kB / 442.5 MB, free: 30.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.347e-05/0.2346, allocations: 10.41 kB / 442.6 MB, free: 30.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.892e-06/0.2346, allocations: 2.938 kB / 442.6 MB, free: 30.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.88e-05/0.2347, allocations: 118.5 kB / 442.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2347, allocations: 0 / 442.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003135/0.235, allocations: 26.38 kB / 442.7 MB, free: 30.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.wg) * 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 (8): * Single equations (assignments): 7 * 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.0003812/0.2354, allocations: 0.8109 MB / 443.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002377/0.2356, allocations: 194.3 kB / 443.7 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2356, allocations: 0 / 443.7 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.2358, allocations: 158.9 kB / 443.9 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.236, allocations: 7.625 kB / 443.9 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.2376, allocations: 1.98 MB / 445.8 MB, free: 27.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.2377, allocations: 0.7119 MB / 446.6 MB, free: 27.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.848e-05/0.2377, allocations: 10.95 kB / 446.6 MB, free: 27.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.2378, allocations: 32.77 kB / 446.6 MB, free: 27.21 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2378, allocations: 0 / 446.6 MB, free: 27.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01154/0.2493, allocations: 2.673 MB / 449.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/0.2495, allocations: 250.4 kB / 449.5 MB, free: 26.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/1.829, allocations: 3 kB / 449.5 MB, free: 26.66 MB / 350.1 MB (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)