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.00127/0.00127, allocations: 106.5 kB / 16.41 MB, free: 5.98 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.001263/0.001263, allocations: 194.3 kB / 17.35 MB, free: 5.574 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09016/0.09016, allocations: 22.32 MB / 313.5 MB, free: 8.855 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.91 kB / 435.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1087, allocations: 54.95 MB / 490.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.00268/0.1114, allocations: 1.677 MB / 492.2 MB, free: 5.168 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007169/0.1122, allocations: 463.1 kB / 492.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.44e-05/0.1123, allocations: 0 / 492.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.633e-05/0.1123, allocations: 11.86 kB / 492.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.1125, allocations: 35.7 kB / 492.7 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.081e-05/0.1126, allocations: 23.97 kB / 492.7 MB, free: 4.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.1128, allocations: 127.5 kB / 492.9 MB, free: 4.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.113, allocations: 21.45 kB / 492.9 MB, free: 4.496 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.821e-05/0.1131, allocations: 55.72 kB / 492.9 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.1132, allocations: 55.75 kB / 493 MB, free: 4.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.1132, allocations: 8 kB / 493 MB, free: 4.379 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.06e-05/0.1132, allocations: 8 kB / 493 MB, free: 4.371 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.1133, allocations: 23.92 kB / 493 MB, free: 4.348 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.724e-05/0.1133, allocations: 59.59 kB / 493.1 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.1135, allocations: 107.6 kB / 493.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1135, allocations: 0 / 493.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1135, allocations: 0 / 493.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1135, allocations: 0 / 493.2 MB, free: 4.184 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005794/0.1141, allocations: 423 kB / 493.6 MB, free: 3.723 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.1141, allocations: 8.031 kB / 493.6 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.149e-05/0.1142, allocations: 16.75 kB / 493.6 MB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.1145, allocations: 212.6 kB / 493.8 MB, free: 3.453 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1145, allocations: 8.125 kB / 493.8 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.1145, allocations: 15.91 kB / 493.9 MB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.1147, allocations: 83.84 kB / 493.9 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1147, allocations: 0 / 493.9 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.1147, allocations: 0 / 493.9 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1147, allocations: 4 kB / 493.9 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.114e-05/0.1148, allocations: 39.97 kB / 494 MB, free: 3.301 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005862/0.1154, allocations: 384.5 kB / 494.4 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.1157, allocations: 179.6 kB / 494.5 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.082e-05/0.1158, allocations: 48.94 kB / 494.6 MB, free: 2.621 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.1158, allocations: 4 kB / 494.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.1158, allocations: 38.55 kB / 494.6 MB, free: 2.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.1158, allocations: 4 kB / 494.6 MB, free: 2.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007447/0.1166, allocations: 434.7 kB / 495.1 MB, free: 2.086 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.1166, allocations: 55.41 kB / 495.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.1168, allocations: 160 kB / 495.3 MB, free: 1.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.1168, allocations: 29.7 kB / 495.3 MB, free: 1.816 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.995e-05/0.1169, allocations: 120.1 kB / 495.4 MB, free: 1.691 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.1169, allocations: 39.45 kB / 495.4 MB, free: 1.652 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.142e-05/0.1169, allocations: 29.62 kB / 495.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.68e-05/0.117, allocations: 326.8 kB / 495.8 MB, free: 1.289 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.101e-05/0.1171, allocations: 27.98 kB / 495.8 MB, free: 1.262 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.961e-05/0.1172, allocations: 62.55 kB / 495.9 MB, free: 1.191 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004056/0.1176, allocations: 177.2 kB / 496.1 MB, free: 1.012 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1176, allocations: 3.938 kB / 496.1 MB, free: 1.008 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.0004591/0.1181, allocations: 349 kB / 496.4 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.1181, allocations: 4 kB / 496.4 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.1181, allocations: 0 / 496.4 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000174/0.1183, allocations: 61.62 kB / 496.5 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.995e-05/0.1184, allocations: 27.98 kB / 496.5 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.1209, allocations: 4.629 MB / 0.4894 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.196e-05/0.121, allocations: 4.031 kB / 0.4894 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.121, allocations: 11.94 kB / 0.4894 GB, free: 11.53 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 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.000123/0.1212, allocations: 130.5 kB / 0.4895 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.621e-05/0.1212, allocations: 15.89 kB / 0.4895 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.445e-05/0.1212, allocations: 12.72 kB / 0.4895 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1212, allocations: 8.031 kB / 0.4896 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1212, allocations: 0 / 0.4896 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1213, allocations: 0 / 0.4896 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000511/0.1218, allocations: 464.8 kB / 0.49 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1218, allocations: 0 / 0.49 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.1219, allocations: 23.98 kB / 0.49 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001224/0.122, allocations: 32.83 kB / 0.4901 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.122, allocations: 4.094 kB / 0.4901 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.1232, allocations: 1.615 MB / 0.4916 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.1232, allocations: 11.97 kB / 0.4916 GB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.1235, allocations: 285.8 kB / 0.4919 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.467e-05/0.1235, allocations: 89.05 kB / 0.492 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.1236, allocations: 8 kB / 0.492 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.031e-05/0.1237, allocations: 0 / 0.492 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.681e-05/0.1237, allocations: 11.98 kB / 0.492 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.1237, allocations: 11.94 kB / 0.492 GB, free: 8.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.387e-05/0.1238, allocations: 122.1 kB / 0.4921 GB, free: 8.453 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1238, allocations: 0 / 0.4921 GB, free: 8.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003763/0.1242, allocations: 28 kB / 0.4922 GB, free: 8.426 MB / 382.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.787e-05/0.1243, allocations: 95.25 kB / 0.4923 GB, free: 8.324 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004108/0.1247, allocations: 328.5 kB / 0.4926 GB, free: 7.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1247, allocations: 0 / 0.4926 GB, free: 7.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.1249, allocations: 154.7 kB / 0.4927 GB, free: 7.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.1252, allocations: 24.91 kB / 0.4927 GB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009114/0.1261, allocations: 0.5207 MB / 0.4933 GB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.1264, allocations: 0.7124 MB / 0.494 GB, free: 6.496 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.747e-05/0.1265, allocations: 11.44 kB / 0.494 GB, free: 6.484 MB / 382.1 MB Notification: Performance of SimCode: time 1.402e-06/0.1265, allocations: 0 / 0.494 GB, free: 6.484 MB / 382.1 MB Notification: Performance of Templates: time 0.003879/0.1303, allocations: 2.189 MB / 0.4961 GB, free: 4.293 MB / 382.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)