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.001341/0.001341, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001582/0.001582, allocations: 214.9 kB / 22.25 MB, free: 5.125 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.516/1.516, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.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.1116/0.1116, allocations: 24.13 MB / 336.6 MB, free: 11.43 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: "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) [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.002651/0.002651, allocations: 75.83 kB / 470.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3832, allocations: 59.6 MB / 0.5181 GB, free: 8.926 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.00268/0.3859, allocations: 1.517 MB / 0.5196 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000892/0.3868, allocations: 456.6 kB / 0.52 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.132e-05/0.3868, allocations: 0 / 0.52 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.111e-05/0.3869, allocations: 6.422 kB / 0.52 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.3871, allocations: 27.59 kB / 0.5201 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.678e-05/0.3871, allocations: 11.84 kB / 0.5201 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.3873, allocations: 80.97 kB / 0.5201 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.848e-05/0.3873, allocations: 7.656 kB / 0.5201 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.3875, allocations: 35.97 kB / 0.5202 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.3876, allocations: 39.55 kB / 0.5202 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.3877, allocations: 7.312 kB / 0.5202 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.545e-05/0.3877, allocations: 4.625 kB / 0.5202 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.048e-05/0.3877, allocations: 8.547 kB / 0.5202 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.383e-05/0.3877, allocations: 29.22 kB / 0.5203 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.3879, allocations: 46.31 kB / 0.5203 GB, free: 7.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3879, allocations: 1.125 kB / 0.5203 GB, free: 7.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3879, allocations: 4 kB / 0.5203 GB, free: 7.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.3879, allocations: 0 / 0.5203 GB, free: 7.551 MB / 382.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.0005576/0.3884, allocations: 304.4 kB / 0.5206 GB, free: 7.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.3885, allocations: 10.55 kB / 0.5206 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.887e-05/0.3885, allocations: 42.16 kB / 0.5207 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.3886, allocations: 9.953 kB / 0.5207 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3887, allocations: 123.3 kB / 0.5208 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.3887, allocations: 8.656 kB / 0.5208 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.3887, allocations: 16.58 kB / 0.5208 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.3889, allocations: 62.39 kB / 0.5209 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3889, allocations: 0 / 0.5209 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.3889, allocations: 1.984 kB / 0.5209 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.3889, allocations: 4.781 kB / 0.5209 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.834e-05/0.389, allocations: 29.7 kB / 0.5209 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004773/0.3895, allocations: 294.5 kB / 0.5212 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002587/0.3897, allocations: 77.31 kB / 0.5213 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.876e-05/0.3898, allocations: 30.91 kB / 0.5213 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.3898, allocations: 6.156 kB / 0.5213 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.047e-05/0.3898, allocations: 32.19 kB / 0.5213 GB, free: 6.645 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.3898, allocations: 0 / 0.5213 GB, free: 6.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007142/0.3905, allocations: 313.8 kB / 0.5216 GB, free: 6.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.3905, allocations: 52.75 kB / 0.5217 GB, free: 6.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.3907, allocations: 132 kB / 0.5218 GB, free: 6.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.3907, allocations: 26.83 kB / 0.5218 GB, free: 6.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.782e-05/0.3907, allocations: 102.7 kB / 0.5219 GB, free: 6.102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.3907, allocations: 38.8 kB / 0.522 GB, free: 6.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.02e-05/0.3908, allocations: 34.02 kB / 0.522 GB, free: 6.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.401e-05/0.3908, allocations: 319.2 kB / 0.5223 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.412e-05/0.3909, allocations: 23.72 kB / 0.5223 GB, free: 5.719 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.913e-05/0.3909, allocations: 45.77 kB / 0.5224 GB, free: 5.688 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.3913, allocations: 145.9 kB / 0.5225 GB, free: 5.621 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.3913, allocations: 0 / 0.5225 GB, free: 5.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002204/0.3915, allocations: 142.5 kB / 0.5226 GB, free: 5.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.3915, allocations: 5.625 kB / 0.5226 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3916, allocations: 0.6562 kB / 0.5226 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/0.3917, allocations: 32.06 kB / 0.5227 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.525e-05/0.3918, allocations: 25.47 kB / 0.5227 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.3928, allocations: 1.474 MB / 0.5241 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.655e-05/0.3929, allocations: 6.422 kB / 0.5241 GB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.3929, allocations: 8.375 kB / 0.5242 GB, free: 4.062 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 9.433e-05/0.393, allocations: 119.4 kB / 0.5243 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/0.3931, allocations: 8.547 kB / 0.5243 GB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.974e-05/0.3931, allocations: 14.42 kB / 0.5243 GB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3931, allocations: 1.188 kB / 0.5243 GB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3931, allocations: 0.7031 kB / 0.5243 GB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3931, allocations: 4.5 kB / 0.5243 GB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.3935, allocations: 358.8 kB / 0.5246 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3935, allocations: 1.312 kB / 0.5246 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.575e-05/0.3936, allocations: 15.98 kB / 0.5247 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001385/0.3937, allocations: 42.5 kB / 0.5247 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.3937, allocations: 6.172 kB / 0.5247 GB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000925/0.3946, allocations: 1.469 MB / 0.5261 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3946, allocations: 6.75 kB / 0.5261 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.3949, allocations: 240.5 kB / 0.5264 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.823e-05/0.3949, allocations: 9.328 kB / 0.5264 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.3949, allocations: 9.344 kB / 0.5264 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.096e-05/0.395, allocations: 6.078 kB / 0.5264 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.712e-05/0.3951, allocations: 6.266 kB / 0.5264 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-06/0.3951, allocations: 3.422 kB / 0.5264 GB, free: 1.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.391e-05/0.3951, allocations: 104 kB / 0.5265 GB, free: 1.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3951, allocations: 3.938 kB / 0.5265 GB, free: 1.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003464/0.3955, allocations: 24.94 kB / 0.5265 GB, free: 1.844 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 0.000424/0.3959, allocations: 0.7796 MB / 0.5273 GB, free: 1.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003117/0.3962, allocations: 178.8 kB / 0.5275 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3962, allocations: 4.125 kB / 0.5275 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.3963, allocations: 147.9 kB / 0.5276 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.3966, allocations: 14.25 kB / 0.5276 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.3986, allocations: 1.794 MB / 0.5294 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.399, allocations: 0.6972 MB / 0.5301 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.822e-05/0.3991, allocations: 6.172 kB / 0.5301 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.156e-05/0.3991, allocations: 25.16 kB / 0.5301 GB, free: 14.61 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3991, allocations: 0 / 0.5301 GB, free: 14.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04207/0.4412, allocations: 2.693 MB / 0.5327 GB, free: 14.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/13.01, allocations: 5.062 kB / 0.5327 GB, free: 14.12 MB / 398.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.841040232000523] Failed to read output from testmodel.py, exit status != 0: 13.130781248997664 13.145491951 12.754562805 Calling exit ...