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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 79.73 kB / 19.76 MB, free: 1.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 159.8 kB / 23.01 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 177.2 MB / 203.4 MB, free: 8.973 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1003/0.1003, allocations: 17.8 MB / 277.6 MB, free: 15.35 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,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=500,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 67.91 kB / 412.3 MB, free: 6.867 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1105, allocations: 59.55 MB / 471.8 MB, free: 11.2 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002664/0.1132, allocations: 1.481 MB / 473.3 MB, free: 9.703 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000768/0.1139, allocations: 423.2 kB / 473.7 MB, free: 9.289 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.741e-05/0.114, allocations: 0 / 473.7 MB, free: 9.289 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.265e-05/0.114, allocations: 7.938 kB / 473.7 MB, free: 9.281 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.1142, allocations: 23.83 kB / 473.8 MB, free: 9.258 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.971e-05/0.1142, allocations: 15.98 kB / 473.8 MB, free: 9.242 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.1144, allocations: 67.64 kB / 473.9 MB, free: 9.176 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.839e-05/0.1144, allocations: 8 kB / 473.9 MB, free: 9.168 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.1146, allocations: 43.78 kB / 473.9 MB, free: 9.125 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.894e-05/0.1147, allocations: 31.89 kB / 473.9 MB, free: 9.094 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.1147, allocations: 3.938 kB / 473.9 MB, free: 9.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.209e-05/0.1147, allocations: 4 kB / 473.9 MB, free: 9.086 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.01e-05/0.1147, allocations: 11.98 kB / 474 MB, free: 9.074 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.78e-05/0.1148, allocations: 19.88 kB / 474 MB, free: 9.055 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.483e-05/0.1149, allocations: 47.75 kB / 474 MB, free: 9.008 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1149, allocations: 4 kB / 474 MB, free: 9.004 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1149, allocations: 0 / 474 MB, free: 9.004 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1149, allocations: 0 / 474 MB, free: 9.004 MB / 446.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.0005603/0.1154, allocations: 310 kB / 474.3 MB, free: 8.672 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.1155, allocations: 12.92 kB / 474.3 MB, free: 8.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.692e-05/0.1155, allocations: 8.828 kB / 474.3 MB, free: 8.652 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.1156, allocations: 118.5 kB / 474.5 MB, free: 8.512 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.1156, allocations: 4.375 kB / 474.5 MB, free: 8.508 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.1157, allocations: 16.33 kB / 474.5 MB, free: 8.492 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.1158, allocations: 65.55 kB / 474.5 MB, free: 8.422 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1158, allocations: 0 / 474.5 MB, free: 8.422 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.1158, allocations: 4 kB / 474.6 MB, free: 8.418 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1158, allocations: 4 kB / 474.6 MB, free: 8.414 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.287e-05/0.1159, allocations: 27.92 kB / 474.6 MB, free: 8.387 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004726/0.1164, allocations: 252.4 kB / 474.8 MB, free: 8.109 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/0.1166, allocations: 82.58 kB / 474.9 MB, free: 8.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.696e-05/0.1167, allocations: 32.8 kB / 474.9 MB, free: 7.984 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.1167, allocations: 7.984 kB / 475 MB, free: 7.977 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.1167, allocations: 38.55 kB / 475 MB, free: 7.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.1167, allocations: 0 / 475 MB, free: 7.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006573/0.1174, allocations: 306 kB / 475.3 MB, free: 7.594 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.1174, allocations: 55.34 kB / 475.3 MB, free: 7.527 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.1175, allocations: 134 kB / 475.5 MB, free: 7.383 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.1176, allocations: 25.7 kB / 475.5 MB, free: 7.352 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.275e-05/0.1176, allocations: 100 kB / 475.6 MB, free: 7.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.1176, allocations: 39.69 kB / 475.6 MB, free: 7.211 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.1177, allocations: 33.72 kB / 475.7 MB, free: 7.172 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1178, allocations: 318.8 kB / 476 MB, free: 6.852 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.108e-05/0.1179, allocations: 20.09 kB / 476 MB, free: 6.832 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.613e-05/0.1179, allocations: 54.44 kB / 476.1 MB, free: 6.77 MB / 446.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003895/0.1183, allocations: 154.1 kB / 476.2 MB, free: 6.613 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1183, allocations: 0 / 476.2 MB, free: 6.613 MB / 446.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00025/0.1186, allocations: 138.3 kB / 476.3 MB, free: 6.469 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1186, allocations: 4 kB / 476.3 MB, free: 6.465 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1186, allocations: 0 / 476.3 MB, free: 6.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001428/0.1187, allocations: 32.83 kB / 476.4 MB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.459e-05/0.1188, allocations: 32 kB / 476.4 MB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.1202, allocations: 1.442 MB / 477.8 MB, free: 4.852 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.369e-05/0.1202, allocations: 0 / 477.8 MB, free: 4.852 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-06/0.1202, allocations: 7.938 kB / 477.9 MB, free: 4.844 MB / 446.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.0001195/0.1204, allocations: 125.9 kB / 478 MB, free: 4.715 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.1204, allocations: 11.89 kB / 478 MB, free: 4.703 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.541e-05/0.1204, allocations: 16.44 kB / 478 MB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1204, allocations: 4.078 kB / 478 MB, free: 4.684 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.1204, allocations: 0 / 478 MB, free: 4.684 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1204, allocations: 0 / 478 MB, free: 4.684 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.1209, allocations: 323.8 kB / 478.3 MB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.1209, allocations: 0 / 478.3 MB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.401e-05/0.1209, allocations: 20.03 kB / 478.3 MB, free: 4.305 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001201/0.1211, allocations: 40.75 kB / 478.4 MB, free: 4.262 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.1211, allocations: 0 / 478.4 MB, free: 4.262 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.1222, allocations: 1.445 MB / 479.8 MB, free: 2.719 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1222, allocations: 4.125 kB / 479.8 MB, free: 2.715 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.1225, allocations: 241 kB / 480.1 MB, free: 2.457 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.11e-05/0.1225, allocations: 11.98 kB / 480.1 MB, free: 2.445 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.1225, allocations: 4 kB / 480.1 MB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.597e-05/0.1226, allocations: 4 kB / 480.1 MB, free: 2.438 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.989e-05/0.1226, allocations: 15.86 kB / 480.1 MB, free: 2.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.1226, allocations: 0 / 480.1 MB, free: 2.422 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.72e-05/0.1227, allocations: 106.6 kB / 480.2 MB, free: 2.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1227, allocations: 0 / 480.2 MB, free: 2.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.1231, allocations: 24 kB / 480.2 MB, free: 2.297 MB / 446.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 0.0001115/0.1232, allocations: 107.2 kB / 480.3 MB, free: 2.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003133/0.1235, allocations: 182.7 kB / 480.5 MB, free: 1.988 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1235, allocations: 0 / 480.5 MB, free: 1.988 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.1237, allocations: 150.6 kB / 480.7 MB, free: 1.828 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.1239, allocations: 11.98 kB / 480.7 MB, free: 1.816 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008102/0.1247, allocations: 416.6 kB / 481.1 MB, free: 1.379 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.024e-05/0.1248, allocations: 83.56 kB / 481.2 MB, free: 1.277 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.566e-05/0.1248, allocations: 8.5 kB / 481.2 MB, free: 1.266 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.498e-05/0.1249, allocations: 12.5 kB / 481.2 MB, free: 1.254 MB / 446.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1249, allocations: 0 / 481.2 MB, free: 1.254 MB / 446.1 MB Notification: Performance of Templates: time 0.004189/0.1291, allocations: 1.152 MB / 482.3 MB, free: 112 kB / 446.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile [Timeout 660] (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 -s ida -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.851674368954264] Failed to read output from testmodel.py, exit status != 0: 0.39161628601141274 0.40188961900000003 0.28473692 Calling exit ...