Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_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: translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009142/0.009142, allocations: 102.7 kB / 15.73 MB, free: 6.039 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.00218/0.00218, allocations: 199.3 kB / 16.68 MB, free: 5.973 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2152/0.2152, allocations: 22.36 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 64.92 kB / 435 MB, free: 34.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.121, allocations: 54.97 MB / 489.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.003406/0.1245, allocations: 1.488 MB / 491.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008408/0.1254, allocations: 415.2 kB / 491.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.234e-05/0.1255, allocations: 0 / 491.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.479e-05/0.1255, allocations: 7.922 kB / 491.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.1258, allocations: 19.84 kB / 491.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.307e-05/0.1259, allocations: 7.984 kB / 491.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001175/0.126, allocations: 75.7 kB / 491.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.486e-05/0.1262, allocations: 4 kB / 491.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.1263, allocations: 43.78 kB / 492 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.1264, allocations: 31.83 kB / 492 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.1265, allocations: 8 kB / 492 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.947e-05/0.1265, allocations: 4 kB / 492 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.934e-05/0.1265, allocations: 15.92 kB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.051e-05/0.1266, allocations: 31.84 kB / 492.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.1267, allocations: 35.78 kB / 492.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.1267, allocations: 4 kB / 492.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1267, allocations: 0 / 492.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1268, allocations: 0 / 492.1 MB, free: 1.156 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006086/0.1274, allocations: 387.2 kB / 492.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.1274, allocations: 12.02 kB / 492.5 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.935e-05/0.1275, allocations: 8.844 kB / 492.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.1276, allocations: 184.2 kB / 492.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.1277, allocations: 4.375 kB / 492.7 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.1277, allocations: 4.375 kB / 492.7 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.1279, allocations: 69.55 kB / 492.8 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1279, allocations: 0 / 492.8 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.1279, allocations: 3.938 kB / 492.8 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1279, allocations: 7.984 kB / 492.8 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.201e-05/0.128, allocations: 35.97 kB / 492.8 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005804/0.1286, allocations: 308.7 kB / 493.1 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.129, allocations: 78.64 kB / 493.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.412e-05/0.1291, allocations: 28.86 kB / 493.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.1291, allocations: 8.125 kB / 493.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.1291, allocations: 34.55 kB / 493.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.703e-06/0.1291, allocations: 4 kB / 493.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0009249/0.1301, allocations: 382.8 kB / 493.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.1301, allocations: 51.41 kB / 493.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.1303, allocations: 134.1 kB / 493.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.1304, allocations: 25.7 kB / 493.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.258e-05/0.1305, allocations: 96.03 kB / 493.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.419e-05/0.1305, allocations: 43.39 kB / 494 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.387e-05/0.1306, allocations: 25.72 kB / 494 MB, free: 15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1307, allocations: 322.8 kB / 494.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.365e-05/0.1308, allocations: 23.92 kB / 494.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.798e-05/0.1309, allocations: 46.56 kB / 494.4 MB, free: 14.6 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0005886/0.1315, allocations: 226.2 kB / 494.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1315, allocations: 0.75 kB / 494.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003761/0.1319, allocations: 138.3 kB / 494.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1319, allocations: 4 kB / 494.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.132, allocations: 4 kB / 494.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001994/0.1322, allocations: 32.89 kB / 494.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.1323, allocations: 23.94 kB / 494.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.1344, allocations: 1.585 MB / 496.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.941e-05/0.1345, allocations: 12.02 kB / 496.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.1345, allocations: 4 kB / 496.4 MB, free: 12.4 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: 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: Pm = 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 (12): * Single equations (assignments): 11 * 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.0001505/0.1347, allocations: 122.5 kB / 496.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.929e-05/0.1347, allocations: 15.91 kB / 496.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.1348, allocations: 12.38 kB / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1348, allocations: 4 kB / 496.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.1348, allocations: 0 / 496.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1348, allocations: 3.984 kB / 496.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005835/0.1354, allocations: 372.1 kB / 496.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1354, allocations: 0 / 496.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.1355, allocations: 20.02 kB / 496.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001558/0.1357, allocations: 40.81 kB / 497 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.1357, allocations: 4 kB / 497 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001495/0.1372, allocations: 1.572 MB / 498.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.1373, allocations: 7.875 kB / 498.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003513/0.1376, allocations: 235.2 kB / 498.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.243e-05/0.1377, allocations: 93.17 kB / 498.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.1377, allocations: 4 kB / 498.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.1379, allocations: 11.98 kB / 498.9 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.44e-05/0.1379, allocations: 8.172 kB / 498.9 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.513e-06/0.1379, allocations: 0 / 498.9 MB, free: 9.641 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.122e-05/0.138, allocations: 111.2 kB / 499 MB, free: 9.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.138, allocations: 0 / 499 MB, free: 9.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000601/0.1386, allocations: 24 kB / 499 MB, free: 9.508 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,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 (7): * Single equations (assignments): 6 * 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.000122/0.1388, allocations: 99.19 kB / 499.1 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00042/0.1392, allocations: 182.6 kB / 499.3 MB, free: 9.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1392, allocations: 3.938 kB / 499.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.1394, allocations: 154.6 kB / 499.5 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.1398, allocations: 15.94 kB / 499.5 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.141, allocations: 411.9 kB / 499.9 MB, free: 8.594 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.1413, allocations: 0.704 MB / 0.4889 GB, free: 7.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.052e-05/0.1414, allocations: 8.562 kB / 0.4889 GB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.43e-05/0.1415, allocations: 11.44 kB / 0.4889 GB, free: 7.844 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1415, allocations: 0 / 0.4889 GB, free: 7.844 MB / 366.1 MB Notification: Performance of Templates: time 0.004211/0.1457, allocations: 1.174 MB / 0.49 GB, free: 6.672 MB / 366.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)