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.001127/0.001127, allocations: 105.4 kB / 16.41 MB, free: 6.457 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.001073/0.001074, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08706/0.08706, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.91 kB / 435.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1216, allocations: 54.95 MB / 490.5 MB, free: 6.887 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.003021/0.1246, allocations: 1.471 MB / 492 MB, free: 5.398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008386/0.1255, allocations: 423.1 kB / 492.4 MB, free: 4.984 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.447e-05/0.1256, allocations: 0 / 492.4 MB, free: 4.984 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.197e-05/0.1257, allocations: 3.938 kB / 492.4 MB, free: 4.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002132/0.1259, allocations: 35.77 kB / 492.5 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.85e-05/0.126, allocations: 3.984 kB / 492.5 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001249/0.1261, allocations: 71.72 kB / 492.5 MB, free: 4.871 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.799e-05/0.1262, allocations: 7.984 kB / 492.6 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.1264, allocations: 39.84 kB / 492.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.1265, allocations: 31.84 kB / 492.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.749e-05/0.1265, allocations: 0 / 492.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.477e-05/0.1265, allocations: 4 kB / 492.6 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.768e-05/0.1266, allocations: 15.92 kB / 492.6 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.763e-05/0.1266, allocations: 35.73 kB / 492.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.1268, allocations: 51.75 kB / 492.7 MB, free: 4.688 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1268, allocations: 0 / 492.7 MB, free: 4.688 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1268, allocations: 4 kB / 492.7 MB, free: 4.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1268, allocations: 0 / 492.7 MB, free: 4.684 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006065/0.1274, allocations: 379.2 kB / 493.1 MB, free: 4.266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1274, allocations: 8.031 kB / 493.1 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.1275, allocations: 8.844 kB / 493.1 MB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/0.1277, allocations: 176.3 kB / 493.3 MB, free: 4.039 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.1277, allocations: 4.375 kB / 493.3 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.1278, allocations: 8.375 kB / 493.3 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.1279, allocations: 65.61 kB / 493.4 MB, free: 3.957 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1279, allocations: 0 / 493.4 MB, free: 3.957 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.1279, allocations: 4 kB / 493.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1279, allocations: 3.938 kB / 493.4 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.952e-05/0.128, allocations: 31.97 kB / 493.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005579/0.1286, allocations: 316.6 kB / 493.7 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.1289, allocations: 86.58 kB / 493.8 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.733e-05/0.1289, allocations: 32.84 kB / 493.8 MB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.129, allocations: 0 / 493.8 MB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.129, allocations: 34.56 kB / 493.9 MB, free: 3.387 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.012e-06/0.129, allocations: 3.938 kB / 493.9 MB, free: 3.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.000808/0.1298, allocations: 390.9 kB / 494.3 MB, free: 2.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.1298, allocations: 51.41 kB / 494.3 MB, free: 2.883 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.13, allocations: 137.6 kB / 494.4 MB, free: 2.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.13, allocations: 25.7 kB / 494.5 MB, free: 2.707 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.681e-05/0.1301, allocations: 99.95 kB / 494.6 MB, free: 2.605 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.1301, allocations: 31.55 kB / 494.6 MB, free: 2.574 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.625e-05/0.1301, allocations: 33.7 kB / 494.6 MB, free: 2.535 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1303, allocations: 318.8 kB / 494.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.39e-05/0.1303, allocations: 19.98 kB / 495 MB, free: 2.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.433e-05/0.1304, allocations: 49.23 kB / 495 MB, free: 2.141 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004414/0.1308, allocations: 223.5 kB / 495.2 MB, free: 1.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1308, allocations: 0 / 495.2 MB, free: 1.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002437/0.1311, allocations: 136.7 kB / 495.4 MB, free: 1.754 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1311, allocations: 12.06 kB / 495.4 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1311, allocations: 4 kB / 495.4 MB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/0.1313, allocations: 36.77 kB / 495.4 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.496e-05/0.1314, allocations: 19.98 kB / 495.4 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.1328, allocations: 1.565 MB / 497 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.996e-05/0.1329, allocations: 4 kB / 497 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.1329, allocations: 8.078 kB / 497 MB, free: 15.96 MB / 382.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.0001349/0.1331, allocations: 138.3 kB / 497.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.1331, allocations: 15.83 kB / 497.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.402e-05/0.1331, allocations: 12.38 kB / 497.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1332, allocations: 4 kB / 497.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.1332, allocations: 0 / 497.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1332, allocations: 0 / 497.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004371/0.1336, allocations: 384.1 kB / 497.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1336, allocations: 112 / 497.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.035e-05/0.1337, allocations: 23.88 kB / 497.6 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.1338, allocations: 36.81 kB / 497.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.1339, allocations: 0 / 497.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.1349, allocations: 1.58 MB / 499.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1349, allocations: 3.938 kB / 499.2 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002515/0.1352, allocations: 237.1 kB / 499.4 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.301e-05/0.1352, allocations: 84.95 kB / 499.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.1353, allocations: 4 kB / 499.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.635e-05/0.1354, allocations: 16.22 kB / 499.5 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.72e-05/0.1354, allocations: 4 kB / 499.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.824e-06/0.1354, allocations: 7.984 kB / 499.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.37e-05/0.1355, allocations: 99.27 kB / 499.6 MB, free: 13.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1355, allocations: 0 / 499.6 MB, free: 13.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003243/0.1358, allocations: 27.98 kB / 499.7 MB, free: 13.05 MB / 382.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 9.998e-05/0.1359, allocations: 95.25 kB / 499.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000344/0.1363, allocations: 190.5 kB / 499.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1363, allocations: 192 / 499.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.1364, allocations: 154.6 kB / 0.4884 GB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002389/0.1367, allocations: 14.94 kB / 0.4884 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008078/0.1375, allocations: 441.7 kB / 0.4888 GB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.1378, allocations: 0.7 MB / 0.4895 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.632e-05/0.1378, allocations: 11.44 kB / 0.4895 GB, free: 11.37 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1378, allocations: 0 / 0.4895 GB, free: 11.37 MB / 382.1 MB Notification: Performance of Templates: time 0.003339/0.1412, allocations: 1.363 MB / 0.4908 GB, free: 10.01 MB / 382.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)