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.007476/0.007476, allocations: 105.9 kB / 15.73 MB, free: 6 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.001844/0.001844, allocations: 189 kB / 16.67 MB, free: 5.926 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.379/1.379, allocations: 222.9 MB / 240.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1235/0.1235, allocations: 22.33 MB / 312.8 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.91 kB / 434.9 MB, free: 13.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1138, allocations: 54.95 MB / 489.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.003177/0.117, allocations: 1.596 MB / 491.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007975/0.1179, allocations: 451 kB / 491.9 MB, free: 4.809 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.118, allocations: 0 / 491.9 MB, free: 4.809 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.839e-05/0.1181, allocations: 11.86 kB / 491.9 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.1183, allocations: 39.77 kB / 491.9 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.549e-05/0.1184, allocations: 23.97 kB / 492 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001312/0.1185, allocations: 103.6 kB / 492.1 MB, free: 4.633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.1187, allocations: 19.98 kB / 492.1 MB, free: 4.613 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.1188, allocations: 47.78 kB / 492.1 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.1189, allocations: 39.83 kB / 492.2 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.119, allocations: 12 kB / 492.2 MB, free: 4.516 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.308e-05/0.119, allocations: 8 kB / 492.2 MB, free: 4.508 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.99e-05/0.119, allocations: 23.92 kB / 492.2 MB, free: 4.484 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.591e-05/0.1191, allocations: 47.67 kB / 492.3 MB, free: 4.438 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.1192, allocations: 91.62 kB / 492.4 MB, free: 4.348 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1192, allocations: 0 / 492.4 MB, free: 4.348 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1192, allocations: 0 / 492.4 MB, free: 4.348 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1192, allocations: 0 / 492.4 MB, free: 4.348 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.0005794/0.1198, allocations: 409.8 kB / 492.8 MB, free: 3.902 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.1199, allocations: 12.03 kB / 492.8 MB, free: 3.891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.104e-05/0.1199, allocations: 8.844 kB / 492.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.1201, allocations: 195.5 kB / 493 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1201, allocations: 12.31 kB / 493 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.155e-05/0.1202, allocations: 12.38 kB / 493 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.1203, allocations: 77.59 kB / 493.1 MB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1204, allocations: 0 / 493.1 MB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.1204, allocations: 7.984 kB / 493.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1204, allocations: 0 / 493.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.989e-05/0.1205, allocations: 43.98 kB / 493.1 MB, free: 3.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000671/0.1212, allocations: 360.5 kB / 493.5 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.1215, allocations: 90.48 kB / 493.6 MB, free: 3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.94e-05/0.1215, allocations: 44.88 kB / 493.6 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.1216, allocations: 4 kB / 493.6 MB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.1216, allocations: 38.56 kB / 493.6 MB, free: 2.902 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.1216, allocations: 0 / 493.6 MB, free: 2.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.000845/0.1225, allocations: 418.9 kB / 494 MB, free: 2.438 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.1225, allocations: 51.41 kB / 494.1 MB, free: 2.375 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.1226, allocations: 151.8 kB / 494.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.1227, allocations: 29.7 kB / 494.3 MB, free: 2.184 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.335e-05/0.1227, allocations: 104 kB / 494.4 MB, free: 2.078 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/0.1228, allocations: 39.36 kB / 494.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.1228, allocations: 33.7 kB / 494.4 MB, free: 2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.123, allocations: 322.8 kB / 494.8 MB, free: 1.676 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.536e-05/0.123, allocations: 24 kB / 494.8 MB, free: 1.652 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.031e-05/0.1231, allocations: 58.48 kB / 494.8 MB, free: 1.586 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004619/0.1236, allocations: 243.5 kB / 495.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1236, allocations: 0 / 495.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002501/0.1238, allocations: 154.2 kB / 495.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.1239, allocations: 4 kB / 495.2 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1239, allocations: 4 kB / 495.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001586/0.124, allocations: 36.89 kB / 495.3 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.578e-05/0.1241, allocations: 23.98 kB / 495.3 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.1255, allocations: 1.608 MB / 496.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.362e-05/0.1256, allocations: 8.031 kB / 496.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.1257, allocations: 4 kB / 496.9 MB, free: 15.33 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.0001483/0.1258, allocations: 133.7 kB / 497.1 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.1259, allocations: 11.91 kB / 497.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.346e-05/0.1259, allocations: 20.59 kB / 497.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1259, allocations: 0 / 497.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1259, allocations: 0 / 497.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1259, allocations: 7.984 kB / 497.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005174/0.1264, allocations: 428.9 kB / 497.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.1265, allocations: 12 kB / 497.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.755e-05/0.1266, allocations: 15.98 kB / 497.5 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001585/0.1267, allocations: 40.77 kB / 497.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.1267, allocations: 0 / 497.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/0.128, allocations: 1.619 MB / 499.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.128, allocations: 0 / 499.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003162/0.1283, allocations: 278 kB / 499.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.149e-05/0.1284, allocations: 85.02 kB / 499.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.1284, allocations: 11.97 kB / 499.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.386e-05/0.1285, allocations: 4 kB / 499.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.214e-05/0.1286, allocations: 11.98 kB / 499.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.1286, allocations: 4 kB / 499.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.167e-05/0.1287, allocations: 109 kB / 499.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1287, allocations: 4 kB / 499.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003453/0.129, allocations: 24 kB / 499.7 MB, free: 12.28 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 0.0001303/0.1291, allocations: 111.1 kB / 499.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003621/0.1295, allocations: 194.7 kB / 0.4883 GB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1295, allocations: 0 / 0.4883 GB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.1297, allocations: 170.5 kB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.13, allocations: 8 kB / 0.4885 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008965/0.1309, allocations: 453.6 kB / 0.4889 GB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.1312, allocations: 0.7045 MB / 0.4896 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.341e-05/0.1312, allocations: 13.16 kB / 0.4896 GB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.1313, allocations: 11.44 kB / 0.4896 GB, free: 10.53 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1313, allocations: 0 / 0.4896 GB, free: 10.53 MB / 382.1 MB Notification: Performance of Templates: time 0.004081/0.1354, allocations: 1.389 MB / 0.491 GB, free: 9.141 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)