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.001386/0.001386, 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.001548/0.001548, allocations: 206.4 kB / 23.01 MB, free: 4.625 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.477/1.477, 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.1109/0.1109, allocations: 24.05 MB / 337.2 MB, free: 11.32 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.002162/0.002162, allocations: 79.88 kB / 471.5 MB, free: 8.734 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.374/0.3762, allocations: 59.56 MB / 0.5186 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002711/0.3789, allocations: 1.652 MB / 0.5202 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007906/0.3797, allocations: 472 kB / 0.5207 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.288e-05/0.3798, allocations: 1.156 kB / 0.5207 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.04e-05/0.3798, allocations: 15.23 kB / 0.5207 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001888/0.38, allocations: 31.17 kB / 0.5207 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.071e-05/0.3801, allocations: 23.05 kB / 0.5207 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.3803, allocations: 126.5 kB / 0.5208 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3804, allocations: 20.7 kB / 0.5209 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.3806, allocations: 59.2 kB / 0.5209 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.3807, allocations: 54.14 kB / 0.521 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.3807, allocations: 9.031 kB / 0.521 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.045e-05/0.3807, allocations: 8.875 kB / 0.521 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.419e-05/0.3808, allocations: 24.44 kB / 0.521 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.367e-05/0.3808, allocations: 43.2 kB / 0.5211 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.3809, allocations: 104.3 kB / 0.5212 GB, free: 7.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3809, allocations: 1.281 kB / 0.5212 GB, free: 7.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3809, allocations: 0 / 0.5212 GB, free: 7.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.381, allocations: 0 / 0.5212 GB, free: 7.406 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.0005231/0.3815, allocations: 354.6 kB / 0.5215 GB, free: 7.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3815, allocations: 9.953 kB / 0.5215 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.511e-05/0.3816, allocations: 43.47 kB / 0.5215 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.3816, allocations: 13 kB / 0.5216 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.3818, allocations: 158 kB / 0.5217 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.3818, allocations: 7.719 kB / 0.5217 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.3818, allocations: 12.97 kB / 0.5217 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.382, allocations: 88.06 kB / 0.5218 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.382, allocations: 4 kB / 0.5218 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.382, allocations: 1.469 kB / 0.5218 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.382, allocations: 1.281 kB / 0.5218 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.287e-05/0.3821, allocations: 46.2 kB / 0.5219 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005332/0.3826, allocations: 342.1 kB / 0.5222 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.3829, allocations: 88.45 kB / 0.5223 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.844e-05/0.383, allocations: 42.06 kB / 0.5223 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.383, allocations: 5.062 kB / 0.5223 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.633e-05/0.383, allocations: 37.19 kB / 0.5224 GB, free: 6.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.383, allocations: 0 / 0.5224 GB, free: 6.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007164/0.3837, allocations: 371.3 kB / 0.5227 GB, free: 6.137 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.549e-05/0.3837, allocations: 54.56 kB / 0.5228 GB, free: 6.074 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.3839, allocations: 164.2 kB / 0.5229 GB, free: 5.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.3839, allocations: 31.05 kB / 0.5229 GB, free: 5.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.86e-05/0.3839, allocations: 113.3 kB / 0.5231 GB, free: 5.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.384, allocations: 45.39 kB / 0.5231 GB, free: 5.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/0.384, allocations: 34.83 kB / 0.5231 GB, free: 5.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.128e-05/0.3841, allocations: 329.2 kB / 0.5234 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.632e-05/0.3842, allocations: 28.11 kB / 0.5235 GB, free: 5.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.347e-05/0.3842, allocations: 58.28 kB / 0.5235 GB, free: 5.375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/0.3847, allocations: 181.2 kB / 0.5237 GB, free: 5.289 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3847, allocations: 2.078 kB / 0.5237 GB, free: 5.289 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.0004369/0.3851, allocations: 194.9 kB / 0.5239 GB, free: 5.176 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3851, allocations: 7.375 kB / 0.5239 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3851, allocations: 9.094 kB / 0.5239 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001797/0.3853, allocations: 48.53 kB / 0.5239 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.3854, allocations: 27.22 kB / 0.524 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001716/0.3871, allocations: 4.426 MB / 0.5283 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.176e-05/0.3872, allocations: 9.188 kB / 0.5283 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.3872, allocations: 8.391 kB / 0.5283 GB, free: 0.6523 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 9.364e-05/0.3873, allocations: 121.6 kB / 0.5284 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.3873, allocations: 9.016 kB / 0.5284 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.559e-05/0.3874, allocations: 22.55 kB / 0.5285 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3874, allocations: 1.25 kB / 0.5285 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.165e-06/0.3874, allocations: 0 / 0.5285 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3874, allocations: 4.594 kB / 0.5285 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004868/0.3879, allocations: 413.4 kB / 0.5289 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3879, allocations: 1.25 kB / 0.5289 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.388, allocations: 26.55 kB / 0.5289 GB, free: 156 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001293/0.3881, allocations: 40.78 kB / 0.5289 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.3881, allocations: 6.938 kB / 0.5289 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.3894, allocations: 1.508 MB / 0.5304 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3894, allocations: 1 kB / 0.5304 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.3898, allocations: 281.7 kB / 0.5307 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.3898, allocations: 9.438 kB / 0.5307 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.3899, allocations: 6.906 kB / 0.5307 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.611e-05/0.39, allocations: 1 kB / 0.5307 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.284e-05/0.39, allocations: 16.95 kB / 0.5307 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.39, allocations: 3.953 kB / 0.5307 GB, free: 14.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001113/0.3901, allocations: 117.5 kB / 0.5308 GB, free: 14.35 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3901, allocations: 5.219 kB / 0.5308 GB, free: 14.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004052/0.3905, allocations: 28.81 kB / 0.5309 GB, free: 14.34 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.0006768/0.3912, allocations: 0.8293 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000443/0.3916, allocations: 310.9 kB / 0.532 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.3916, allocations: 4 kB / 0.532 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.3919, allocations: 169.2 kB / 0.5321 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.3922, allocations: 15.12 kB / 0.5321 GB, free: 13.18 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.002777/0.3949, allocations: 2.145 MB / 0.5342 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.989e-05/0.395, allocations: 99.84 kB / 0.5343 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.731e-05/0.3951, allocations: 8.203 kB / 0.5343 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.019e-05/0.3952, allocations: 35.86 kB / 0.5344 GB, free: 11.39 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3952, allocations: 0 / 0.5344 GB, free: 11.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.4318, allocations: 3.832 MB / 0.5381 GB, free: 10.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/13.89, allocations: 6.125 kB / 0.5381 GB, free: 10.38 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 & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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_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.669055016711354] Failed to read output from testmodel.py, exit status != 0: 14.007681610994041 14.024604146 13.640437682 Calling exit ...