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.001242/0.001242, 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.001265/0.001265, allocations: 196.1 kB / 16.26 MB, free: 6.625 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.266/1.266, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2317/0.2317, allocations: 22.36 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 63.89 kB / 378.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2578, allocations: 54.94 MB / 433.3 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002074/0.2599, allocations: 1.667 MB / 434.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004863/0.2604, allocations: 452.6 kB / 435.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.55e-05/0.2605, allocations: 0 / 435.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.075e-05/0.2605, allocations: 7.172 kB / 435.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.2607, allocations: 22.09 kB / 435.4 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.033e-05/0.2607, allocations: 14.14 kB / 435.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.778e-05/0.2608, allocations: 105.9 kB / 435.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.261, allocations: 29.73 kB / 435.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.129e-05/0.2611, allocations: 48 kB / 435.6 MB, free: 37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.128e-05/0.2611, allocations: 44.61 kB / 435.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.2612, allocations: 6.281 kB / 435.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.531e-05/0.2612, allocations: 7.625 kB / 435.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.964e-05/0.2612, allocations: 23.03 kB / 435.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.697e-05/0.2612, allocations: 52.52 kB / 435.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.99e-05/0.2613, allocations: 85.66 kB / 435.8 MB, free: 36.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2613, allocations: 4 kB / 435.8 MB, free: 36.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2613, allocations: 3.938 kB / 435.8 MB, free: 36.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2614, allocations: 0 / 435.8 MB, free: 36.89 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.0004432/0.2618, allocations: 405.5 kB / 436.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2618, allocations: 10.56 kB / 436.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.905e-05/0.2619, allocations: 41 kB / 436.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.795e-05/0.2619, allocations: 14.81 kB / 436.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.262, allocations: 194.4 kB / 436.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.2621, allocations: 10.66 kB / 436.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.2621, allocations: 9.844 kB / 436.5 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.2622, allocations: 84.88 kB / 436.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.2622, allocations: 2.656 kB / 436.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.2622, allocations: 3.938 kB / 436.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2622, allocations: 2.5 kB / 436.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.611e-05/0.2623, allocations: 41.28 kB / 436.6 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004258/0.2627, allocations: 369.3 kB / 437 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.263, allocations: 92 kB / 437.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.109e-05/0.263, allocations: 37.19 kB / 437.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.798e-06/0.263, allocations: 7.938 kB / 437.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.593e-05/0.2631, allocations: 37.28 kB / 437.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.2631, allocations: 0 / 437.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005547/0.2636, allocations: 414.3 kB / 437.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.944e-05/0.2637, allocations: 53.75 kB / 437.6 MB, free: 35.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.563e-05/0.2637, allocations: 150.5 kB / 437.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.966e-06/0.2638, allocations: 29.7 kB / 437.8 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.427e-05/0.2638, allocations: 105.5 kB / 437.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.435e-05/0.2638, allocations: 37.61 kB / 437.9 MB, free: 35.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/0.2639, allocations: 35.55 kB / 438 MB, free: 35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.066e-05/0.2639, allocations: 320.6 kB / 438.3 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.919e-05/0.264, allocations: 27.05 kB / 438.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.045e-05/0.264, allocations: 50.64 kB / 438.4 MB, free: 34.64 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003584/0.2644, allocations: 243.3 kB / 438.6 MB, free: 34.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2644, allocations: 7.938 kB / 438.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001905/0.2646, allocations: 150.2 kB / 438.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.2646, allocations: 5.688 kB / 438.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.2646, allocations: 3.094 kB / 438.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001205/0.2647, allocations: 31.94 kB / 438.8 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.107e-05/0.2648, allocations: 26.34 kB / 438.8 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000852/0.2657, allocations: 1.614 MB / 440.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.504e-05/0.2658, allocations: 6.906 kB / 440.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.2658, allocations: 7.688 kB / 440.5 MB, free: 32.75 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.634e-05/0.2659, allocations: 134.1 kB / 440.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.761e-05/0.2659, allocations: 9.688 kB / 440.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.03e-05/0.2659, allocations: 15.62 kB / 440.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.2659, allocations: 0 / 440.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.82e-07/0.2659, allocations: 0 / 440.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2659, allocations: 3.188 kB / 440.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003527/0.2663, allocations: 447.4 kB / 441 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2663, allocations: 0 / 441 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.807e-05/0.2664, allocations: 20.33 kB / 441.1 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001037/0.2665, allocations: 40.7 kB / 441.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.2665, allocations: 6.75 kB / 441.1 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006935/0.2672, allocations: 1.62 MB / 442.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2672, allocations: 4.094 kB / 442.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002111/0.2674, allocations: 261.3 kB / 443 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.362e-05/0.2675, allocations: 87.58 kB / 443.1 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.2675, allocations: 9.953 kB / 443.1 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.878e-05/0.2676, allocations: 4 kB / 443.1 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.985e-05/0.2676, allocations: 12.53 kB / 443.1 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.2676, allocations: 3.031 kB / 443.1 MB, free: 30.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.765e-05/0.2677, allocations: 123 kB / 443.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2677, allocations: 0 / 443.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.268, allocations: 25.97 kB / 443.3 MB, free: 30.17 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.0003512/0.2684, allocations: 0.8003 MB / 444.1 MB, free: 29.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.2686, allocations: 200.8 kB / 444.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2686, allocations: 4.125 kB / 444.3 MB, free: 29.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.2687, allocations: 160.6 kB / 444.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.269, allocations: 8.281 kB / 444.4 MB, free: 29.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.2705, allocations: 1.991 MB / 446.4 MB, free: 27.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001062/0.2706, allocations: 0.7047 MB / 447.1 MB, free: 26.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.619e-05/0.2707, allocations: 13.97 kB / 447.1 MB, free: 26.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.284e-05/0.2707, allocations: 26.33 kB / 447.2 MB, free: 26.79 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2707, allocations: 0 / 447.2 MB, free: 26.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.2864, allocations: 2.804 MB / 450 MB, free: 26.49 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.2866, allocations: 246.6 kB / 450.2 MB, free: 26.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/1.979, allocations: 4 kB / 450.2 MB, free: 26.24 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)