Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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.001389/0.001389, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001634/0.001634, allocations: 208.4 kB / 23 MB, free: 4.621 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.485/1.485, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.1121/0.1121, allocations: 24.03 MB / 337.2 MB, free: 11.45 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_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_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.002849/0.002849, allocations: 71.89 kB / 471.5 MB, free: 8.777 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3723, allocations: 59.56 MB / 0.5186 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002716/0.375, allocations: 1.6 MB / 0.5202 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000744/0.3757, allocations: 452.2 kB / 0.5206 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.807e-05/0.3758, allocations: 1.5 kB / 0.5206 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.686e-05/0.3758, allocations: 10.28 kB / 0.5206 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.376, allocations: 32.81 kB / 0.5206 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.478e-05/0.3761, allocations: 17.36 kB / 0.5206 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.3762, allocations: 105.4 kB / 0.5207 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.3763, allocations: 21.5 kB / 0.5208 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.3765, allocations: 47.11 kB / 0.5208 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.3766, allocations: 51.98 kB / 0.5209 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.3766, allocations: 8.969 kB / 0.5209 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.125e-05/0.3766, allocations: 7.188 kB / 0.5209 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.235e-05/0.3767, allocations: 23.2 kB / 0.5209 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.77e-05/0.3767, allocations: 36.08 kB / 0.5209 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.3769, allocations: 90.91 kB / 0.521 GB, free: 7.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3769, allocations: 0 / 0.521 GB, free: 7.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3769, allocations: 0 / 0.521 GB, free: 7.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.3769, allocations: 1.031 kB / 0.521 GB, free: 7.484 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.000554/0.3774, allocations: 332 kB / 0.5213 GB, free: 7.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.3775, allocations: 9.797 kB / 0.5213 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.294e-05/0.3775, allocations: 51.25 kB / 0.5214 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.469e-05/0.3776, allocations: 10.92 kB / 0.5214 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.3777, allocations: 132 kB / 0.5215 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.3777, allocations: 8.125 kB / 0.5215 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.3777, allocations: 9.781 kB / 0.5216 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/0.3779, allocations: 79.84 kB / 0.5216 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3779, allocations: 0.7969 kB / 0.5216 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.3779, allocations: 5.188 kB / 0.5216 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.3779, allocations: 2.062 kB / 0.5216 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.378, allocations: 48.75 kB / 0.5217 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.3785, allocations: 326.3 kB / 0.522 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/0.3788, allocations: 87.88 kB / 0.5221 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.821e-05/0.3789, allocations: 38.94 kB / 0.5221 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.3789, allocations: 1.125 kB / 0.5221 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.3789, allocations: 33.39 kB / 0.5221 GB, free: 6.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.3789, allocations: 0 / 0.5221 GB, free: 6.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007076/0.3796, allocations: 341.6 kB / 0.5225 GB, free: 6.262 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.3796, allocations: 58.36 kB / 0.5225 GB, free: 6.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.3798, allocations: 149.5 kB / 0.5227 GB, free: 6.078 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.3798, allocations: 30.64 kB / 0.5227 GB, free: 6.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.355e-05/0.3798, allocations: 103.9 kB / 0.5228 GB, free: 5.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.3798, allocations: 40.16 kB / 0.5228 GB, free: 5.914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/0.3799, allocations: 33.03 kB / 0.5229 GB, free: 5.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.488e-05/0.3799, allocations: 322.1 kB / 0.5232 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.028e-05/0.38, allocations: 25.17 kB / 0.5232 GB, free: 5.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.067e-05/0.3801, allocations: 50.52 kB / 0.5232 GB, free: 5.527 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004156/0.3805, allocations: 178.3 kB / 0.5234 GB, free: 5.438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3805, allocations: 3.938 kB / 0.5234 GB, free: 5.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000228/0.3807, allocations: 151.2 kB / 0.5236 GB, free: 5.348 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.3807, allocations: 10.14 kB / 0.5236 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3807, allocations: 1.312 kB / 0.5236 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001699/0.3809, allocations: 37.25 kB / 0.5236 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.381, allocations: 21.59 kB / 0.5236 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.3822, allocations: 1.503 MB / 0.5251 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.306e-05/0.3822, allocations: 2.25 kB / 0.5251 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.3822, allocations: 3.891 kB / 0.5251 GB, free: 3.859 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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: G.Pm = G.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 (13): * 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: 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.474e-05/0.3823, allocations: 133.9 kB / 0.5252 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.3824, allocations: 12.28 kB / 0.5252 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.3824, allocations: 16.17 kB / 0.5253 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3824, allocations: 2.641 kB / 0.5253 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.3824, allocations: 0 / 0.5253 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3824, allocations: 5.688 kB / 0.5253 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004376/0.3828, allocations: 389.7 kB / 0.5256 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3828, allocations: 0 / 0.5256 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.383, allocations: 21.09 kB / 0.5257 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001342/0.3831, allocations: 45.06 kB / 0.5257 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.3831, allocations: 1.734 kB / 0.5257 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007976/0.3839, allocations: 1.512 MB / 0.5272 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3839, allocations: 1.625 kB / 0.5272 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.3842, allocations: 267.8 kB / 0.5274 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.231e-05/0.3842, allocations: 14.34 kB / 0.5275 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.3842, allocations: 6.312 kB / 0.5275 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.26e-05/0.3843, allocations: 6.312 kB / 0.5275 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.91e-05/0.3843, allocations: 6.953 kB / 0.5275 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.3843, allocations: 8.547 kB / 0.5275 GB, free: 1.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.557e-05/0.3844, allocations: 114.2 kB / 0.5276 GB, free: 1.555 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3844, allocations: 0 / 0.5276 GB, free: 1.555 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003462/0.3847, allocations: 27.31 kB / 0.5276 GB, free: 1.551 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.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 (8): * Single equations (assignments): 7 * 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.000401/0.3851, allocations: 0.8134 MB / 0.5284 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002921/0.3854, allocations: 195.3 kB / 0.5286 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3854, allocations: 0.9062 kB / 0.5286 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.3856, allocations: 161.9 kB / 0.5288 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002421/0.3858, allocations: 12.42 kB / 0.5288 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.3882, allocations: 1.96 MB / 0.5307 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.3883, allocations: 90.34 kB / 0.5308 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.299e-05/0.3883, allocations: 7.5 kB / 0.5308 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.24e-05/0.3884, allocations: 27.88 kB / 0.5308 GB, free: 14.82 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3884, allocations: 0 / 0.5308 GB, free: 14.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.4207, allocations: 3.374 MB / 0.5341 GB, free: 13.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.38, allocations: 5.219 kB / 0.5341 GB, free: 13.87 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.217621175572276] Failed to read output from testmodel.py, exit status != 0: 13.497514500282705 13.528189711 13.145899856 Calling exit ...