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.001103/0.001103, allocations: 108 kB / 15.61 MB, free: 152 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.001206/0.001206, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.331/1.331, 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.2732/0.2732, allocations: 22.35 MB / 312.7 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 63.89 kB / 378.8 MB, free: 12.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2419, allocations: 54.94 MB / 433.8 MB, free: 38.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002136/0.2441, allocations: 1.604 MB / 435.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005057/0.2446, allocations: 445.9 kB / 435.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.886e-05/0.2446, allocations: 0 / 435.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.491e-05/0.2447, allocations: 3.938 kB / 435.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.2448, allocations: 33.33 kB / 435.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.281e-05/0.2449, allocations: 24.86 kB / 435.9 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.853e-05/0.245, allocations: 100.5 kB / 436 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.2451, allocations: 24.39 kB / 436 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.601e-05/0.2452, allocations: 56.27 kB / 436 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.384e-05/0.2453, allocations: 37.89 kB / 436.1 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.268e-05/0.2453, allocations: 17.22 kB / 436.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.743e-05/0.2453, allocations: 8.312 kB / 436.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.924e-05/0.2454, allocations: 21.75 kB / 436.1 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.626e-05/0.2454, allocations: 49.67 kB / 436.2 MB, free: 37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.975e-05/0.2455, allocations: 88.72 kB / 436.3 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2455, allocations: 3.938 kB / 436.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2455, allocations: 0 / 436.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.2455, allocations: 0 / 436.3 MB, free: 36.96 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.0004247/0.246, allocations: 400.6 kB / 436.7 MB, free: 36.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.246, allocations: 10.41 kB / 436.7 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.605e-05/0.246, allocations: 41.16 kB / 436.7 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.865e-05/0.2461, allocations: 14.31 kB / 436.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.2462, allocations: 201.3 kB / 436.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.837e-06/0.2462, allocations: 6.469 kB / 436.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.2462, allocations: 14.72 kB / 436.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.2463, allocations: 81.69 kB / 437 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.2464, allocations: 0 / 437 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.2464, allocations: 4 kB / 437 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2464, allocations: 2.688 kB / 437 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.183e-05/0.2465, allocations: 46.06 kB / 437.1 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004225/0.2469, allocations: 368.3 kB / 437.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.2471, allocations: 86.64 kB / 437.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.429e-05/0.2472, allocations: 39.77 kB / 437.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.338e-06/0.2472, allocations: 7.969 kB / 437.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.021e-05/0.2472, allocations: 30.75 kB / 437.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.2472, allocations: 0 / 437.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005764/0.2478, allocations: 427.9 kB / 438 MB, free: 35.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.622e-05/0.2478, allocations: 52.06 kB / 438.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.441e-05/0.2479, allocations: 151.1 kB / 438.2 MB, free: 35.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-06/0.2479, allocations: 29.7 kB / 438.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.165e-05/0.248, allocations: 104.6 kB / 438.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.248, allocations: 39.56 kB / 438.4 MB, free: 35.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.248, allocations: 30.25 kB / 438.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.909e-05/0.2481, allocations: 325.4 kB / 438.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.302e-05/0.2481, allocations: 28.09 kB / 438.8 MB, free: 34.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.546e-05/0.2482, allocations: 58.11 kB / 438.8 MB, free: 34.7 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003734/0.2486, allocations: 236.8 kB / 439 MB, free: 34.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2486, allocations: 6.375 kB / 439 MB, free: 34.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002008/0.2488, allocations: 151.6 kB / 439.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.2488, allocations: 2.969 kB / 439.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2488, allocations: 0 / 439.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001316/0.2489, allocations: 39.8 kB / 439.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.432e-05/0.249, allocations: 27.66 kB / 439.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008621/0.2499, allocations: 1.612 MB / 440.9 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.754e-05/0.25, allocations: 6.938 kB / 440.9 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.25, allocations: 2.875 kB / 440.9 MB, free: 32.82 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 8.022e-05/0.2501, allocations: 132.2 kB / 441 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.2501, allocations: 9.656 kB / 441 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.124e-05/0.2502, allocations: 12.72 kB / 441 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2502, allocations: 3 kB / 441 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.2502, allocations: 3.938 kB / 441 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2502, allocations: 3.188 kB / 441 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003652/0.2505, allocations: 446.4 kB / 441.5 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2506, allocations: 3.938 kB / 441.5 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.04e-05/0.2506, allocations: 20.73 kB / 441.5 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001107/0.2508, allocations: 38.86 kB / 441.5 MB, free: 32.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.2508, allocations: 0 / 441.5 MB, free: 32.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007553/0.2515, allocations: 1.626 MB / 443.2 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2516, allocations: 0 / 443.2 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002202/0.2518, allocations: 263.3 kB / 443.4 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.2518, allocations: 91.42 kB / 443.5 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.2518, allocations: 6.625 kB / 443.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.241e-05/0.2519, allocations: 6.438 kB / 443.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.378e-05/0.252, allocations: 10.2 kB / 443.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.252, allocations: 6.938 kB / 443.5 MB, free: 30.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.252, allocations: 121 kB / 443.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.252, allocations: 0 / 443.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.2524, allocations: 28.47 kB / 443.7 MB, free: 30.23 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.0003538/0.2527, allocations: 0.7975 MB / 444.5 MB, free: 29.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002438/0.253, allocations: 204.3 kB / 444.7 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.253, allocations: 3.938 kB / 444.7 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.2531, allocations: 150 kB / 444.8 MB, free: 29.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.2534, allocations: 11.38 kB / 444.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.255, allocations: 1.966 MB / 446.8 MB, free: 27.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.864e-05/0.2551, allocations: 0.7037 MB / 447.5 MB, free: 26.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.63e-05/0.2551, allocations: 10.25 kB / 447.5 MB, free: 26.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.515e-05/0.2552, allocations: 32.17 kB / 447.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2552, allocations: 4 kB / 447.6 MB, free: 26.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03604/0.2912, allocations: 2.884 MB / 450.4 MB, free: 26.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.21/16.5, allocations: 6.438 kB / 450.5 MB, free: 26.46 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)