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.001783/0.001783, allocations: 112.5 kB / 15.73 MB, free: 68 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.002158/0.002158, allocations: 192.7 kB / 16.66 MB, free: 6.586 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 2.454/2.454, allocations: 22.37 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 62.06 kB / 434.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09278, allocations: 54.96 MB / 489.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002108/0.09492, allocations: 1.613 MB / 491 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005455/0.09548, allocations: 443.1 kB / 491.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.027e-05/0.09555, allocations: 0 / 491.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.588e-05/0.09561, allocations: 15.86 kB / 491.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.09578, allocations: 23.78 kB / 491.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.584e-05/0.09585, allocations: 23.95 kB / 491.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.558e-05/0.09595, allocations: 103.6 kB / 491.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.09607, allocations: 32.2 kB / 491.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.994e-05/0.09616, allocations: 43.78 kB / 491.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.582e-05/0.09626, allocations: 51.77 kB / 491.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.09629, allocations: 8 kB / 491.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.75e-05/0.09631, allocations: 8 kB / 491.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.112e-05/0.09633, allocations: 19.86 kB / 491.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.723e-05/0.09638, allocations: 43.73 kB / 491.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.09648, allocations: 87.62 kB / 491.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.09649, allocations: 0 / 491.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.0965, allocations: 0 / 491.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.09651, allocations: 4 kB / 491.9 MB, free: 1.316 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.0004566/0.09697, allocations: 411 kB / 492.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.09701, allocations: 8.031 kB / 492.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.645e-05/0.09706, allocations: 42.73 kB / 492.4 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.902e-05/0.0971, allocations: 12.84 kB / 492.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.09722, allocations: 202.2 kB / 492.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.09724, allocations: 4.375 kB / 492.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.311e-05/0.09727, allocations: 16.12 kB / 492.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.0974, allocations: 81.61 kB / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.09741, allocations: 0 / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.09743, allocations: 0 / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.09744, allocations: 4 kB / 492.7 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.928e-05/0.09751, allocations: 43.88 kB / 492.7 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004461/0.09797, allocations: 372.6 kB / 493.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.09825, allocations: 94.53 kB / 493.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.289e-05/0.09833, allocations: 48.81 kB / 493.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.09835, allocations: 4 kB / 493.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.09838, allocations: 30.56 kB / 493.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.09839, allocations: 0 / 493.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007484/0.09914, allocations: 415.1 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.09919, allocations: 51.41 kB / 493.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.09933, allocations: 145.8 kB / 493.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.09935, allocations: 29.64 kB / 493.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/0.09943, allocations: 112 kB / 494 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.09947, allocations: 47.58 kB / 494 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-05/0.09953, allocations: 33.7 kB / 494.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.09967, allocations: 322.8 kB / 494.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.152e-05/0.09972, allocations: 24 kB / 494.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.841e-05/0.0998, allocations: 46.56 kB / 494.5 MB, free: 14.49 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004539/0.1003, allocations: 254.6 kB / 494.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1003, allocations: 7.938 kB / 494.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000238/0.1005, allocations: 142.4 kB / 494.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1005, allocations: 13.94 kB / 494.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1005, allocations: 0 / 494.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001471/0.1007, allocations: 32.83 kB / 494.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.26e-05/0.1008, allocations: 24.59 kB / 494.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.1022, allocations: 1.622 MB / 496.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.2e-05/0.1023, allocations: 0 / 496.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1023, allocations: 8.094 kB / 496.6 MB, free: 12.21 MB / 366.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 0.0001182/0.1024, allocations: 134.5 kB / 496.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.1024, allocations: 8.047 kB / 496.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.421e-05/0.1025, allocations: 16.7 kB / 496.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1025, allocations: 4 kB / 496.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.1025, allocations: 0 / 496.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1025, allocations: 0 / 496.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/0.103, allocations: 444.8 kB / 497.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.103, allocations: 0 / 497.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.772e-05/0.1031, allocations: 23.92 kB / 497.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.1032, allocations: 36.89 kB / 497.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.1033, allocations: 8 kB / 497.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.1045, allocations: 1.612 MB / 498.8 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1045, allocations: 0 / 498.8 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.1048, allocations: 270 kB / 499.1 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.386e-05/0.1048, allocations: 89.02 kB / 499.2 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.1049, allocations: 8.031 kB / 499.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.557e-05/0.105, allocations: 0 / 499.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.716e-05/0.105, allocations: 12 kB / 499.2 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.105, allocations: 11.92 kB / 499.2 MB, free: 9.301 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.469e-05/0.1051, allocations: 115.2 kB / 499.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1051, allocations: 0 / 499.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.1054, allocations: 28 kB / 499.3 MB, free: 9.16 MB / 366.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.0005987/0.106, allocations: 0.7932 MB / 0.4884 GB, free: 8.332 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003115/0.1064, allocations: 204.7 kB / 0.4886 GB, free: 8.121 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1064, allocations: 7.938 kB / 0.4886 GB, free: 8.113 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.1066, allocations: 158.6 kB / 0.4888 GB, free: 7.945 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.1068, allocations: 16.39 kB / 0.4888 GB, free: 7.934 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.109, allocations: 1.975 MB / 0.4907 GB, free: 5.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.1093, allocations: 0.7084 MB / 0.4914 GB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.61e-05/0.1093, allocations: 8.875 kB / 0.4914 GB, free: 5.098 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.413e-05/0.1094, allocations: 23.44 kB / 0.4914 GB, free: 5.074 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1094, allocations: 4 kB / 0.4914 GB, free: 5.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2785/0.3879, allocations: 2.961 MB / 0.4943 GB, free: 2.262 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.04, allocations: 11.06 kB / 0.4943 GB, free: 2.254 MB / 366.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)