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.00141/0.00141, allocations: 104.3 kB / 19.72 MB, free: 1.77 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.001699/0.001699, allocations: 207.4 kB / 23 MB, free: 4.633 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.557/1.557, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1107/0.1107, allocations: 24.03 MB / 337.2 MB, free: 11.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: "" <> 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.002157/0.002157, allocations: 79.83 kB / 471.5 MB, free: 8.75 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3804, allocations: 59.56 MB / 0.5186 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002978/0.3834, allocations: 1.48 MB / 0.52 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008843/0.3843, allocations: 428.4 kB / 0.5205 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.65e-05/0.3843, allocations: 0 / 0.5205 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.455e-05/0.3844, allocations: 6.469 kB / 0.5205 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002309/0.3846, allocations: 18.97 kB / 0.5205 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.831e-05/0.3847, allocations: 15.31 kB / 0.5205 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001462/0.3848, allocations: 76.89 kB / 0.5206 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.643e-05/0.3849, allocations: 7.859 kB / 0.5206 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.3851, allocations: 40.47 kB / 0.5206 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.3853, allocations: 36.23 kB / 0.5206 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.3853, allocations: 3.344 kB / 0.5206 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.85e-05/0.3853, allocations: 3.438 kB / 0.5207 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.3853, allocations: 13.73 kB / 0.5207 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.859e-05/0.3854, allocations: 25.55 kB / 0.5207 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.3855, allocations: 42.91 kB / 0.5207 GB, free: 7.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3855, allocations: 4 kB / 0.5207 GB, free: 7.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3855, allocations: 4 kB / 0.5207 GB, free: 7.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.3855, allocations: 1.219 kB / 0.5207 GB, free: 7.625 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.0005829/0.3861, allocations: 306 kB / 0.521 GB, free: 7.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.3862, allocations: 9.578 kB / 0.521 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.848e-05/0.3862, allocations: 42.64 kB / 0.5211 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.314e-05/0.3863, allocations: 9.734 kB / 0.5211 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.3864, allocations: 117 kB / 0.5212 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.3864, allocations: 7.906 kB / 0.5212 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.699e-05/0.3864, allocations: 15.83 kB / 0.5212 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.3866, allocations: 63.23 kB / 0.5213 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.3866, allocations: 0 / 0.5213 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.3866, allocations: 2.188 kB / 0.5213 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3866, allocations: 0 / 0.5213 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.893e-05/0.3867, allocations: 34.39 kB / 0.5213 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.3872, allocations: 277.1 kB / 0.5216 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.3875, allocations: 88.88 kB / 0.5217 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.978e-05/0.3876, allocations: 32.44 kB / 0.5217 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.3876, allocations: 5.375 kB / 0.5217 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.3876, allocations: 36.55 kB / 0.5217 GB, free: 6.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.313e-06/0.3876, allocations: 0 / 0.5217 GB, free: 6.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006569/0.3883, allocations: 310.7 kB / 0.522 GB, free: 6.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.212e-05/0.3883, allocations: 55.34 kB / 0.5221 GB, free: 6.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.835e-05/0.3884, allocations: 133.5 kB / 0.5222 GB, free: 6.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.275e-06/0.3884, allocations: 25.7 kB / 0.5222 GB, free: 6.277 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.768e-05/0.3884, allocations: 106.1 kB / 0.5223 GB, free: 6.176 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.649e-05/0.3885, allocations: 40.45 kB / 0.5224 GB, free: 6.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.026e-05/0.3885, allocations: 29 kB / 0.5224 GB, free: 6.121 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.266e-05/0.3886, allocations: 319.4 kB / 0.5227 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.318e-05/0.3886, allocations: 23.19 kB / 0.5227 GB, free: 5.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.45e-05/0.3887, allocations: 47.61 kB / 0.5228 GB, free: 5.766 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003734/0.389, allocations: 142.4 kB / 0.5229 GB, free: 5.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.389, allocations: 1.219 kB / 0.5229 GB, free: 5.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000208/0.3892, allocations: 144.4 kB / 0.5231 GB, free: 5.621 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3893, allocations: 9 kB / 0.5231 GB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3893, allocations: 1.375 kB / 0.5231 GB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001513/0.3894, allocations: 40.11 kB / 0.5231 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.763e-05/0.3895, allocations: 21.41 kB / 0.5231 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.3906, allocations: 1.461 MB / 0.5246 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.992e-05/0.3906, allocations: 7.422 kB / 0.5246 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.3907, allocations: 2.688 kB / 0.5246 GB, free: 4.152 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 8.913e-05/0.3907, allocations: 129 kB / 0.5247 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.922e-05/0.3908, allocations: 6.406 kB / 0.5247 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.146e-05/0.3908, allocations: 15.69 kB / 0.5247 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.3908, allocations: 2.219 kB / 0.5247 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.3908, allocations: 0 / 0.5247 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3908, allocations: 0.5625 kB / 0.5247 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003882/0.3912, allocations: 348 kB / 0.525 GB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3912, allocations: 5.828 kB / 0.525 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.421e-05/0.3913, allocations: 23.75 kB / 0.5251 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.3914, allocations: 32.66 kB / 0.5251 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3914, allocations: 9.953 kB / 0.5251 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008224/0.3922, allocations: 1.467 MB / 0.5265 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3922, allocations: 1.156 kB / 0.5265 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002333/0.3925, allocations: 242.9 kB / 0.5268 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.744e-05/0.3925, allocations: 11.72 kB / 0.5268 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.3925, allocations: 7.047 kB / 0.5268 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.569e-05/0.3926, allocations: 1.797 kB / 0.5268 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.229e-05/0.3926, allocations: 10.42 kB / 0.5268 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-06/0.3926, allocations: 3.344 kB / 0.5268 GB, free: 2.023 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.408e-05/0.3927, allocations: 101.3 kB / 0.5269 GB, free: 1.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3927, allocations: 96 / 0.5269 GB, free: 1.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.393, allocations: 28.47 kB / 0.5269 GB, free: 1.934 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.0004191/0.3934, allocations: 0.7882 MB / 0.5277 GB, free: 1.211 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002864/0.3937, allocations: 174.1 kB / 0.5279 GB, free: 1.082 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3937, allocations: 5.125 kB / 0.5279 GB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.3938, allocations: 142.5 kB / 0.528 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.3941, allocations: 19.5 kB / 0.528 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.3962, allocations: 1.79 MB / 0.5298 GB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.3963, allocations: 85 kB / 0.5299 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.02e-05/0.3964, allocations: 14.89 kB / 0.5299 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.661e-05/0.3965, allocations: 26.05 kB / 0.5299 GB, free: 15.32 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3965, allocations: 0 / 0.5299 GB, free: 15.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03375/0.4302, allocations: 2.984 MB / 0.5328 GB, free: 14.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.26, allocations: 7.406 kB / 0.5328 GB, free: 14.41 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 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: 16.130412435159087] Failed to read output from testmodel.py, exit status != 0: 13.371066615451127 13.38653274 12.997805643 Calling exit ...