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: translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 104.6 kB / 16.41 MB, free: 6.449 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.001655/0.001655, allocations: 189.4 kB / 17.34 MB, free: 5.738 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1173/0.1173, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 67.91 kB / 435.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1129, allocations: 54.94 MB / 490.5 MB, free: 6.918 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.00264/0.1156, allocations: 1.604 MB / 492.1 MB, free: 5.297 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007065/0.1163, allocations: 451 kB / 492.6 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.814e-05/0.1164, allocations: 0 / 492.6 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.622e-05/0.1165, allocations: 7.875 kB / 492.6 MB, free: 4.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.1167, allocations: 35.77 kB / 492.6 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.048e-05/0.1167, allocations: 19.97 kB / 492.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.1169, allocations: 107.6 kB / 492.7 MB, free: 4.688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.117, allocations: 19.98 kB / 492.8 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.1171, allocations: 43.84 kB / 492.8 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.958e-05/0.1172, allocations: 47.77 kB / 492.9 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.1173, allocations: 12 kB / 492.9 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.827e-05/0.1173, allocations: 11.94 kB / 492.9 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.858e-05/0.1173, allocations: 23.91 kB / 492.9 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.808e-05/0.1174, allocations: 43.73 kB / 492.9 MB, free: 4.488 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.1175, allocations: 95.56 kB / 493 MB, free: 4.395 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1175, allocations: 0 / 493 MB, free: 4.395 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1175, allocations: 0 / 493 MB, free: 4.395 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1176, allocations: 0 / 493 MB, free: 4.395 MB / 366.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.0005987/0.1182, allocations: 409.8 kB / 493.4 MB, free: 3.949 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.1182, allocations: 12.03 kB / 493.4 MB, free: 3.938 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.188e-05/0.1183, allocations: 12.84 kB / 493.5 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.1184, allocations: 196.1 kB / 493.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.1185, allocations: 384 / 493.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.1185, allocations: 12.38 kB / 493.7 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.1186, allocations: 77.55 kB / 493.7 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.1187, allocations: 4 kB / 493.7 MB, free: 3.598 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.1187, allocations: 0 / 493.7 MB, free: 3.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1187, allocations: 4 kB / 493.7 MB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.22e-05/0.1188, allocations: 43.97 kB / 493.8 MB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005626/0.1193, allocations: 364.5 kB / 494.1 MB, free: 3.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.1196, allocations: 90.64 kB / 494.2 MB, free: 3.047 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.449e-05/0.1197, allocations: 40.84 kB / 494.3 MB, free: 3.004 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.1197, allocations: 4.188 kB / 494.3 MB, free: 3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.1197, allocations: 38.5 kB / 494.3 MB, free: 2.953 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.1197, allocations: 0 / 494.3 MB, free: 2.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007419/0.1205, allocations: 422.7 kB / 494.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.1205, allocations: 55.41 kB / 494.8 MB, free: 2.418 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.1207, allocations: 142.5 kB / 494.9 MB, free: 2.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.1207, allocations: 29.7 kB / 495 MB, free: 2.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.044e-05/0.1207, allocations: 104 kB / 495.1 MB, free: 2.129 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.536e-05/0.1208, allocations: 43.36 kB / 495.1 MB, free: 2.086 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.1208, allocations: 25.72 kB / 495.1 MB, free: 2.055 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1209, allocations: 322.8 kB / 495.4 MB, free: 1.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.649e-05/0.121, allocations: 27.98 kB / 495.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.98e-05/0.1211, allocations: 57.31 kB / 495.5 MB, free: 1.641 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004289/0.1215, allocations: 246.9 kB / 495.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.81e-07/0.1215, allocations: 0 / 495.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002316/0.1218, allocations: 154.3 kB / 495.9 MB, free: 1.211 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1218, allocations: 6.031 kB / 495.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1218, allocations: 7.938 kB / 495.9 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001593/0.122, allocations: 36.89 kB / 496 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.061e-05/0.1221, allocations: 20 kB / 496 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.1234, allocations: 1.615 MB / 497.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.611e-05/0.1235, allocations: 0 / 497.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.1235, allocations: 4 kB / 497.6 MB, free: 15.38 MB / 382.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.0001214/0.1236, allocations: 141.7 kB / 497.7 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.1236, allocations: 15.84 kB / 497.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.177e-05/0.1237, allocations: 12.72 kB / 497.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1237, allocations: 0 / 497.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1237, allocations: 4 kB / 497.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1237, allocations: 96 / 497.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004673/0.1242, allocations: 432.9 kB / 498.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.1242, allocations: 11.92 kB / 498.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.117e-05/0.1243, allocations: 12 kB / 498.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001246/0.1244, allocations: 40.81 kB / 498.3 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.1244, allocations: 4 kB / 498.3 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.1255, allocations: 1.615 MB / 499.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.1255, allocations: 3.938 kB / 499.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.1258, allocations: 265.9 kB / 0.4884 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.956e-05/0.1259, allocations: 89.05 kB / 0.4885 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.1259, allocations: 11.94 kB / 0.4885 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.581e-05/0.126, allocations: 0 / 0.4885 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.559e-05/0.126, allocations: 16.03 kB / 0.4885 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.1261, allocations: 4 kB / 0.4885 GB, free: 12.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.011e-05/0.1261, allocations: 111.2 kB / 0.4886 GB, free: 12.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1261, allocations: 0 / 0.4886 GB, free: 12.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.1265, allocations: 24 kB / 0.4887 GB, free: 12.33 MB / 382.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 9.865e-05/0.1266, allocations: 107.1 kB / 0.4888 GB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003134/0.1269, allocations: 194.7 kB / 0.489 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.1269, allocations: 7.938 kB / 0.489 GB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.1271, allocations: 158.6 kB / 0.4891 GB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.1273, allocations: 8 kB / 0.4891 GB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008545/0.1282, allocations: 491.4 kB / 0.4896 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.1285, allocations: 0.7083 MB / 0.4903 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.546e-05/0.1285, allocations: 15.44 kB / 0.4903 GB, free: 10.56 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1285, allocations: 0 / 0.4903 GB, free: 10.56 MB / 382.1 MB Notification: Performance of Templates: time 0.003293/0.1318, allocations: 1.682 MB / 0.4919 GB, free: 8.879 MB / 382.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.makefile (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 & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)