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.002034/0.002034, allocations: 102.7 kB / 16.45 MB, free: 6.449 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.001729/0.001729, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.462/1.462, allocations: 230.6 MB / 252.8 MB, free: 9.125 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.1064/0.1064, allocations: 24.11 MB / 333 MB, free: 12.61 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.002239/0.002239, allocations: 71.89 kB / 465.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3483, allocations: 59.57 MB / 0.513 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002607/0.3509, allocations: 1.697 MB / 0.5146 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009039/0.3518, allocations: 0.4937 MB / 0.5151 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.025e-05/0.3519, allocations: 1.188 kB / 0.5151 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.16e-05/0.3519, allocations: 11.09 kB / 0.5151 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.3521, allocations: 38.81 kB / 0.5152 GB, free: 7.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.552e-05/0.3522, allocations: 27.47 kB / 0.5152 GB, free: 7.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.3524, allocations: 124.4 kB / 0.5153 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.3526, allocations: 15.72 kB / 0.5153 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.3528, allocations: 61.27 kB / 0.5154 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.3529, allocations: 55.02 kB / 0.5154 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.3529, allocations: 8.656 kB / 0.5154 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.405e-05/0.3529, allocations: 9.562 kB / 0.5155 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.568e-05/0.353, allocations: 23.59 kB / 0.5155 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.084e-05/0.353, allocations: 62.7 kB / 0.5155 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.3532, allocations: 103.9 kB / 0.5156 GB, free: 7.012 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3532, allocations: 1.281 kB / 0.5156 GB, free: 7.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3532, allocations: 0 / 0.5156 GB, free: 7.012 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3532, allocations: 0 / 0.5156 GB, free: 7.012 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.0005999/0.3538, allocations: 423.6 kB / 0.516 GB, free: 6.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3539, allocations: 11.52 kB / 0.5161 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.182e-05/0.3539, allocations: 47.09 kB / 0.5161 GB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.354, allocations: 11.23 kB / 0.5161 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.3542, allocations: 204.7 kB / 0.5163 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.3542, allocations: 15.34 kB / 0.5163 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.307e-05/0.3543, allocations: 10.41 kB / 0.5163 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.3544, allocations: 82.28 kB / 0.5164 GB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.3544, allocations: 0.7188 kB / 0.5164 GB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.3545, allocations: 5.25 kB / 0.5164 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.3545, allocations: 1.469 kB / 0.5164 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.58e-05/0.3546, allocations: 43.97 kB / 0.5165 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/0.3551, allocations: 397.2 kB / 0.5168 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.3554, allocations: 173.9 kB / 0.517 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.747e-05/0.3555, allocations: 44.39 kB / 0.517 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.3555, allocations: 1.219 kB / 0.517 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.615e-05/0.3555, allocations: 36.12 kB / 0.5171 GB, free: 5.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.3555, allocations: 0.7812 kB / 0.5171 GB, free: 5.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007464/0.3563, allocations: 440.2 kB / 0.5175 GB, free: 5.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.053e-05/0.3563, allocations: 53.66 kB / 0.5176 GB, free: 5.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.3564, allocations: 165.9 kB / 0.5177 GB, free: 5.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.3564, allocations: 26.3 kB / 0.5177 GB, free: 5.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.146e-05/0.3565, allocations: 117.3 kB / 0.5178 GB, free: 5.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.171e-05/0.3565, allocations: 49.27 kB / 0.5179 GB, free: 4.996 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.77e-05/0.3566, allocations: 33.86 kB / 0.5179 GB, free: 4.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.413e-05/0.3566, allocations: 326.8 kB / 0.5182 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.851e-05/0.3567, allocations: 31.36 kB / 0.5183 GB, free: 4.637 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.644e-05/0.3567, allocations: 57.69 kB / 0.5183 GB, free: 4.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004325/0.3572, allocations: 181.2 kB / 0.5185 GB, free: 4.512 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.3572, allocations: 1.406 kB / 0.5185 GB, free: 4.512 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.0004495/0.3576, allocations: 340.8 kB / 0.5188 GB, free: 4.219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3576, allocations: 5.406 kB / 0.5188 GB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.3576, allocations: 9.906 kB / 0.5188 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001968/0.3578, allocations: 56.02 kB / 0.5189 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.3579, allocations: 23 kB / 0.5189 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.3601, allocations: 4.647 MB / 0.5235 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.556e-05/0.3602, allocations: 10.44 kB / 0.5235 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.3602, allocations: 4.125 kB / 0.5235 GB, free: 15.42 MB / 398.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.0001347/0.3603, allocations: 130.4 kB / 0.5236 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.3603, allocations: 9.609 kB / 0.5236 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.076e-05/0.3604, allocations: 21.22 kB / 0.5236 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3604, allocations: 2.375 kB / 0.5236 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.3604, allocations: 0.75 kB / 0.5236 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.3604, allocations: 4.641 kB / 0.5236 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005993/0.361, allocations: 455.6 kB / 0.5241 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.361, allocations: 1.906 kB / 0.5241 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.3611, allocations: 18.73 kB / 0.5241 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001382/0.3612, allocations: 36.7 kB / 0.5241 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.682e-05/0.3612, allocations: 6.609 kB / 0.5241 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/0.3626, allocations: 1.623 MB / 0.5257 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3626, allocations: 3.938 kB / 0.5257 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000351/0.3629, allocations: 285.4 kB / 0.526 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.341e-05/0.363, allocations: 91.14 kB / 0.5261 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.796e-05/0.363, allocations: 6.016 kB / 0.5261 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.882e-05/0.3631, allocations: 2.406 kB / 0.5261 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.133e-05/0.3631, allocations: 15.16 kB / 0.5261 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.3631, allocations: 4.031 kB / 0.5261 GB, free: 12.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.842e-05/0.3632, allocations: 118.4 kB / 0.5262 GB, free: 12.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3632, allocations: 0 / 0.5262 GB, free: 12.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003943/0.3636, allocations: 29.09 kB / 0.5262 GB, free: 12.83 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.000702/0.3643, allocations: 0.8263 MB / 0.527 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004527/0.3648, allocations: 310.9 kB / 0.5273 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3648, allocations: 0 / 0.5273 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.365, allocations: 161.3 kB / 0.5275 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.3653, allocations: 23.77 kB / 0.5275 GB, free: 11.68 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.002959/0.3682, allocations: 2.437 MB / 0.5299 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.3686, allocations: 0.7152 MB / 0.5306 GB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.084e-05/0.3686, allocations: 9.312 kB / 0.5306 GB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.023e-05/0.3687, allocations: 40.61 kB / 0.5306 GB, free: 8.887 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3687, allocations: 0 / 0.5306 GB, free: 8.887 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03169/0.4004, allocations: 3.421 MB / 0.534 GB, free: 8.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.81, allocations: 12.14 kB / 0.534 GB, free: 8.391 MB / 398.1 MB " [Timeout remaining time 647] (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: 15.586244475794956] Failed to read output from testmodel.py, exit status != 0: 12.908249213825911 12.932703814 12.574857943 Calling exit ...