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.001641/0.001641, 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.001866/0.001866, allocations: 196.6 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2735/0.2735, allocations: 22.34 MB / 312.7 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 68.08 kB / 378.8 MB, free: 12.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2341, allocations: 54.95 MB / 433.8 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002274/0.2364, allocations: 1.597 MB / 435.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00053/0.2369, allocations: 440.4 kB / 435.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.201e-05/0.237, allocations: 2.906 kB / 435.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.528e-05/0.2371, allocations: 7.875 kB / 435.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.2372, allocations: 28.95 kB / 435.8 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.6e-05/0.2373, allocations: 21.44 kB / 435.9 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.66e-05/0.2374, allocations: 106.7 kB / 436 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.2375, allocations: 29.55 kB / 436 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.648e-05/0.2376, allocations: 46.7 kB / 436 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.782e-05/0.2377, allocations: 45.42 kB / 436.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.2377, allocations: 8.953 kB / 436.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.778e-05/0.2377, allocations: 12.19 kB / 436.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.135e-05/0.2377, allocations: 17.75 kB / 436.1 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.957e-05/0.2378, allocations: 55.62 kB / 436.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.265e-05/0.2379, allocations: 85.55 kB / 436.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2379, allocations: 7.938 kB / 436.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2379, allocations: 0 / 436.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.2379, allocations: 0 / 436.3 MB, free: 37.2 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.0004406/0.2384, allocations: 403.5 kB / 436.7 MB, free: 36.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.2384, allocations: 11.66 kB / 436.7 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.202e-05/0.2384, allocations: 41.02 kB / 436.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.204e-05/0.2385, allocations: 15.62 kB / 436.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.2386, allocations: 196.2 kB / 436.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.2386, allocations: 7.781 kB / 436.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.2386, allocations: 11.03 kB / 436.9 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.2388, allocations: 83.3 kB / 437 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2388, allocations: 0 / 437 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.2388, allocations: 0 / 437 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2388, allocations: 2.688 kB / 437 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.176e-05/0.2389, allocations: 40.58 kB / 437.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004361/0.2393, allocations: 376.3 kB / 437.4 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.2396, allocations: 95.09 kB / 437.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.469e-05/0.2396, allocations: 38.39 kB / 437.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.2397, allocations: 6.906 kB / 437.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.111e-05/0.2397, allocations: 30.56 kB / 437.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.2397, allocations: 0 / 437.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006027/0.2403, allocations: 424.8 kB / 438 MB, free: 35.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.105e-05/0.2403, allocations: 51.41 kB / 438.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.807e-05/0.2404, allocations: 156.5 kB / 438.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.606e-06/0.2404, allocations: 25.7 kB / 438.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/0.2405, allocations: 102.2 kB / 438.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.2405, allocations: 40.22 kB / 438.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.2405, allocations: 35.52 kB / 438.4 MB, free: 35.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.153e-05/0.2406, allocations: 324.7 kB / 438.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.456e-05/0.2406, allocations: 29.16 kB / 438.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.174e-05/0.2407, allocations: 59.08 kB / 438.8 MB, free: 34.93 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.2411, allocations: 240.6 kB / 439.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2411, allocations: 3.938 kB / 439.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002005/0.2413, allocations: 149.3 kB / 439.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.2413, allocations: 5.344 kB / 439.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.2413, allocations: 0 / 439.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/0.2415, allocations: 37.58 kB / 439.2 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.845e-05/0.2416, allocations: 29.67 kB / 439.3 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009032/0.2425, allocations: 1.61 MB / 440.9 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.827e-05/0.2425, allocations: 6.531 kB / 440.9 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-06/0.2426, allocations: 6.656 kB / 440.9 MB, free: 33.05 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.531e-05/0.2426, allocations: 132.5 kB / 441 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.2427, allocations: 10.59 kB / 441 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.174e-05/0.2427, allocations: 15.91 kB / 441.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2427, allocations: 2.719 kB / 441.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.2427, allocations: 0 / 441.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2427, allocations: 0 / 441.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003682/0.2431, allocations: 442.5 kB / 441.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.2431, allocations: 6.984 kB / 441.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.126e-05/0.2432, allocations: 20.12 kB / 441.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001126/0.2433, allocations: 40.83 kB / 441.6 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.2433, allocations: 3.281 kB / 441.6 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007628/0.2441, allocations: 1.619 MB / 443.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2441, allocations: 3.25 kB / 443.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.2443, allocations: 253.9 kB / 443.4 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.619e-05/0.2444, allocations: 93.39 kB / 443.5 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.2444, allocations: 8 kB / 443.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.978e-05/0.2445, allocations: 2.531 kB / 443.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.183e-05/0.2445, allocations: 13.19 kB / 443.5 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.7e-06/0.2445, allocations: 2.812 kB / 443.5 MB, free: 30.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.587e-05/0.2446, allocations: 121.2 kB / 443.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.012e-06/0.2446, allocations: 0 / 443.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003327/0.2449, allocations: 31.31 kB / 443.7 MB, free: 30.47 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.0003697/0.2453, allocations: 0.8024 MB / 444.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002557/0.2456, allocations: 206.8 kB / 444.7 MB, free: 29.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2456, allocations: 2.719 kB / 444.7 MB, free: 29.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.2457, allocations: 151 kB / 444.8 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.246, allocations: 15.64 kB / 444.9 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.2477, allocations: 1.966 MB / 446.8 MB, free: 27.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.2479, allocations: 0.7058 MB / 447.5 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.133e-05/0.2479, allocations: 10.17 kB / 447.5 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.911e-05/0.248, allocations: 22.38 kB / 447.6 MB, free: 27.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.248, allocations: 6.906 kB / 447.6 MB, free: 27.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.2693, allocations: 2.878 MB / 450.5 MB, free: 26.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.06, allocations: 11.25 kB / 450.5 MB, free: 26.69 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 & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_order0_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)