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.001749/0.001749, allocations: 113 kB / 18.94 MB, free: 2.934 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.001428/0.001428, allocations: 210.6 kB / 22.25 MB, free: 5.086 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 8.023 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.1102/0.1102, allocations: 24.14 MB / 336.6 MB, free: 11.46 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.002142/0.002142, allocations: 63.89 kB / 470.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3226, allocations: 59.6 MB / 0.5181 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002386/0.3249, allocations: 1.512 MB / 0.5196 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007091/0.3257, allocations: 466.3 kB / 0.52 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.84e-05/0.3257, allocations: 1.062 kB / 0.52 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.383e-05/0.3257, allocations: 9.297 kB / 0.52 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.3259, allocations: 20.52 kB / 0.5201 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.232e-05/0.326, allocations: 11.31 kB / 0.5201 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.3261, allocations: 73.27 kB / 0.5201 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.044e-05/0.3262, allocations: 8.203 kB / 0.5201 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.3263, allocations: 47.48 kB / 0.5202 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.3264, allocations: 27.59 kB / 0.5202 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.3264, allocations: 3.688 kB / 0.5202 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.472e-05/0.3265, allocations: 7.531 kB / 0.5202 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.03e-05/0.3265, allocations: 8.75 kB / 0.5202 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.372e-05/0.3265, allocations: 38.25 kB / 0.5203 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.3266, allocations: 45.7 kB / 0.5203 GB, free: 7.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3266, allocations: 1.031 kB / 0.5203 GB, free: 7.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3266, allocations: 0 / 0.5203 GB, free: 7.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.3267, allocations: 0.7969 kB / 0.5203 GB, free: 7.629 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.0005196/0.3272, allocations: 301.2 kB / 0.5206 GB, free: 7.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.3272, allocations: 10.48 kB / 0.5206 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.891e-05/0.3273, allocations: 51.92 kB / 0.5207 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.964e-05/0.3273, allocations: 8.922 kB / 0.5207 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.3274, allocations: 116.2 kB / 0.5208 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.3275, allocations: 8.219 kB / 0.5208 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.3275, allocations: 12.45 kB / 0.5208 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.3276, allocations: 61.92 kB / 0.5209 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.3276, allocations: 4.906 kB / 0.5209 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3276, allocations: 1.188 kB / 0.5209 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.3276, allocations: 1.75 kB / 0.5209 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.348e-05/0.3277, allocations: 37.59 kB / 0.5209 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004698/0.3282, allocations: 290.2 kB / 0.5212 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.3284, allocations: 81.11 kB / 0.5213 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.584e-05/0.3285, allocations: 30.81 kB / 0.5213 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.3285, allocations: 2.078 kB / 0.5213 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.3285, allocations: 39.69 kB / 0.5213 GB, free: 6.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.192e-06/0.3285, allocations: 0 / 0.5213 GB, free: 6.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006376/0.3292, allocations: 310.2 kB / 0.5216 GB, free: 6.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.478e-05/0.3292, allocations: 57.34 kB / 0.5217 GB, free: 6.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.277e-05/0.3293, allocations: 124.3 kB / 0.5218 GB, free: 6.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.3293, allocations: 38.39 kB / 0.5218 GB, free: 6.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.3293, allocations: 102 kB / 0.5219 GB, free: 6.172 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.3294, allocations: 35.59 kB / 0.522 GB, free: 6.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.314e-05/0.3294, allocations: 28.39 kB / 0.522 GB, free: 6.121 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.962e-05/0.3294, allocations: 320.8 kB / 0.5223 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.459e-05/0.3295, allocations: 22.72 kB / 0.5223 GB, free: 5.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.526e-05/0.3295, allocations: 44.02 kB / 0.5224 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.0003865/0.3299, allocations: 143.4 kB / 0.5225 GB, free: 5.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.3299, allocations: 4 kB / 0.5225 GB, free: 5.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000211/0.3301, allocations: 136.8 kB / 0.5226 GB, free: 5.621 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.3302, allocations: 5.906 kB / 0.5226 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3302, allocations: 1.031 kB / 0.5226 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.3303, allocations: 35.91 kB / 0.5227 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.269e-05/0.3304, allocations: 25.12 kB / 0.5227 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009574/0.3314, allocations: 1.489 MB / 0.5242 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.056e-05/0.3314, allocations: 1.312 kB / 0.5242 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.3314, allocations: 7.781 kB / 0.5242 GB, free: 4.133 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 7.934e-05/0.3315, allocations: 120.2 kB / 0.5243 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.3316, allocations: 12.44 kB / 0.5243 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.834e-05/0.3316, allocations: 14.39 kB / 0.5243 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3316, allocations: 1.969 kB / 0.5243 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.3316, allocations: 0 / 0.5243 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.3316, allocations: 2.172 kB / 0.5243 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003545/0.3319, allocations: 346.8 kB / 0.5246 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3319, allocations: 2.078 kB / 0.5246 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.123e-05/0.332, allocations: 18.14 kB / 0.5247 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001139/0.3321, allocations: 43.84 kB / 0.5247 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.3321, allocations: 6.172 kB / 0.5247 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007584/0.3329, allocations: 1.468 MB / 0.5261 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3329, allocations: 0.7969 kB / 0.5261 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/0.3332, allocations: 245.9 kB / 0.5264 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.9e-05/0.3332, allocations: 8.656 kB / 0.5264 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.3332, allocations: 2.188 kB / 0.5264 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.404e-05/0.3333, allocations: 1.656 kB / 0.5264 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.291e-05/0.3333, allocations: 18.86 kB / 0.5264 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-06/0.3333, allocations: 11.16 kB / 0.5264 GB, free: 2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.94e-05/0.3334, allocations: 103.5 kB / 0.5265 GB, free: 1.918 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3334, allocations: 4 kB / 0.5265 GB, free: 1.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003378/0.3337, allocations: 20.28 kB / 0.5265 GB, free: 1.914 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.0003866/0.3341, allocations: 0.7812 MB / 0.5273 GB, free: 1.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003015/0.3344, allocations: 182.1 kB / 0.5275 GB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3344, allocations: 0 / 0.5275 GB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.3346, allocations: 147.1 kB / 0.5276 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.3348, allocations: 15.06 kB / 0.5276 GB, free: 0.918 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.3367, allocations: 1.792 MB / 0.5294 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.3371, allocations: 0.7013 MB / 0.5301 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.405e-05/0.3372, allocations: 5.891 kB / 0.5301 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.814e-05/0.3372, allocations: 25.86 kB / 0.5301 GB, free: 14.68 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3372, allocations: 0 / 0.5301 GB, free: 14.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04045/0.3777, allocations: 2.693 MB / 0.5327 GB, free: 14.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.33, allocations: 5.281 kB / 0.5327 GB, free: 14.2 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: 15.948320409050211] Failed to read output from testmodel.py, exit status != 0: 13.450387173797935 13.471736266 13.141405454 Calling exit ...