Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006941/0.006941, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001367/0.001367, allocations: 188.9 kB / 16.67 MB, free: 5.969 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.213/0.213, allocations: 22.35 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 69.06 kB / 434.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1086, allocations: 54.96 MB / 489.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002253/0.1109, allocations: 1.679 MB / 491.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005579/0.1115, allocations: 463 kB / 492 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.391e-05/0.1116, allocations: 0 / 492 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.051e-05/0.1116, allocations: 7.875 kB / 492 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.1119, allocations: 35.7 kB / 492.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.916e-05/0.1119, allocations: 27.97 kB / 492.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001443/0.1121, allocations: 123.5 kB / 492.2 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1122, allocations: 33.42 kB / 492.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.15e-05/0.1123, allocations: 47.8 kB / 492.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.588e-05/0.1124, allocations: 55.7 kB / 492.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.1124, allocations: 8 kB / 492.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.019e-05/0.1125, allocations: 8 kB / 492.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.1125, allocations: 27.89 kB / 492.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.32e-05/0.1125, allocations: 55.67 kB / 492.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.1126, allocations: 107.5 kB / 492.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1127, allocations: 4 kB / 492.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1127, allocations: 0 / 492.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1127, allocations: 0 / 492.6 MB, free: 0.6758 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004791/0.1132, allocations: 419 kB / 493 MB, free: 224 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.1132, allocations: 8.031 kB / 493 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.655e-05/0.1132, allocations: 20.73 kB / 493 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.1134, allocations: 204.7 kB / 493.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.1135, allocations: 16.11 kB / 493.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.1135, allocations: 12 kB / 493.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.1136, allocations: 77.58 kB / 493.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.1137, allocations: 0 / 493.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.1137, allocations: 4 kB / 493.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.1137, allocations: 4 kB / 493.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.055e-05/0.1138, allocations: 43.91 kB / 493.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.1144, allocations: 392.6 kB / 493.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.1147, allocations: 179.6 kB / 493.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.097e-05/0.1148, allocations: 40.84 kB / 494 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.1148, allocations: 0 / 494 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.1148, allocations: 34.56 kB / 494 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.062e-06/0.1148, allocations: 4 kB / 494 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007887/0.1156, allocations: 434.9 kB / 494.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.1157, allocations: 55.34 kB / 494.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.1158, allocations: 161.1 kB / 494.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.1159, allocations: 25.7 kB / 494.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.187e-05/0.1159, allocations: 120.2 kB / 494.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.72e-05/0.116, allocations: 51.28 kB / 494.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/0.116, allocations: 29.7 kB / 494.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1161, allocations: 322.8 kB / 495.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.311e-05/0.1162, allocations: 31.91 kB / 495.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.653e-05/0.1163, allocations: 58.55 kB / 495.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/0.1167, allocations: 176.8 kB / 495.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1167, allocations: 3.938 kB / 495.4 MB, free: 13.5 MB / 366.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004358/0.1171, allocations: 342.2 kB / 495.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.1172, allocations: 10.19 kB / 495.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.1172, allocations: 0 / 495.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001584/0.1173, allocations: 61.62 kB / 495.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.536e-05/0.1174, allocations: 23.98 kB / 495.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002648/0.1201, allocations: 4.635 MB / 0.4888 GB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.641e-05/0.1202, allocations: 8.031 kB / 0.4888 GB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.1202, allocations: 7.938 kB / 0.4888 GB, free: 8.027 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 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 (14): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.1203, allocations: 136.4 kB / 0.4889 GB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.1204, allocations: 7.906 kB / 0.4889 GB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.432e-05/0.1204, allocations: 16.72 kB / 0.4889 GB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.1204, allocations: 3.938 kB / 0.4889 GB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.1204, allocations: 4 kB / 0.4889 GB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1204, allocations: 0 / 0.4889 GB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005683/0.121, allocations: 464.8 kB / 0.4894 GB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.121, allocations: 0 / 0.4894 GB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.1211, allocations: 19.98 kB / 0.4894 GB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000117/0.1212, allocations: 32.83 kB / 0.4894 GB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.1213, allocations: 8 kB / 0.4894 GB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.1224, allocations: 1.619 MB / 0.491 GB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.1225, allocations: 7.969 kB / 0.491 GB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.1228, allocations: 285.8 kB / 0.4913 GB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.408e-05/0.1228, allocations: 89.05 kB / 0.4914 GB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.1229, allocations: 4 kB / 0.4914 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.493e-05/0.123, allocations: 4 kB / 0.4914 GB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.408e-05/0.123, allocations: 11.98 kB / 0.4914 GB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.123, allocations: 7.938 kB / 0.4914 GB, free: 5.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.325e-05/0.1231, allocations: 124.1 kB / 0.4915 GB, free: 4.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1231, allocations: 0 / 0.4915 GB, free: 4.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004315/0.1235, allocations: 28 kB / 0.4916 GB, free: 4.922 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.y) * 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 (9): * Single equations (assignments): 8 * 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.65e-05/0.1236, allocations: 101.2 kB / 0.4917 GB, free: 4.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003785/0.124, allocations: 329.2 kB / 0.492 GB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.124, allocations: 0 / 0.492 GB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.1242, allocations: 158.5 kB / 0.4921 GB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.1245, allocations: 19.98 kB / 0.4921 GB, free: 4.281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008529/0.1253, allocations: 0.496 MB / 0.4926 GB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.1256, allocations: 0.7085 MB / 0.4933 GB, free: 3.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.72e-05/0.1257, allocations: 20.59 kB / 0.4933 GB, free: 2.996 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.261e-05/0.1257, allocations: 11.44 kB / 0.4934 GB, free: 2.984 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1257, allocations: 0 / 0.4934 GB, free: 2.984 MB / 366.1 MB Notification: Performance of Templates: time 0.004255/0.13, allocations: 1.68 MB / 0.495 GB, free: 1.305 MB / 366.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)