Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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.001662/0.001662, allocations: 104.3 kB / 19.72 MB, free: 1.926 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.00147/0.00147, allocations: 208.5 kB / 23.01 MB, free: 4.984 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.519/1.519, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1109/0.1109, allocations: 24.04 MB / 337.2 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_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_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.002211/0.002211, allocations: 71.83 kB / 471.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.408/0.4102, allocations: 59.57 MB / 0.5186 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.003214/0.4134, allocations: 1.65 MB / 0.5202 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008098/0.4142, allocations: 463.4 kB / 0.5207 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.103e-05/0.4143, allocations: 1.188 kB / 0.5207 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.951e-05/0.4143, allocations: 10.73 kB / 0.5207 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001564/0.4145, allocations: 38.98 kB / 0.5207 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.746e-05/0.4145, allocations: 27.34 kB / 0.5207 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.4147, allocations: 121.7 kB / 0.5208 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.4148, allocations: 21.97 kB / 0.5209 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.415, allocations: 58.16 kB / 0.5209 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.4151, allocations: 50.84 kB / 0.521 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.4151, allocations: 9 kB / 0.521 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.492e-05/0.4152, allocations: 8.188 kB / 0.521 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.798e-05/0.4152, allocations: 20.38 kB / 0.521 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.536e-05/0.4152, allocations: 50.97 kB / 0.5211 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001656/0.4154, allocations: 104.9 kB / 0.5212 GB, free: 7.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.4154, allocations: 1.094 kB / 0.5212 GB, free: 7.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4154, allocations: 0 / 0.5212 GB, free: 7.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.4154, allocations: 0 / 0.5212 GB, free: 7.352 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005288/0.4159, allocations: 348.2 kB / 0.5215 GB, free: 7.043 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.416, allocations: 10.91 kB / 0.5215 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.93e-05/0.416, allocations: 43.12 kB / 0.5215 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.31e-05/0.4161, allocations: 20.39 kB / 0.5216 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002252/0.4163, allocations: 153.9 kB / 0.5217 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.4163, allocations: 7.688 kB / 0.5217 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.4163, allocations: 10.66 kB / 0.5217 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.4165, allocations: 92.09 kB / 0.5218 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.4165, allocations: 0 / 0.5218 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.4165, allocations: 1.891 kB / 0.5218 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.4165, allocations: 3.062 kB / 0.5218 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.11e-05/0.4166, allocations: 44.58 kB / 0.5219 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005621/0.4172, allocations: 342.5 kB / 0.5222 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.4174, allocations: 97.38 kB / 0.5223 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.915e-05/0.4175, allocations: 45.36 kB / 0.5223 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-06/0.4175, allocations: 1.406 kB / 0.5223 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.4175, allocations: 36.62 kB / 0.5224 GB, free: 6.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.4175, allocations: 0 / 0.5224 GB, free: 6.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006686/0.4182, allocations: 374.7 kB / 0.5227 GB, free: 6.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.163e-05/0.4182, allocations: 58.25 kB / 0.5228 GB, free: 6.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.4184, allocations: 156.6 kB / 0.5229 GB, free: 5.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.4184, allocations: 30.64 kB / 0.5229 GB, free: 5.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.161e-05/0.4184, allocations: 113.7 kB / 0.5231 GB, free: 5.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.4184, allocations: 45.56 kB / 0.5231 GB, free: 5.715 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.826e-05/0.4185, allocations: 29.98 kB / 0.5231 GB, free: 5.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.284e-05/0.4186, allocations: 331.1 kB / 0.5234 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.59e-05/0.4186, allocations: 26.67 kB / 0.5235 GB, free: 5.359 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.827e-05/0.4187, allocations: 57.81 kB / 0.5235 GB, free: 5.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004313/0.4191, allocations: 180.6 kB / 0.5237 GB, free: 5.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.4191, allocations: 0 / 0.5237 GB, free: 5.234 MB / 382.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004537/0.4196, allocations: 200.9 kB / 0.5239 GB, free: 5.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.4196, allocations: 5.031 kB / 0.5239 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.4196, allocations: 9.719 kB / 0.5239 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.4198, allocations: 48.47 kB / 0.5239 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.4199, allocations: 22.8 kB / 0.524 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.4218, allocations: 4.42 MB / 0.5283 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.675e-05/0.4219, allocations: 10.62 kB / 0.5283 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.4219, allocations: 6.281 kB / 0.5283 GB, free: 0.6055 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 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 (14): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.422, allocations: 133.9 kB / 0.5284 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.4221, allocations: 9.078 kB / 0.5284 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.4221, allocations: 17.56 kB / 0.5285 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.4221, allocations: 1.094 kB / 0.5285 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.4221, allocations: 1.062 kB / 0.5285 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4221, allocations: 4.734 kB / 0.5285 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004934/0.4226, allocations: 420.6 kB / 0.5289 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.4226, allocations: 1.312 kB / 0.5289 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.4227, allocations: 20.05 kB / 0.5289 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001319/0.4228, allocations: 42.78 kB / 0.5289 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.4228, allocations: 3.031 kB / 0.5289 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/0.4243, allocations: 1.513 MB / 0.5304 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4243, allocations: 1.125 kB / 0.5304 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003802/0.4247, allocations: 278.4 kB / 0.5307 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.835e-05/0.4247, allocations: 12.67 kB / 0.5307 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.4247, allocations: 6.922 kB / 0.5307 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.608e-05/0.4248, allocations: 1.094 kB / 0.5307 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.4249, allocations: 17.56 kB / 0.5307 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-06/0.4249, allocations: 7.984 kB / 0.5307 GB, free: 14.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.425, allocations: 121 kB / 0.5308 GB, free: 14.28 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.425, allocations: 1.219 kB / 0.5308 GB, free: 14.28 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003891/0.4254, allocations: 28.34 kB / 0.5309 GB, free: 14.28 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.y) * 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 (9): * Single equations (assignments): 8 * 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.0008282/0.4262, allocations: 0.8322 MB / 0.5317 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005047/0.4267, allocations: 302.2 kB / 0.532 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.4267, allocations: 9.031 kB / 0.532 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002312/0.427, allocations: 168.4 kB / 0.5321 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.4273, allocations: 17.41 kB / 0.5321 GB, free: 13.12 MB / 398.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003091/0.4304, allocations: 2.141 MB / 0.5342 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.4305, allocations: 97.67 kB / 0.5343 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.037e-05/0.4306, allocations: 13.47 kB / 0.5343 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.437e-05/0.4307, allocations: 37.12 kB / 0.5344 GB, free: 11.33 MB / 398.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4307, allocations: 0 / 0.5344 GB, free: 11.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03686/0.4675, allocations: 3.821 MB / 0.5381 GB, free: 10.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.74, allocations: 8.469 kB / 0.5381 GB, free: 10.33 MB / 398.1 MB " [Timeout remaining time 646] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.565172167960554] Failed to read output from testmodel.py, exit status != 0: 13.856740651186556 13.871991 13.453580621 Calling exit ...