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.00189/0.00189, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001762/0.001762, allocations: 211.2 kB / 23.01 MB, free: 4.992 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.797 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.1105/0.1105, allocations: 24.03 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_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.002503/0.002503, allocations: 63.89 kB / 471.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3796, allocations: 59.57 MB / 0.5186 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002349/0.3819, allocations: 1.481 MB / 0.52 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006993/0.3826, allocations: 423.5 kB / 0.5205 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.333e-05/0.3827, allocations: 4 kB / 0.5205 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.298e-05/0.3827, allocations: 5.719 kB / 0.5205 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.3829, allocations: 20.31 kB / 0.5205 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.942e-05/0.3829, allocations: 10.69 kB / 0.5205 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.383, allocations: 81.14 kB / 0.5206 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.803e-05/0.3831, allocations: 7.594 kB / 0.5206 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.3833, allocations: 36.06 kB / 0.5206 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.504e-05/0.3834, allocations: 35.67 kB / 0.5206 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.3834, allocations: 3.438 kB / 0.5206 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.468e-05/0.3834, allocations: 8.656 kB / 0.5207 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.915e-05/0.3834, allocations: 12.91 kB / 0.5207 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.581e-05/0.3835, allocations: 25.22 kB / 0.5207 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.3836, allocations: 47.61 kB / 0.5207 GB, free: 7.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3836, allocations: 0 / 0.5207 GB, free: 7.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3836, allocations: 0 / 0.5207 GB, free: 7.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3836, allocations: 1.125 kB / 0.5207 GB, free: 7.672 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.0004845/0.3841, allocations: 305.6 kB / 0.521 GB, free: 7.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3841, allocations: 10.89 kB / 0.521 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.526e-05/0.3842, allocations: 46.83 kB / 0.5211 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.78e-05/0.3842, allocations: 8.672 kB / 0.5211 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.3843, allocations: 120.3 kB / 0.5212 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.3843, allocations: 4.281 kB / 0.5212 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.3843, allocations: 17.19 kB / 0.5212 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001228/0.3845, allocations: 61.88 kB / 0.5213 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3845, allocations: 1.094 kB / 0.5213 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.3845, allocations: 0 / 0.5213 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.3845, allocations: 2.281 kB / 0.5213 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.937e-05/0.3846, allocations: 32.94 kB / 0.5213 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.385, allocations: 285.4 kB / 0.5216 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002455/0.3853, allocations: 84.94 kB / 0.5217 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.823e-05/0.3853, allocations: 35.52 kB / 0.5217 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.3853, allocations: 1.766 kB / 0.5217 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.3853, allocations: 32.69 kB / 0.5217 GB, free: 6.762 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.3853, allocations: 0 / 0.5217 GB, free: 6.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006381/0.386, allocations: 319.1 kB / 0.522 GB, free: 6.523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.341e-05/0.386, allocations: 56.5 kB / 0.5221 GB, free: 6.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.954e-05/0.3861, allocations: 133.1 kB / 0.5222 GB, free: 6.344 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.3861, allocations: 26.83 kB / 0.5223 GB, free: 6.312 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.202e-05/0.3862, allocations: 102.8 kB / 0.5224 GB, free: 6.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.639e-05/0.3862, allocations: 38.88 kB / 0.5224 GB, free: 6.184 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.3862, allocations: 29.02 kB / 0.5224 GB, free: 6.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.37e-05/0.3863, allocations: 320 kB / 0.5227 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.413e-05/0.3863, allocations: 19.61 kB / 0.5227 GB, free: 5.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.556e-05/0.3864, allocations: 44.92 kB / 0.5228 GB, free: 5.809 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.3868, allocations: 143 kB / 0.5229 GB, free: 5.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.3868, allocations: 1.094 kB / 0.5229 GB, free: 5.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002109/0.387, allocations: 144 kB / 0.5231 GB, free: 5.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.387, allocations: 13.47 kB / 0.5231 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.387, allocations: 1.188 kB / 0.5231 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.3871, allocations: 30.89 kB / 0.5231 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.847e-05/0.3872, allocations: 21.58 kB / 0.5231 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009554/0.3882, allocations: 1.465 MB / 0.5246 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.584e-05/0.3882, allocations: 2.594 kB / 0.5246 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.3883, allocations: 7.5 kB / 0.5246 GB, free: 4.195 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.412e-05/0.3883, allocations: 125.5 kB / 0.5247 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.3884, allocations: 10.27 kB / 0.5247 GB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.102e-05/0.3884, allocations: 10.83 kB / 0.5247 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.3884, allocations: 1.375 kB / 0.5247 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.3884, allocations: 5.875 kB / 0.5247 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3884, allocations: 0.7969 kB / 0.5247 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000358/0.3888, allocations: 355.4 kB / 0.525 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3888, allocations: 1.875 kB / 0.525 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-05/0.3888, allocations: 26.81 kB / 0.5251 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.389, allocations: 35.94 kB / 0.5251 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.389, allocations: 9.828 kB / 0.5251 GB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007818/0.3898, allocations: 1.462 MB / 0.5265 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3898, allocations: 1.344 kB / 0.5265 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.39, allocations: 241.3 kB / 0.5268 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.932e-05/0.39, allocations: 12.77 kB / 0.5268 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.39, allocations: 5.844 kB / 0.5268 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.637e-05/0.3901, allocations: 5.312 kB / 0.5268 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.58e-05/0.3901, allocations: 8.547 kB / 0.5268 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.3901, allocations: 6.156 kB / 0.5268 GB, free: 2.062 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.911e-05/0.3902, allocations: 97.06 kB / 0.5269 GB, free: 1.984 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3902, allocations: 0 / 0.5269 GB, free: 1.984 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.3905, allocations: 25.34 kB / 0.5269 GB, free: 1.98 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.0003764/0.3909, allocations: 0.7813 MB / 0.5277 GB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002755/0.3912, allocations: 178.5 kB / 0.5279 GB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3912, allocations: 1.375 kB / 0.5279 GB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.3913, allocations: 150 kB / 0.528 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.3915, allocations: 17.86 kB / 0.528 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.3934, allocations: 1.799 MB / 0.5298 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.513e-05/0.3935, allocations: 93.02 kB / 0.5299 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.629e-05/0.3935, allocations: 6.203 kB / 0.5299 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.179e-05/0.3936, allocations: 21.64 kB / 0.5299 GB, free: 15.36 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3936, allocations: 0 / 0.5299 GB, free: 15.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.4278, allocations: 2.976 MB / 0.5328 GB, free: 14.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.3, allocations: 12.94 kB / 0.5328 GB, free: 14.45 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 & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_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_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.178738144226372] Failed to read output from testmodel.py, exit status != 0: 13.413708156906068 13.43701135 13.049119739 Calling exit ...